Hello guys I have another problem, when I run this code:
When I run this code all the permissions are added fine but the money give command runs twice so the player gets 10k money instead of 5k and i cant understand why.
Thanks for the help.
Code:
command /vip [<player>] [<text>]:
trigger:
if arg 1 is set:
if arg 2 is "Terrestrial":
loop all players:
send loop-players title "&6%arg 1% &aha comprato il pacchetto:" with subtitle "&6VIP Terrestrial&a!" for 5 seconds
add "chat.terrestrial.prefix" to arg 1's permissions
add "kit.test.permission" to arg 1's permissions
add "playervaults.amount.2" to arg 1's permissions
add "hat.hat" to arg 1's permissions
make console execute command "money give %arg 1% 5000"
When I run this code all the permissions are added fine but the money give command runs twice so the player gets 10k money instead of 5k and i cant understand why.
Thanks for the help.