Saving per-player data
#3
(02-18-2016, 07:56 AM)NiLSPACE Wrote: Perhaps you can open a player's json file to add/change stuff. Every player has one in the players folder. Since we just got a JSON serializer and deserializer it shouldn't be too hard.

Rather than editing server files, wouldn't it be cleaner if the plugin has its own json file? Each object in that file would have a player name for identification, and that player's plugin data. This is better because if I ever delete the plugin's folder, it won't leave junk behind. Also, all you have to do for resetting the plugin is deleting the plugin's data files, instead of editing the server's player files.
Reply
Thanks given by:


Messages In This Thread
Saving per-player data - by Schwertspize - 02-18-2016, 07:34 AM
RE: Saving per-player data - by NiLSPACE - 02-18-2016, 07:56 AM
RE: Saving per-player data - by LogicParrot - 02-18-2016, 04:20 PM
RE: Saving per-player data - by Schwertspize - 02-18-2016, 05:14 PM
RE: Saving per-player data - by LogicParrot - 02-18-2016, 06:01 PM
RE: Saving per-player data - by NiLSPACE - 02-18-2016, 07:17 PM
RE: Saving per-player data - by xoft - 02-19-2016, 12:11 AM
Updated to UUID - by LogicParrot - 02-19-2016, 10:57 PM
RE: Saving per-player data - by Schwertspize - 02-20-2016, 07:11 AM
RE: Saving per-player data - by LogicParrot - 02-20-2016, 07:40 AM



Users browsing this thread: 1 Guest(s)