Hello,
I'm looking for a method (editable in a ModSystem class) that would trigger after LoadWorldData.
Alternatively is there a method (editable from a ModSystem class) that would be called only on the first connection of a player in a certain world ? Or a way to know if it is the first connection ?
I have some code that is for now called at the end of LoadWorldData (for lack of a better known option, as I need to load saved data before it to avoid duplicates), but the consequence is that the first time a player logs in a new world that code does not trigger, as LoadWorldData is seemingly not called. For that reason I'm looking either for a method where the code would be called everytime, and after LoadData if it triggers; or a way to set a call for that code in a place that I'm sure will trigger only if there is no data saved (i.e, first connection), allowing me to keep the call in LoadData.
I'm looking for a method (editable in a ModSystem class) that would trigger after LoadWorldData.
Alternatively is there a method (editable from a ModSystem class) that would be called only on the first connection of a player in a certain world ? Or a way to know if it is the first connection ?
I have some code that is for now called at the end of LoadWorldData (for lack of a better known option, as I need to load saved data before it to avoid duplicates), but the consequence is that the first time a player logs in a new world that code does not trigger, as LoadWorldData is seemingly not called. For that reason I'm looking either for a method where the code would be called everytime, and after LoadData if it triggers; or a way to set a call for that code in a place that I'm sure will trigger only if there is no data saved (i.e, first connection), allowing me to keep the call in LoadData.