Chapter 9. Saving Your Data

There are many types of Bukkit plugins. Some of them require you to save data. By saving data, I am referring to saving information to the system's hard drive. This is needed if the information must stay intact, even after the server restarts. At this point, none of the plugins that we created have this requirement. Examples of plugins that will save data are as follows:

  • Economy plugins must save information about how much money each player has
  • Land protection plugins must save information about which plots of land are claimed and who their owner is
  • Questing plugins must store all the information for each quest, such as who has completed it

There are countless uses for saving data when a server is shut down. In this chapter, ...

Get Building Minecraft Server Modifications - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.