Summary
You are now familiar with using a YAML configuration file. You are able to load custom values from a config.yml
file and use them within your 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 distance that players must be in order to see the message. Now that you are introduced to FileConfiguration
using the Bukkit API, in the next chapter we will save our plugin data using the same FileConfiguration
method so that we may load it the next time the plugin is enabled.