Jeżeli chcesz aby gracz/konsola wykonała komendę użyj tego:
on login:
broadcast "{@tag} &7Gracz &3%player% &7wbil na nasz serwer :D"
if player has op:
execute console command "/pex user %player% group set ZABLOKOWANY"
execute console command "/gamemode 0 %player%"
deop %player%
console możesz zamienić na player wtedy gracz ten wykonuję komendę obok. Nie zapomnij o " / "
Zazwyczaj PEX blokuje korzystania z komendy /pex przez graczy.
on mine of stone:
if player has permission "turbo.drop":
if {diamond.%player%} is true:
if tool of the player is enchanted with fortune 3:
chance of {@svip_chance_diamond}:
give a random number between 2 and 4 of diamond to the player
else if tool of the player is enchanted with fortune 2:
chance of {@svip_chance_diamond}:
give a random number between 1 and 3 of diamond to the player
else if tool of the player is enchanted with fortune 1:
chance of {@svip_chance_diamond}:
give a random number between 1 and 2 of diamond to the player
else:
chance of {@svip_chance_diamond}:
give 1 diamond to the player
else: <--- USUŃ TO
stop <--- I TO
Musisz usunąć else i stop po if z kazdego if'a wtedy robi sie kolejka if'ów, a event nie kończy sie na jednym if'ie