Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Latest commit

 

History

History
18 lines (15 loc) · 587 Bytes

File metadata and controls

18 lines (15 loc) · 587 Bytes

OBSOLETE WITH V2. Please see https://lualink.github.io/docs/dependencies/ for using external plugins.

LuaLink-Vault

Docs soon...

Example

script.registerSimpleCommand(function(sender, args)
    if not utils.instanceOf(sender, "org.bukkit.entity.Player") then
        return
    end

    local vault = addons.get("Vault") -- Only for some addons it is required to get it when the command is executed. Some addons can be grabbed on script enable.

    sender:sendRichMessage("<green>Balance: <white>" .. vault.economy.getBalance(sender))
end, {
    name = "balexample"
})