Class Config

java.lang.Object
me.wyne.wutils.config.Config

public class Config extends Object
Inherit to automatically register config Object or use static registerConfigObject(Object) method.
Apply ConfigField to field to tie it up with value from config.
  • Constructor Details

    • Config

      public Config()
  • Method Details

    • registerConfigObject

      public static void registerConfigObject(@NotNull @NotNull Object object)
      Registered objects will be reloaded on reloadConfigObjects(FileConfiguration).
      Parameters:
      object - Object to register
    • reloadConfigObjects

      public static boolean reloadConfigObjects(@NotNull @NotNull org.bukkit.configuration.file.FileConfiguration config)
      Load data from FileConfiguration to registered objects.
      Parameters:
      config - FileConfiguration to load data from
      Returns:
      True if reloaded successfully