public class PlayerMailConfigurationUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static WauzCore |
core
A direct reference to the main class.
|
Constructor and Description |
---|
PlayerMailConfigurationUtils() |
Modifier and Type | Method and Description |
---|---|
protected static void |
deletePlayerMail(org.bukkit.entity.Player player,
java.lang.String mail)
Deletes the player mail config file with given name.
|
private static java.io.File |
getPlayerMailDataFile(org.bukkit.OfflinePlayer player,
java.lang.String mail)
Gets a config file for a player mail.
|
protected static java.util.List<java.lang.String> |
getPlayerMailNameList(org.bukkit.entity.Player player)
Finds all player mail names by iterating through all player mail configs.
|
protected static org.bukkit.inventory.ItemStack |
playerMailConfigGetItemStack(org.bukkit.OfflinePlayer player,
java.lang.String mail,
java.lang.String path)
Gets an item stack from a player mail config.
|
protected static java.lang.Long |
playerMailConfigGetLong(org.bukkit.OfflinePlayer player,
java.lang.String mail,
java.lang.String path)
Gets a long from a player mail config.
|
protected static java.lang.String |
playerMailConfigGetString(org.bukkit.OfflinePlayer player,
java.lang.String mail,
java.lang.String path)
Gets a string from a player mail config.
|
protected static void |
playerMailConfigSet(org.bukkit.OfflinePlayer player,
java.lang.String mail,
java.lang.String path,
java.lang.Object value)
Sets the given value in the player mail config.
|
private static WauzCore core
protected static java.util.List<java.lang.String> getPlayerMailNameList(org.bukkit.entity.Player player)
player
- The player that owns the config files.protected static void deletePlayerMail(org.bukkit.entity.Player player, java.lang.String mail)
player
- The The player that owns the config file.mail
- The name of the mail.private static java.io.File getPlayerMailDataFile(org.bukkit.OfflinePlayer player, java.lang.String mail)
player
- The player that owns the config file.mail
- The name of the mail.protected static void playerMailConfigSet(org.bukkit.OfflinePlayer player, java.lang.String mail, java.lang.String path, java.lang.Object value)
player
- The player that owns the config file.mail
- The name of the mail.path
- The key path of the value to set.value
- The value to set.protected static java.lang.String playerMailConfigGetString(org.bukkit.OfflinePlayer player, java.lang.String mail, java.lang.String path)
player
- The player that owns the config file.mail
- The name of the mail.path
- The key path of the value to get.protected static java.lang.Long playerMailConfigGetLong(org.bukkit.OfflinePlayer player, java.lang.String mail, java.lang.String path)
player
- The player that owns the config file.mail
- The name of the mail.path
- The key path of the value to get.protected static org.bukkit.inventory.ItemStack playerMailConfigGetItemStack(org.bukkit.OfflinePlayer player, java.lang.String mail, java.lang.String path)
player
- The player that owns the config file.mail
- The name of the mail.path
- The key path of the value to get.