public class PlayerConfigurator extends PlayerConfigurationUtils
Constructor and Description |
---|
PlayerConfigurator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
doesCharacterExist(org.bukkit.OfflinePlayer player,
java.lang.String slot) |
static int |
getArrowAmount(org.bukkit.entity.Player player,
java.lang.String type) |
static java.lang.String |
getCharacterClass(org.bukkit.entity.Player player) |
static org.bukkit.Location |
getCharacterHearthstone(org.bukkit.entity.Player player) |
static java.lang.String |
getCharacterHearthstoneRegion(org.bukkit.entity.Player player) |
static org.bukkit.Location |
getCharacterLocation(org.bukkit.entity.Player player) |
static java.lang.String |
getCharacterRunningCampaignQuest1(org.bukkit.entity.Player player) |
static java.lang.String |
getCharacterRunningCampaignQuest2(org.bukkit.entity.Player player) |
static java.lang.String |
getCharacterRunningDailyQuest1(org.bukkit.entity.Player player) |
static java.lang.String |
getCharacterRunningDailyQuest2(org.bukkit.entity.Player player) |
static java.lang.String |
getCharacterRunningDailyQuest3(org.bukkit.entity.Player player) |
static java.lang.String |
getCharacterRunningMainQuest(org.bukkit.entity.Player player) |
static org.bukkit.Location |
getCharacterSpawn(org.bukkit.entity.Player player) |
static java.lang.String |
getCharacterTabard(org.bukkit.entity.Player player) |
static java.lang.String |
getCharacterTitle(org.bukkit.entity.Player player) |
static java.util.List<java.lang.String> |
getCharacterTitleList(org.bukkit.entity.Player player) |
static java.lang.String |
getCharacterWorldString(org.bukkit.entity.Player player) |
static int |
getCharecterSchemaVersion(org.bukkit.OfflinePlayer player,
java.lang.String slot) |
static java.lang.String |
getClassString(org.bukkit.OfflinePlayer player,
java.lang.String slot) |
static java.util.List<java.lang.String> |
getFriendsList(org.bukkit.OfflinePlayer player) |
static WauzPlayerGuild |
getGuild(org.bukkit.OfflinePlayer player) |
static boolean |
getHideCompletedQuestsForCharacter(org.bukkit.entity.Player player) |
static boolean |
getHideSpecialQuestsForCharacter(org.bukkit.entity.Player player) |
static java.lang.String |
getLastCharacterLogin(org.bukkit.OfflinePlayer player,
java.lang.String slot) |
static java.lang.String |
getLastPlayed(org.bukkit.OfflinePlayer player) |
static java.lang.String |
getLevelString(org.bukkit.OfflinePlayer player,
java.lang.String slot) |
static java.lang.String |
getRank(org.bukkit.OfflinePlayer player) |
static java.lang.String |
getSelectedArrows(org.bukkit.entity.Player player) |
static long |
getSurvivalScore(org.bukkit.OfflinePlayer player) |
static org.bukkit.Location |
getTrackerDestinationLocation(org.bukkit.entity.Player player) |
static java.lang.String |
getTrackerDestinationName(org.bukkit.entity.Player player) |
static java.lang.String |
getWorldString(org.bukkit.OfflinePlayer player,
java.lang.String slot) |
static boolean |
isCharacterCooldownReady(org.bukkit.entity.Player player,
java.lang.String actionId) |
static void |
setArrowAmount(org.bukkit.entity.Player player,
java.lang.String type,
int amount) |
static void |
setCharacterHearthstone(org.bukkit.entity.Player player,
org.bukkit.Location location,
java.lang.String regionName) |
static void |
setCharacterLocation(org.bukkit.entity.Player player,
org.bukkit.Location location) |
static void |
setCharacterQuestSlot(org.bukkit.entity.Player player,
java.lang.String questSlot,
java.lang.String questName) |
static void |
setCharacterTabard(org.bukkit.entity.Player player,
java.lang.String tabardName) |
static void |
setCharacterTitle(org.bukkit.entity.Player player,
java.lang.String titleName) |
static void |
setCharacterTitleList(org.bukkit.entity.Player player,
java.util.List<java.lang.String> titleList) |
static void |
setFriendsList(org.bukkit.OfflinePlayer player,
java.util.List<java.lang.String> friendsList) |
static void |
setGuild(org.bukkit.OfflinePlayer player,
java.lang.String guildUuidString) |
static void |
setHideCompletedQuestsForCharacter(org.bukkit.entity.Player player,
boolean value) |
static void |
setHideSpecialQuestsForCharacter(org.bukkit.entity.Player player,
boolean value) |
static void |
setLastPlayed(org.bukkit.OfflinePlayer player)
Updates the last played time of the player to now.
|
static void |
setRank(org.bukkit.OfflinePlayer player,
WauzRank rank) |
static void |
setSelectedArrowType(org.bukkit.entity.Player player,
java.lang.String type) |
static void |
setSurvivalScore(org.bukkit.OfflinePlayer player,
long score) |
static void |
setTrackerDestination(org.bukkit.entity.Player player,
org.bukkit.Location location,
java.lang.String name) |
static void |
updateCharacterCooldown(org.bukkit.entity.Player player,
java.lang.String actionId,
java.lang.Long cooldown) |
playerConfigGetBoolean, playerConfigGetBoolean, playerConfigGetDouble, playerConfigGetInt, playerConfigGetInt, playerConfigGetItemStacks, playerConfigGetLocation, playerConfigGetLong, playerConfigGetLong, playerConfigGetString, playerConfigGetString, playerConfigGetStringList, playerConfigGetStringList, playerConfigSet, playerConfigSet
public static java.lang.String getRank(org.bukkit.OfflinePlayer player)
player
- The player that owns the config file.public static void setRank(org.bukkit.OfflinePlayer player, WauzRank rank)
player
- The player that owns the config file.rank
- The new rank of the player.public static long getSurvivalScore(org.bukkit.OfflinePlayer player)
player
- The player that owns the config file.public static void setSurvivalScore(org.bukkit.OfflinePlayer player, long score)
player
- The player that owns the config file.score
- The new survival score of the player.public static java.lang.String getLastPlayed(org.bukkit.OfflinePlayer player)
player
- The player that owns the config file.public static void setLastPlayed(org.bukkit.OfflinePlayer player)
player
- The player that owns the config file.public static WauzPlayerGuild getGuild(org.bukkit.OfflinePlayer player)
player
- The player that owns the config file.public static void setGuild(org.bukkit.OfflinePlayer player, java.lang.String guildUuidString)
player
- The player that owns the config file.guildUuidString
- The uuid of the new guild of the player.public static boolean doesCharacterExist(org.bukkit.OfflinePlayer player, java.lang.String slot)
player
- The player that owns the config file.slot
- The slot of the character.public static int getCharecterSchemaVersion(org.bukkit.OfflinePlayer player, java.lang.String slot)
player
- The player that owns the config file.slot
- The slot of the character.public static java.lang.String getLastCharacterLogin(org.bukkit.OfflinePlayer player, java.lang.String slot)
player
- The player that owns the config file.slot
- The slot of the character.public static java.lang.String getClassString(org.bukkit.OfflinePlayer player, java.lang.String slot)
player
- The player that owns the config file.slot
- The slot of the character.public static java.lang.String getWorldString(org.bukkit.OfflinePlayer player, java.lang.String slot)
player
- The player that owns the config file.slot
- The slot of the character.public static java.lang.String getLevelString(org.bukkit.OfflinePlayer player, java.lang.String slot)
player
- The player that owns the config file.slot
- The slot of the character.public static java.lang.String getCharacterClass(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.String getCharacterTabard(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void setCharacterTabard(org.bukkit.entity.Player player, java.lang.String tabardName)
player
- The player that owns the config file.tabardName
- The new tabard name of the selected character.public static java.lang.String getCharacterTitle(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void setCharacterTitle(org.bukkit.entity.Player player, java.lang.String titleName)
player
- The player that owns the config file.titleName
- The new title name of the selected character.public static java.util.List<java.lang.String> getCharacterTitleList(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void setCharacterTitleList(org.bukkit.entity.Player player, java.util.List<java.lang.String> titleList)
player
- The player that owns the config file.titleList
- The new choosable titles of the selected character.public static java.lang.String getCharacterWorldString(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static org.bukkit.Location getCharacterSpawn(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static org.bukkit.Location getCharacterLocation(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void setCharacterLocation(org.bukkit.entity.Player player, org.bukkit.Location location)
player
- The player that owns the config file.location
- The new character location.public static org.bukkit.Location getCharacterHearthstone(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.String getCharacterHearthstoneRegion(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void setCharacterHearthstone(org.bukkit.entity.Player player, org.bukkit.Location location, java.lang.String regionName)
player
- The player that owns the config file.location
- The new character home location.regionName
- The new character home location name.public static boolean isCharacterCooldownReady(org.bukkit.entity.Player player, java.lang.String actionId)
player
- The player that owns the config file.actionId
- The action that the cooldown belongs to.public static void updateCharacterCooldown(org.bukkit.entity.Player player, java.lang.String actionId, java.lang.Long cooldown)
player
- The player that owns the config file.actionId
- The action that the cooldown belongs to.cooldown
- The new cooldown in milliseconds from now.public static void setTrackerDestination(org.bukkit.entity.Player player, org.bukkit.Location location, java.lang.String name)
player
- The player that owns the config file.location
- The new tracked location.name
- The new name of the tracked location.public static org.bukkit.Location getTrackerDestinationLocation(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.String getTrackerDestinationName(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.String getSelectedArrows(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void setSelectedArrowType(org.bukkit.entity.Player player, java.lang.String type)
player
- The player that owns the config file.type
- The new selected arrow type.public static int getArrowAmount(org.bukkit.entity.Player player, java.lang.String type)
player
- The player that owns the config file.type
- The arrow type.public static void setArrowAmount(org.bukkit.entity.Player player, java.lang.String type, int amount)
player
- The player that owns the config file.type
- The arrow type.amount
- The new amount of arrows.public static boolean getHideSpecialQuestsForCharacter(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void setHideSpecialQuestsForCharacter(org.bukkit.entity.Player player, boolean value)
player
- The player that owns the config file.value
- If special quests should now be hidden.public static boolean getHideCompletedQuestsForCharacter(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void setHideCompletedQuestsForCharacter(org.bukkit.entity.Player player, boolean value)
player
- The player that owns the config file.value
- If completed quests should now be hidden.public static void setCharacterQuestSlot(org.bukkit.entity.Player player, java.lang.String questSlot, java.lang.String questName)
player
- The player that owns the config file.questSlot
- The slot to set the quest to.questName
- The name of the quest.public static java.lang.String getCharacterRunningMainQuest(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.String getCharacterRunningCampaignQuest1(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.String getCharacterRunningCampaignQuest2(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.String getCharacterRunningDailyQuest1(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.String getCharacterRunningDailyQuest2(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.String getCharacterRunningDailyQuest3(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.util.List<java.lang.String> getFriendsList(org.bukkit.OfflinePlayer player)
player
- The player that owns the config file.public static void setFriendsList(org.bukkit.OfflinePlayer player, java.util.List<java.lang.String> friendsList)
player
- The player that owns the config file.friendsList
- The new list of uuids from the player's friends.