Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /gm <text> <offline player>:
- permission: in.gamemode
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if arg 2 is not set:
- if arg 1 is "c":
- if player doesn't have permission "in.gamemode":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set player's gamemode to creative
- send "&7Switched to &ccreative &7gamemode." to player
- if arg 1 is "1":
- if player doesn't have permission "in.gamemode":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set player's gamemode to creative
- send "&7Switched to &ccreative &7gamemode." to player
- if arg 1 is 's":
- if player doesn't have permission "in.gamemode":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set player's gamemode to survival
- send "&7Switched to &csurvival &7gamemode." to player
- if arg 1 is "0":
- if player doesn't have permission "in.gamemode":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set player's gamemode to survival
- send "&7Switched to &csurvival &7gamemode." to player
- if arg 1 is "a":
- if player doesn't have permission "in.gamemode":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set player's gamemode to adventure
- send "&7Switched to &cadventure &7gamemode." to player
- if arg 1 is "2":
- if player doesn't have permission "in.gamemode":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set player's gamemode to adventure
- send "&7Switched to &cadventure &7gamemode." to player
- if arg 1 is "3":
- if player doesn't have permission "in.gamemode":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set player's gamemode to spectator
- send "&7Switched to &cadventure &7gamemode." to player
- else:
- if player doesn't have permission "in.gamemode.others":
- stop
- send "Unknown command. Type ""/help"" for help."
- if arg 1 is c:
- if player doesn't have permission "in.gamemode.others":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set arg 2's gamemode to creative
- send "&7Switched %arg 2% to &ccreative &7gamemode." to player
- send "&7Your gamemode has been changed to &ccreative&7." to arg 2
- if arg 1 is 1:
- if player doesn't have permission "in.gamemode.others":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set arg 2's gamemode to creative
- send "&7Switched %arg 2% to &ccreative &7gamemode." to player
- send "&7Your gamemode has been changed to &ccreative&7." to arg 2
- if arg 1 is s:
- if player doesn't have permission "in.gamemode.others":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set arg 2's gamemode to survival
- send "&7Switched %arg 2% to &csurvival &7gamemopde." to player
- send "&7Your gamemode has been changed to &csurvival&7." to arg 2
- if arg 1 is 0:
- if player doesn't have permission "in.gamemode.others":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set arg 2's gamemode to survival
- send "&7Switched %arg 2% to &csurvival &7gamemopde." to player
- send "&7Your gamemode has been changed to &csurvival&7." to arg 2
- if arg 1 is a:
- if player doesn't have permission "in.gamemode.others":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set arg 2's gamemode to adventure
- send "&7Switched %arg 2% to &cadventure &7gamemode." to player
- send "&7Your gamemode has been changed to &cadventure&7." to arg 2
- if arg 1 is 2:
- if player doesn't have permission "in.gamemode.others":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set arg 2's gamemode to adventure
- send "&7Switched %arg 2% to &cadventure &7gamemode." to player
- send "&7Your gamemode has been changed to &cadventure&7." to arg 2
- if arg 1 is 3:
- if player doesn't have permission "in.gamemode.others":
- stop
- send "Unknown command. Type ""/help"" for help."
- else:
- set arg 2's gamemode to spectator
- send "&7Switched %arg 2% to &cspectator &7gamemode." to player
- send "&7Your gamemode has been changed to &cspectator&7." to arg 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement