EconomyUtils

open class EconomyUtils(source)

A utility class to perform economy-related operations, such as checking player balances and formatting money values.

Functions

Link copied to clipboard
open fun format(input: Double): String
Formats a double value as a string with a currency-style comma separator.
open fun format(input: Int): String
Formats an integer value as a string with a currency-style comma separator.
Link copied to clipboard
open fun hasEnough(val1: Double, val2: Double): Boolean
Checks if the first amount is greater than or equal to the second amount.
open fun hasEnough(manager: CommandManager, economy: Economy, player: Player, amount: Double): Boolean
Checks if a player has enough money to perform an action.