public class GuildConfigurationUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static WauzCore |
core
A direct reference to the main class.
|
Constructor and Description |
---|
GuildConfigurationUtils() |
Modifier and Type | Method and Description |
---|---|
protected static void |
deleteGuild(java.lang.String guild)
Deletes the guild config file with given uuid.
|
protected static java.util.List<java.lang.String> |
getGuildUuidList()
Finds all guild uuids by iterating through all guild configs.
|
protected static int |
guildConfigGetInt(java.lang.String guild,
java.lang.String path)
Gets an int from a guild config.
|
protected static org.bukkit.inventory.ItemStack |
guildConfigGetItemStack(java.lang.String guild,
java.lang.String path)
Gets an item stack from a guild config.
|
protected static java.lang.String |
guildConfigGetString(java.lang.String guild,
java.lang.String path)
Gets a string from a guild config.
|
protected static java.util.List<java.lang.String> |
guildConfigGetStringList(java.lang.String guild,
java.lang.String path)
Gets a string list from a guild config.
|
protected static void |
guildConfigSet(java.lang.String guild,
java.lang.String path,
java.lang.Object value)
Sets the given value in the guild config.
|
private static WauzCore core
protected static java.util.List<java.lang.String> getGuildUuidList()
protected static void deleteGuild(java.lang.String guild)
guild
- The uuid of the guild config file.protected static void guildConfigSet(java.lang.String guild, java.lang.String path, java.lang.Object value)
guild
- The uuid of the guild config file.path
- The key path of the value to set.value
- The value to set.protected static java.lang.String guildConfigGetString(java.lang.String guild, java.lang.String path)
guild
- The uuid of the guild config file.path
- The key path of the value to get.protected static java.util.List<java.lang.String> guildConfigGetStringList(java.lang.String guild, java.lang.String path)
guild
- The uuid of the guild config file.path
- The key path of the value to get.protected static int guildConfigGetInt(java.lang.String guild, java.lang.String path)
guild
- The uuid of the guild config file.path
- The key path of the value to get.protected static org.bukkit.inventory.ItemStack guildConfigGetItemStack(java.lang.String guild, java.lang.String path)
guild
- The uuid of the guild config file.path
- The key path of the value to get.