-
Notifications
You must be signed in to change notification settings - Fork 4
Manage player balance (Vault)
Alexander edited this page May 7, 2019
·
4 revisions
Quick example on how to use the vault api
//You can also get the Permission and chat functions from vault with
//vault.permission() and vault.chat()
var balance = vault.economy().getBalance(player);
vault.economy().depositPlayer(player, cast.asDouble(15.25))
vault.economy().withdrawPlayer(player, cast.asDouble(10.5))