Package me.wyne.wutils.config
Class Config
java.lang.Object
me.wyne.wutils.config.Config
Inherit to automatically register config
Object or use static registerConfigObject(Object) method.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregisterConfigObject(@NotNull Object object) Registered objects will be reloaded onreloadConfigObjects(FileConfiguration).static booleanreloadConfigObjects(@NotNull org.bukkit.configuration.file.FileConfiguration config) Load data fromFileConfigurationto registered objects.
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
registerConfigObject
Registered objects will be reloaded onreloadConfigObjects(FileConfiguration).- Parameters:
object-Objectto register
-
reloadConfigObjects
public static boolean reloadConfigObjects(@NotNull @NotNull org.bukkit.configuration.file.FileConfiguration config) Load data fromFileConfigurationto registered objects.- Parameters:
config-FileConfigurationto load data from- Returns:
- True if reloaded successfully
-