hasEnough

open fun hasEnough(manager: CommandManager, economy: Economy, player: Player, amount: Double): Boolean(source)

Checks if a player has enough money to perform an action.

Return

`true` if the player has enough money, `false` otherwise

Parameters

manager

the CommandManager instance

economy

the vault economy

player

the player being checked

amount

the amount required


open fun hasEnough(val1: Double, val2: Double): Boolean(source)

Checks if the first amount is greater than or equal to the second amount.

Return

`true` if `val1` is greater than or equal to `val2`, `false` otherwise

Parameters

val1

the first amount

val2

the second amount