PlayerData:

-Renamed loadPlayerDataFromFile() to load(), and moved it next to the save() function for later addition to the API.
-Moved saving/loading to EP functions where they used to be.
-Removed now unused PlayerData.get() and loadPlayerDataOld() functions

ServerEventsHandler:
-Added new EntityConstructing event to add the PlayerData EP earlier.

NoppesUtilPlayer:
-questCompletion() now saves player data right before its return statement.
This commit is contained in:
Luis C.M committed 2023-05-21 02:48:30 -05:00
1 parent dc42beee15
commit cbf99be297
5 files changed
+30 -84

No files matched your search

@@ -441,6 +441,8 @@ public class NoppesUtilPlayer {
questData.trackQuest(nextQuest.quest);
}
playerData.save();
return true;
}