Regarde , j'ai fais la même chose sur mon serveur en changent quelque choses :)
command /shop:
trigger:
open chest with 1 row named "&4✦ &9&lGRADES &4✦" to player
wait 2 ticks
format slot 0 of player with 1 gold ingot named "&c✷ &eV.I.P &c✷" with lore "&6PRIX : 4000 NEWSMONEYS" to close then run [invoke "grade1" from player]
format slot 2 of player with 1 diamond named "&e✹ &cV.I.P + &e✹" with lore "&6PRIX : 8000 NEWSMONEYS" to close then run [invoke "grade2" from player]
sub "grade1":
set {_player} to parameter 1
if {_player} doesn't have permission "Permissiondugrade":
if {_player}'s balance is less than 4000:
send message "Non, tu n'a pas assez de NewsMoney" to {_player }
stop
execute console command "manuadd %{_player}% V.I.P spawnv22"
execute console command "manuadd %{_player}% V.I.P world"
execute console command "manuadd %{_player}% V.I.P+ all_unnamed_worlds"
remove 4000 from {_player}'s balance
send message "&6&lFélicitation , vous êtes &eV.I.P" to {_player }
sub "grade2":
set {_player} to parameter 1
if {_player} doesn't have permission "Permissiondugrade":
if {_player}'s balance is less than 8000:
send message "Non, tu n'a pas assez de NewsMoney" to {_player }
stop
execute console command "manuadd %{_player}% V.I.P+ spawnv22"
execute console command "manuadd %{_player}% V.I.P+ world"
execute console command "manuadd %{_player}% V.I.P+ all_unnamed_worlds"
remove 8000 from {_player}'s balance
send message "&6&lFélicitation , vous êtes &cV.I.P+" to {_player }