public class PlayerData extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addExp(int exp)
Adds an amount to the player's exp
|
int |
getDeaths() |
int |
getExp() |
int |
getKills() |
int |
getLevel()
You cannot set levels.
|
List<Kit> |
getOwnedKits() |
org.bukkit.entity.Player |
getPlayer() |
PlayerState |
getState() |
void |
incrementDeaths()
Increments deaths by 1
|
void |
incrementKills()
Increments the player's kills by 1
|
void |
minusExp(int exp)
Removes an amount from the players exp
|
boolean |
ownsKit(Kit kit) |
void |
purchaseKit(Kit kit)
Used to purchase a kit
|
void |
setExp(int exp)
Sets the exp of the player
|
public org.bukkit.entity.Player getPlayer()
public void setExp(int exp)
exp - The exp it should be set topublic void addExp(int exp)
exp - The exp you want to be addedpublic void minusExp(int exp)
exp - The exp you want to be removedpublic int getExp()
public void incrementKills()
public int getKills()
public void incrementDeaths()
public int getDeaths()
public int getLevel()
public PlayerState getState()
public boolean ownsKit(Kit kit)
kit - the kit you want to checkUses PlayerData#getOwnedKits() to see if the list contains the kitpublic void purchaseKit(Kit kit)
kit - the kit you want to purchaseCopyright © 2021. All rights reserved.