turt2live/DumbCoin — pull request #9 by WhalesAreDelicious (2014-04-29 13:44:18+00:00)
Title: Saving player data to file regularly

Hi,
Before I begin, I would like to say that I'm relatively new to Bukkit plugin development.
With that out of the way, I'd like to point out that currently, DumbCoin does not save player balances to file regularly, and only does so when the onDisable() method is called. This can cause unexpected rollbacks if player balances should the server restart without calling onDisable() for some reason or simply crash. I have rectified this issue by calling the save method every 60 seconds (1200 ticks) using a Task Timer, although I'm not sure if this is the best way to do it.

Also, I've removed the DumbCoin prefix and added a "/money about" command, so that the plugin developer is credited in some way since the prefix was removed.

Finally, I just want to say thank you turt2live for providing this plugin. I really appreciate it and it has made both running an economy server and learning plugin development a little easier to handle :)