public class PlayerCollectionConfigurator extends PlayerConfigurationUtils
| Constructor and Description |
|---|
PlayerCollectionConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCharacterCompletedAchievements(org.bukkit.entity.Player player)
Adds 1 to the amount of achievements the player earned.
|
static java.util.List<java.lang.String> |
getCharacterAchievementList(org.bukkit.entity.Player player,
WauzAchievementType type) |
static double |
getCharacterAchievementProgress(org.bukkit.entity.Player player,
WauzAchievementType type) |
static long |
getCharacterCoins(org.bukkit.entity.Player player) |
static int |
getCharacterCompletedAchievements(org.bukkit.entity.Player player) |
static long |
getCharacterCurrency(org.bukkit.entity.Player player,
java.lang.String currency) |
static double |
getCharacterExperience(org.bukkit.entity.Player player) |
static org.bukkit.inventory.ItemStack[] |
getCharacterInventoryContents(org.bukkit.entity.Player player,
java.lang.String inventory) |
static int |
getCharacterLevel(org.bukkit.entity.Player player) |
static long |
getCharacterMedals(org.bukkit.entity.Player player) |
static long |
getCharacterSoulstones(org.bukkit.entity.Player player) |
static int |
getTokenLimitAmount(org.bukkit.entity.Player player,
java.lang.String mode) |
static long |
getTokenLimitDate(org.bukkit.entity.Player player,
java.lang.String mode) |
static long |
getTokens(org.bukkit.entity.Player player) |
static void |
levelUpCharacter(org.bukkit.entity.Player player)
Increases the character level by 1.
|
static void |
setCharacterAchievementList(org.bukkit.entity.Player player,
WauzAchievementType type,
java.util.List<java.lang.String> list) |
static void |
setCharacterAchievementProgress(org.bukkit.entity.Player player,
WauzAchievementType type,
double progress) |
static void |
setCharacterCoins(org.bukkit.entity.Player player,
long amount) |
static void |
setCharacterCurrency(org.bukkit.entity.Player player,
java.lang.String currency,
long amount) |
static void |
setCharacterExperience(org.bukkit.entity.Player player,
double experience) |
static void |
setCharacterInventoryContents(org.bukkit.entity.Player player,
java.lang.String inventory,
org.bukkit.inventory.ItemStack[] contents) |
static void |
setCharacterLevel(org.bukkit.entity.Player player,
int level) |
static void |
setCharacterMedals(org.bukkit.entity.Player player,
long amount) |
static void |
setCharacterSoulstones(org.bukkit.entity.Player player,
long amount) |
static void |
setTokenLimitAmount(org.bukkit.entity.Player player,
java.lang.String mode,
int tokenAmount) |
static void |
setTokenLimitDate(org.bukkit.entity.Player player,
java.lang.String mode,
long dateLong) |
static void |
setTokens(org.bukkit.entity.Player player,
long tokens) |
playerConfigGetBoolean, playerConfigGetBoolean, playerConfigGetDouble, playerConfigGetInt, playerConfigGetInt, playerConfigGetItemStacks, playerConfigGetLocation, playerConfigGetLong, playerConfigGetLong, playerConfigGetString, playerConfigGetString, playerConfigGetStringList, playerConfigGetStringList, playerConfigSet, playerConfigSetpublic static long getTokens(org.bukkit.entity.Player player)
player - The player that owns the config file.public static void setTokens(org.bukkit.entity.Player player,
long tokens)
player - The player that owns the config file.tokens - The new amount of tokens of the player.public static long getTokenLimitDate(org.bukkit.entity.Player player,
java.lang.String mode)
player - The player that owns the config file.mode - The gamemode for the limit.public static void setTokenLimitDate(org.bukkit.entity.Player player,
java.lang.String mode,
long dateLong)
player - The player that owns the config file.mode - The gamemode for the limit.dateLong - The new date of the last earned tokens as number in yyyyMMdd format.public static int getTokenLimitAmount(org.bukkit.entity.Player player,
java.lang.String mode)
player - The player that owns the config file.mode - The gamemode for the limit.public static void setTokenLimitAmount(org.bukkit.entity.Player player,
java.lang.String mode,
int tokenAmount)
player - The player that owns the config file.mode - The gamemode for the limit.tokenAmount - The new amount of limited tokens earned today.public static int getCharacterLevel(org.bukkit.entity.Player player)
player - The player that owns the config file.public static void setCharacterLevel(org.bukkit.entity.Player player,
int level)
player - The player that owns the config file.level - The new character level.public static void levelUpCharacter(org.bukkit.entity.Player player)
player - The player that owns the config file.public static double getCharacterExperience(org.bukkit.entity.Player player)
player - The player that owns the config file.public static void setCharacterExperience(org.bukkit.entity.Player player,
double experience)
player - The player that owns the config file.experience - The new character experience.public static long getCharacterCoins(org.bukkit.entity.Player player)
player - The player that owns the config file.public static void setCharacterCoins(org.bukkit.entity.Player player,
long amount)
player - The player that owns the config file.amount - The new amount of coins the character owns.public static long getCharacterSoulstones(org.bukkit.entity.Player player)
player - The player that owns the config file.public static void setCharacterMedals(org.bukkit.entity.Player player,
long amount)
player - The player that owns the config file.amount - The new amount of medals the character owns.public static long getCharacterMedals(org.bukkit.entity.Player player)
player - The player that owns the config file.public static void setCharacterSoulstones(org.bukkit.entity.Player player,
long amount)
player - The player that owns the config file.amount - The new amount of soulstones the character owns.public static long getCharacterCurrency(org.bukkit.entity.Player player,
java.lang.String currency)
player - The player that owns the config file.currency - The type of currency.public static void setCharacterCurrency(org.bukkit.entity.Player player,
java.lang.String currency,
long amount)
player - The player that owns the config file.currency - The type of currency.amount - The new amount of the given currency the character owns.public static org.bukkit.inventory.ItemStack[] getCharacterInventoryContents(org.bukkit.entity.Player player,
java.lang.String inventory)
player - The player that owns the config file.inventory - The name of the inventory.public static void setCharacterInventoryContents(org.bukkit.entity.Player player,
java.lang.String inventory,
org.bukkit.inventory.ItemStack[] contents)
player - The player that owns the config file.inventory - The name of the inventory.contents - The new contents of the inventory.public static int getCharacterCompletedAchievements(org.bukkit.entity.Player player)
player - The player that owns the config file.public static void addCharacterCompletedAchievements(org.bukkit.entity.Player player)
player - The player that owns the config file.public static double getCharacterAchievementProgress(org.bukkit.entity.Player player,
WauzAchievementType type)
player - The player that owns the config file.type - The type of the generic achievement.public static void setCharacterAchievementProgress(org.bukkit.entity.Player player,
WauzAchievementType type,
double progress)
player - The player that owns the config file.type - The type of the generic achievement.progress - The progress of the generic achievement.public static java.util.List<java.lang.String> getCharacterAchievementList(org.bukkit.entity.Player player,
WauzAchievementType type)
player - The player that owns the config file.type - The type of non generic achievement.public static void setCharacterAchievementList(org.bukkit.entity.Player player,
WauzAchievementType type,
java.util.List<java.lang.String> list)
player - The player that owns the config file.type - The type of non generic achievement.list - The new awarded achevements of that type.