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 double
abstract String
getLogs()
abstract String
getName()
abstract OfflinePlayer
abstract Player
abstract double
abstract UUID
getUUID()
abstract void
Update the player's name for, called when joined.abstract void
setBalance
(double balance) Modifies the balance of the player.abstract void
setLanguage
(String language) Modifies the language the player will receive messages in.abstract void
Modifies the logged actions for this player.abstract void
Updates the last balance top calculation.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.
-
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.
-