Skip to content
home/templates/simple economy (/balance, /pay)
economyIntermediatemc 1.20.x – 1.21.x20 lines

simple economy (/balance, /pay)

tiny built-in economy. each player starts with 100 coins. /balance shows it, /pay <player> <amount> transfers.

vanilla Skriptno addons required.
simple-economy.sk20 lines
on first join:
    set {money.%uuid of player%} to 100

command /balance:
    trigger:
        send "&eYour balance: &a$%{money.%uuid of player%} ? 0%" to player

command /pay <player> <integer>:
    trigger:
        if arg-2 is less than 1:
            send "&cAmount must be positive." to player
            stop
        if {money.%uuid of player%} is less than arg-2:
            send "&cYou don't have enough money." to player
            stop
        remove arg-2 from {money.%uuid of player%}
        add arg-2 to {money.%uuid of arg-1%}
        send "&aYou paid $%arg-2% to %arg-1%." to player
        send "&aYou received $%arg-2% from %player%." to arg-1

get it running

simple-economy.sk · 20 lines · vanilla Skript
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    simple-economy.sk· ready to drop in
  2. 2

    drop it in your scripts folder

    save it exactly here on your server — no typos, just copy the path:

    …/plugins/Skript/scripts/simple-economy.sk
  3. 3

    reload in-game

    run this in chat or console — your script goes live instantly:

    /sk reload simple-economy
that's it — your script is live. hop in-game to try it.
/ related templates

more economy templates

comments