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.
  • 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 void reloadConfigObjects(@NotNull @NotNull org.bukkit.configuration.file.FileConfiguration config)
      Load data from FileConfiguration to registered objects.
      Parameters:
      config - FileConfiguration to load data from