Skip to content

Manage player balance (Vault)

Alexander edited this page Apr 27, 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))

Clone this wiki locally