Interface PlayerData
public interface PlayerData
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExp(int newAmount)
Adds to the player's current expdouble
getBal()
int
int
getExp()
double
getKDR()
int
getKills()
int
int
getLevel()
org.bukkit.OfflinePlayer
getState()
int
boolean
purchaseKit(Kit kit)
void
setState(PlayerState state)
Used to update a player's statevoid
Re-calculates the player's level
-
Method Details
-
getExp
int getExp()- Returns:
- the player's exp
-
getKills
int getKills()- Returns:
- the player's kills
-
getDeaths
int getDeaths()- Returns:
- the player's deaths
-
getLevel
int getLevel()- Returns:
- the player's level
-
getKillStreak
int getKillStreak()- Returns:
- the player's current kill streak
-
getTopKillStreak
int getTopKillStreak()- Returns:
- the player's top kill streak
-
getKDR
double getKDR()- Returns:
- the player's kill:death ratio
-
getBal
double getBal()- Returns:
- the player's balance
-
getState
PlayerState getState()- Returns:
- the player's current playerstate
- See Also:
PlayerState
-
getOwnedKits
- Returns:
- a list with all of the player's owned kits
- See Also:
Kit
-
ownsKit
- Parameters:
kit
- the kit that is chcked- Returns:
- weather the provided kit is owned by the player
-
purchaseKit
- Parameters:
kit
- the kit to purchase- Returns:
- The updated list of owned kits
-
setState
Used to update a player's state- Parameters:
state
- The new playerstate- See Also:
PlayerState
-
updateLevel
void updateLevel()Re-calculates the player's level -
addExp
void addExp(int newAmount)Adds to the player's current exp- Parameters:
newAmount
- The exp to be added to the player's current exp
-
getPlayer
org.bukkit.OfflinePlayer getPlayer()- Returns:
- the owner of the playerdata
-