Class EPlayer

java.lang.Object
com.olziedev.playereconomy.api.eco.EPlayer
All Implemented Interfaces:
Comparable<EPlayer>

public abstract class EPlayer extends Object implements Comparable<EPlayer>
Handles and manages all the player data.
  • Constructor Details

    • EPlayer

      public EPlayer()
  • Method Details

    • getUUID

      public abstract UUID getUUID()
      Returns:
      The UUID of the eco player.
    • getName

      public abstract String getName()
      Returns:
      The last known warp player's name.
    • getPlayer

      public abstract Player getPlayer()
      Returns:
      The Bukkit player instance.
    • getOfflinePlayer

      public abstract OfflinePlayer 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

      public abstract List<String> getLogs()
      Returns:
      List of the logged actions.
    • setLogs

      public abstract void setLogs(List<String> logs)
      Modifies the logged actions for this player.
      Parameters:
      logs - Logged actions.
    • getLanguage

      public abstract String getLanguage()
      Returns:
      The language the player will receive messages in.
    • setLanguage

      public abstract void setLanguage(String language)
      Modifies the language the player will receive messages in.
      Parameters:
      language - The language that the plugin supports.