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
copy or download
grab the .sk file with the buttons up top.
simple-economy.sk· ready to drop in - 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
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
economy
daily reward (/daily)
players can claim a reward once per 24 hours. tracks per-player using a Skript variable.
economyauction house (/ah) — basic
players list items for sale at a price. /ah opens the browse gui. buy with /ah buy <id>. money goes to seller.
economyplayer chest shops (with stock check)
players create a chest shop with a [Shop] sign — line 2 = price, line 3 = item. buyers right-click the sign; the script verifies the chest below has stock, removes one item from it, transfers money, gives the item to the buyer.