Interface IOptEcoAPI

All Known Implementing Classes:
OptEcoAPI

public interface IOptEcoAPI
  • Method Summary

    Modifier and Type Method Description
    boolean addPoints​(double amount)
    Add points into player's account
    java.lang.String getCurrencySymbol()
    Get the currency symbol
    java.util.UUID getPlayer()
    API Player interactive
    double getPoints()
    Get points of player
    boolean hasAccount()
    Check whether the account that exist or not
    boolean isPending()
    Check whether player is on pending transaction or not
    boolean setPoints​(double amount)
    Set points of player
    boolean takePoints​(double amount)
    Take points out of player's account
  • Method Details

    • hasAccount

      boolean hasAccount()
      Check whether the account that exist or not
      Returns:
      boolean has this account on database or not
    • setPoints

      boolean setPoints​(double amount)
      Set points of player
      Parameters:
      amount - amount you want to set
      Returns:
      boolean is set or not
    • getPoints

      double getPoints()
      Get points of player
      Returns:
      double balance of that player
    • isPending

      boolean isPending()
      Check whether player is on pending transaction or not
      Returns:
      boolean is pending or not
    • getPlayer

      java.util.UUID getPlayer()
      API Player interactive
      Returns:
      Player
    • addPoints

      boolean addPoints​(double amount)
      Add points into player's account
      Parameters:
      amount - how much
      Returns:
      is added or not
    • takePoints

      boolean takePoints​(double amount)
      Take points out of player's account
      Parameters:
      amount - how much
      Returns:
      is taken or not
    • getCurrencySymbol

      java.lang.String getCurrencySymbol()
      Get the currency symbol
      Returns:
      String currency symbol