XPLM_MSG_LIVERY_LOADED
#define XPLM_MSG_LIVERY_LOADED 108
This message is sent to your plugin right after a livery is loaded for an airplane. You can use this to check the new livery (via datarefs) and react accordingly. The parameter contains the index number of the aircraft whose livery is changing.