Wow... so PLAYER_LOGIN is actually firing before the VARIABLES_LOADED event... that explains a lot.
I'll have to look at the code, but I can probably replace the PLAYER_LOGIN event with the PLAYER_ENTERING_WORLD event and get a reliable result.
Does ADDON_LOADED *always* fire after the VARIABLES_LOADED event?
PS: *EXCELLENT* catch Xrystal... and thank you for the time invested in solving it.
|