public class GlobalConfigurationUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static WauzCore |
core
A direct reference to the main class.
|
Constructor and Description |
---|
GlobalConfigurationUtils() |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
mainConfigGetBoolean(java.lang.String name,
java.lang.String path)
Gets a boolean from a specific config.
|
protected static double |
mainConfigGetDouble(java.lang.String name,
java.lang.String path)
Gets a double from a specific config.
|
protected static int |
mainConfigGetInt(java.lang.String name,
java.lang.String path)
Gets an int from a specific config.
|
protected static java.util.Set<java.lang.String> |
mainConfigGetKeys(java.lang.String name,
java.lang.String path)
Gets a key set from a specific config.
|
protected static org.bukkit.Location |
mainConfigGetLocation(java.lang.String name,
java.lang.String path,
java.lang.String worldName)
Gets a location from a specific config.
|
protected static long |
mainConfigGetLong(java.lang.String name,
java.lang.String path)
Gets a long from a specific config.
|
protected static java.lang.String |
mainConfigGetString(java.lang.String name,
java.lang.String path)
Gets a string from a specific config.
|
protected static java.util.List<java.lang.String> |
mainConfigGetStringList(java.lang.String name,
java.lang.String path)
Gets a string list from a specific config.
|
protected static void |
mainConfigSet(java.lang.String name,
java.lang.String path,
java.lang.Object value)
Sets the given value in a specific config.
|
private static WauzCore core
protected static void mainConfigSet(java.lang.String name, java.lang.String path, java.lang.Object value)
name
- The name of the config file.path
- The key path of the value to set.value
- The value to set.protected static java.lang.String mainConfigGetString(java.lang.String name, java.lang.String path)
name
- The name of the config file.path
- The key path of the value to get.protected static java.util.List<java.lang.String> mainConfigGetStringList(java.lang.String name, java.lang.String path)
name
- The name of the config file.path
- The key path of the value to get.protected static int mainConfigGetInt(java.lang.String name, java.lang.String path)
name
- The name of the config file.path
- The key path of the value to get.protected static long mainConfigGetLong(java.lang.String name, java.lang.String path)
name
- The name of the config file.path
- The key path of the value to get.protected static double mainConfigGetDouble(java.lang.String name, java.lang.String path)
name
- The name of the config file.path
- The key path of the value to get.protected static boolean mainConfigGetBoolean(java.lang.String name, java.lang.String path)
name
- The name of the config file.path
- The key path of the value to get.protected static java.util.Set<java.lang.String> mainConfigGetKeys(java.lang.String name, java.lang.String path)
name
- The name of the config file.path
- The key path of the value to get.protected static org.bukkit.Location mainConfigGetLocation(java.lang.String name, java.lang.String path, java.lang.String worldName)
name
- The name of the config file.path
- The key path of the value to get.worldName
- The name of the location's world.