Class Configuration


public class Configuration extends AbstractFileAttributeConfiguration
Configuration helper for Prodrivers plugins. It represents configuration options using class fields, by saving and loading fields from and inside the plugin's configuration file, using an underlying AbstractAttributeConfiguration. It supports all data types supported by Bukkit's FileConfiguration. ExcludedFromConfiguration annotation allows specific fields not to be used by the field processor. As with every AbstractAttributeConfiguration derivative, init() have to be called immediately after constructing the object.
  • Constructor Details

    • Configuration

      public Configuration(org.bukkit.plugin.Plugin plugin, Class<? extends Messages> messagesClass, Chat chat)
      Configuration helper constructor.
      Parameters:
      plugin - Plugin initializing the helper
      messagesClass - Messages class to use internally, uses this to provide your own inheriting class that adds its own message fields
      chat - Chat instance to manage
  • Method Details

    • getMessages

      public Messages getMessages()
      Get the initialized Messages instance.
      Returns:
      Messages instance