Class EPlayer
java.lang.Object
com.olziedev.playereconomy.api.eco.EPlayer
- All Implemented Interfaces:
Comparable<EPlayer>
Handles and manages all the player data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doubleabstract StringgetLogs()abstract StringgetName()abstract OfflinePlayerabstract Playerabstract doubleabstract UUIDgetUUID()abstract voidGives an item to the player.abstract booleanabstract voidUpdate the player's name for, called when joined.abstract voidsetAcceptingPayments(boolean acceptingPayments) Modifies if the player is accepting payments.abstract voidsetBalance(double balance) Modifies the balance of the player.abstract voidsetLanguage(String language) Modifies the language the player will receive messages in.abstract voidModifies the logged actions for this player.abstract voidUpdates the last balance top calculation.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
EPlayer
public EPlayer()
-
-
Method Details
-
getUUID
- Returns:
- The UUID of the eco player.
-
getName
- Returns:
- The last known warp player's name.
-
getPlayer
- Returns:
- The Bukkit player instance.
-
getOfflinePlayer
- Returns:
- The Bukkit offline player instance.
-
getBalance
public abstract double getBalance()- Returns:
- The balance of the player.
-
setBalance
public abstract void setBalance(double balance) Modifies the balance of the player.- Parameters:
balance- New balance of the player.
-
getTopBalance
public abstract double getTopBalance()- Returns:
- The last calculated balance for the player.
-
updateTopBalance
public abstract void updateTopBalance()Updates the last balance top calculation.getTopBalance() -
refreshName
public abstract void refreshName()Update the player's name for, called when joined.getName() -
getLogs
- Returns:
- List of the logged actions.
-
setLogs
Modifies the logged actions for this player.- Parameters:
logs- Logged actions.
-
isAcceptingPayments
public abstract boolean isAcceptingPayments()- Returns:
- If the player is accepting payments.
-
setAcceptingPayments
public abstract void setAcceptingPayments(boolean acceptingPayments) Modifies if the player is accepting payments.- Parameters:
acceptingPayments- If the player is accepting payments.
-
getLanguage
- Returns:
- The language the player will receive messages in.
-
setLanguage
Modifies the language the player will receive messages in.- Parameters:
language- The language that the plugin supports.
-
giveItem
Gives an item to the player.- Parameters:
itemStack- The item stack to give to the player.
-