economyBeginnernewmc 1.20.x – 1.21.x32 lines
bank with interest (/bank /deposit)
players deposit money into a bank account that earns 2% interest every hour. /bank shows balance, /deposit and /withdraw move funds.
vanilla Skriptno addons required.
bank-interest.sk32 lines
command /bank: trigger: send "&6&l══ BANK ══" to player send "&eWallet: &a$%{money.%uuid of player%} ? 0%" to player send "&eBank: &a$%{bank.%uuid of player%} ? 0%" to player send "&7Interest rate: &a2% &7per hour" to player command /deposit <integer>: trigger: if {money.%uuid of player%} < arg-1: send "&cYou don't have $%arg-1% in your wallet." to player stop remove arg-1 from {money.%uuid of player%} add arg-1 to {bank.%uuid of player%} send "&aDeposited &e$%arg-1% &ainto your bank." to player command /withdraw <integer>: trigger: if {bank.%uuid of player%} < arg-1: send "&cYou don't have $%arg-1% in your bank." to player stop remove arg-1 from {bank.%uuid of player%} add arg-1 to {money.%uuid of player%} send "&aWithdrew &e$%arg-1% &afrom your bank." to player every 1 hour: loop all players: if {bank.%uuid of loop-player%} > 0: set {_interest} to {bank.%uuid of loop-player%} * 0.02 add {_interest} to {bank.%uuid of loop-player%} send "&aYour bank earned &e$%{_interest}% &ain interest!" to loop-player
get it running
bank-interest.sk · 32 lines · vanilla Skript- 1
copy or download
grab the .sk file with the buttons up top.
bank-interest.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/bank-interest.sk - 3
reload in-game
run this in chat or console — your script goes live instantly:
/sk reload bank-interest
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.
economysimple economy (/balance, /pay)
tiny built-in economy. each player starts with 100 coins. /balance shows it, /pay <player> <amount> transfers.
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.