EconomyManager

interface EconomyManager

Manages all the economy methods. You can use this or the vault API.

Functions

Link copied to clipboard
open fun deposit(uuid: UUID, amount: Double)

Deposit money into a players account.

Link copied to clipboard
abstract fun getBalance(uuid: UUID): Double

Get a players balance.

Link copied to clipboard
open fun hasSufficientFunds(uuid: UUID, amount: Double): Boolean

Check if a player has enough money.

Link copied to clipboard
abstract fun setBalance(uuid: UUID, amount: Double)

Set a players balance to a new amount.

Link copied to clipboard
open fun withdraw(uuid: UUID, amount: Double): Boolean

Withdraw money from a players account.