Summary
You are now familiar with using a YAML
configuration file. You can load custom values from a config.yml
file and use them within the plugin. Doing so will greatly expand your ability to create unique projects that will be beneficial to multiple server administrators. Try adding configurable options to some of your previous projects. For instance, if you created the plugin that sends a message when a creeper is about to explode, add a configuration file to set the area within which the players must be in order to see the message. Now that you are introduced to FileConfiguration
which can be used with the Bukkit API, in the next chapter, we will save the plugin's data using the same FileConfiguration
method so that we can load it the next time the plugin is enabled.