Interface EconomyIntegration

All Superinterfaces:
ChatPluginIntegration

public interface EconomyIntegration extends ChatPluginIntegration
  • Method Details

    • getBalance

      double getBalance(OfflinePlayer player)
      Gets an offline player's balance.

      Will return Double.MIN_VALUE if this integration is not able to provide the player's balance.

      Parameters:
      player - Offline player to check
      Returns:
      Player's balance
    • formatBalance

      String formatBalance(double balance)
      Formats the specified amount of money based on this integration's settings.

      Will return Utils.NOT_APPLICABLE if this integration is not able to provide the balance's format.

      Parameters:
      balance - Balance to format
      Returns:
      Formatted balance