Note: I have tried to run the database saving of a player when they leave
ONLY IF an update is needed. Sadly, I have not had a successful attempt. If anyone wants to help figure this out, I have made a public commit
here. But until it's figured out (which no guarantees it will), it'll continue to run when a player leaves regardless if an update is needed or not. Saving the database when the plugin shuts down is also removed as explained below. I'm sorry for any inconvenience.
-
Removed | Mechanism that saves players to MySQL databases when the plugin shuts down. This is the culprit for the JSONParseException reported back in July (
https://github.com/UltimateGamer200/UltraColor/issues/6). It's hoped this removal is only temporary.
Any players affected by the JSONParseException need to reselect their colors (or make new selections) for their data to be parsed correctly and the error to disappear.
-
Improved | The database saving and loading were running async twice when the player joins/leaves. Now they only run async once when the player joins/leaves. This should help fix performance issues with database loading/saving.