can someone please help me with this skript I made for my modded survival server?
heres a picture of the error
Code:
on first join:
{money::%player%} = 0
{playerkills::%player%} = 0
on right click:
player is sneaking:
event-item is emerald named "&2Money":
add 1 to {money::%player%}
every 2 seconds:
loop all-players:
wipe loop-player's sidebar
set name of sidebar of loop-player to "&c&lMaximus24"
set score "&4Username &6>> &c%player%" in sidebar of loop-player to 1
set score "&4Balance &6>> &c${money::%player%}" in sidebar of loop-player to 2
set score "&4Kills &6>> &c{playerkills::%player%}" in sidebar of loop-player to 3
on death:
victim is a player:
attacker is a player:
add 1 to {playerkills::%attacker%}
on load:
register new shapeless recipe for emerald named "&2Money" with lore "&dShift + Right Click to add to &cBalance" using emerald, air, air, air, air, air, air, air, air
Attachments
Last edited: