mirricraft-skript/mirricraft-gamemode.sk

29 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-10-24 03:31:01 +00:00
# --- Game Mode ---
command /gamemode [<string>]:
description: Game Mode
aliases: /gm
2020-10-24 03:42:03 +00:00
executable by: console and players
2020-10-24 03:31:01 +00:00
trigger:
if arg-1 is "0" or "s" or "survival":
if player has the permission "mirricraft.gamemode.survival":
set gamemode of player to Survival
stop
stop
2020-10-24 03:42:03 +00:00
else if arg-1 is "1" or "c" or "creative":
2020-10-24 03:31:01 +00:00
if player has the permission "mirricraft.gamemode.creative":
set gamemode of player to Creative
stop
stop
2020-10-24 03:42:03 +00:00
else if arg-1 is "2" or "a" or "adventure":
2020-10-24 03:31:01 +00:00
if player has the permission "mirricraft.gamemode.adventure":
set gamemode of player to Adventure
stop
stop
2020-10-24 03:42:03 +00:00
else if arg-1 is "3" or "sp" or "spectator":
2020-10-24 03:31:01 +00:00
if player has the permission "mirricraft.gamemode.spectator":
set gamemode of player to Spectator
stop
stop
else
message "&7[&2MirriCraft&7]&r Sy&ouml;t&auml; pelitila"
stop