I have a Skript that allows players to change their gamemode, but not in their world.
Somehow ethe commands only show up in the completer when I am Owner.
Code:
on command "/creative":
if player has permission "essentials.gamemode.creative":
exit
else:
if player is in world "HUB":
cancel event
send formatted formatted "&4You can only run this command in your personal world!"
else:
cancel event
set gamemode of player to Creative
send formatted formatted "&6Set gamemode &ccreative &6for &c%colored player's prefix%player%colored player's suffix%&6."
on command "/adventure":
if player has permission "essentials.gamemode.adventure":
exit
else:
if player is in world "HUB":
cancel event
send formatted formatted "&4You can only run this command in your personal world!"
else:
cancel event
set gamemode of player to Adventure
send formatted formatted "&6Set gamemode &cadventure &6for &c%colored player's prefix%player%colored player's suffix%&6."
on command "/spectator":
if player has permission "essentials.gamemode.spectator":
exit
else:
if player is in world "HUB":
cancel event
send formatted formatted "&4You can only run this command in your personal world!"
else:
cancel event
set gamemode of player to Spectator
send formatted formatted "&6Set gamemode &cspectator &6for &c%colored player's prefix%player%colored player's suffix%&6."
on command "/survival":
if player has permission "essentials.gamemode.survival":
exit
else:
if player is in world "HUB":
cancel event
send formatted formatted "&4You can only run this command in your personal world!"
else:
cancel event
set gamemode of player to Survival
send formatted formatted "&6Set gamemode &csurvival &6for &c%colored player's prefix%player%colored player's suffix%&6."
Somehow ethe commands only show up in the completer when I am Owner.