Vault eco balance to a money banknote/voucher

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

NanoKent

Member
Jun 10, 2025
2
0
1
I need a skript that when a command used /withdraw it takes the balance from the vault plugin and puts that money to a voucher that says the money in the lore
 
Code:
command /withdraw [<number>]:
    permission: skript.withdraw
    trigger:
        if arg-1 is set:
            set {_amount} to arg-1 parsed as number
            if {_amount} > 0:
                if player's balance >= {_amount}:
                    remove {_amount} from player's balance
                    set {_voucher} to a paper named "&6Money Voucher"
                    set lore of {_voucher} to "&7Value: &a$%{_amount}%"
                    give player {_voucher}
                    send "&aYou have withdrawn $%{_amount}% and received a voucher!" to player
                else:
                    send "&cYou don't have enough money!" to player
            else:
                send "&cPlease enter a valid amount!" to player
        else:
            send "&cUsage: /withdraw <amount>" to player

But this usually belongs in the Skript Request Category...