Advertisement
Guest User

Gamemode

a guest
Jan 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.19 KB | None | 0 0
  1. command /gm <text> <offline player>:
  2. permission: in.gamemode
  3. permission message: Unknown command. Type "/help" for help.
  4. trigger:
  5. if arg 2 is not set:
  6. if arg 1 is "c":
  7. if player doesn't have permission "in.gamemode":
  8. stop
  9. send "Unknown command. Type ""/help"" for help."
  10. else:
  11. set player's gamemode to creative
  12. send "&7Switched to &ccreative &7gamemode." to player
  13. if arg 1 is "1":
  14. if player doesn't have permission "in.gamemode":
  15. stop
  16. send "Unknown command. Type ""/help"" for help."
  17. else:
  18. set player's gamemode to creative
  19. send "&7Switched to &ccreative &7gamemode." to player
  20. if arg 1 is 's":
  21. if player doesn't have permission "in.gamemode":
  22. stop
  23. send "Unknown command. Type ""/help"" for help."
  24. else:
  25. set player's gamemode to survival
  26. send "&7Switched to &csurvival &7gamemode." to player
  27. if arg 1 is "0":
  28. if player doesn't have permission "in.gamemode":
  29. stop
  30. send "Unknown command. Type ""/help"" for help."
  31. else:
  32. set player's gamemode to survival
  33. send "&7Switched to &csurvival &7gamemode." to player
  34. if arg 1 is "a":
  35. if player doesn't have permission "in.gamemode":
  36. stop
  37. send "Unknown command. Type ""/help"" for help."
  38. else:
  39. set player's gamemode to adventure
  40. send "&7Switched to &cadventure &7gamemode." to player
  41. if arg 1 is "2":
  42. if player doesn't have permission "in.gamemode":
  43. stop
  44. send "Unknown command. Type ""/help"" for help."
  45. else:
  46. set player's gamemode to adventure
  47. send "&7Switched to &cadventure &7gamemode." to player
  48. if arg 1 is "3":
  49. if player doesn't have permission "in.gamemode":
  50. stop
  51. send "Unknown command. Type ""/help"" for help."
  52. else:
  53. set player's gamemode to spectator
  54. send "&7Switched to &cadventure &7gamemode." to player
  55. else:
  56. if player doesn't have permission "in.gamemode.others":
  57. stop
  58. send "Unknown command. Type ""/help"" for help."
  59. if arg 1 is c:
  60. if player doesn't have permission "in.gamemode.others":
  61. stop
  62. send "Unknown command. Type ""/help"" for help."
  63. else:
  64. set arg 2's gamemode to creative
  65. send "&7Switched %arg 2% to &ccreative &7gamemode." to player
  66. send "&7Your gamemode has been changed to &ccreative&7." to arg 2
  67. if arg 1 is 1:
  68. if player doesn't have permission "in.gamemode.others":
  69. stop
  70. send "Unknown command. Type ""/help"" for help."
  71. else:
  72. set arg 2's gamemode to creative
  73. send "&7Switched %arg 2% to &ccreative &7gamemode." to player
  74. send "&7Your gamemode has been changed to &ccreative&7." to arg 2
  75. if arg 1 is s:
  76. if player doesn't have permission "in.gamemode.others":
  77. stop
  78. send "Unknown command. Type ""/help"" for help."
  79. else:
  80. set arg 2's gamemode to survival
  81. send "&7Switched %arg 2% to &csurvival &7gamemopde." to player
  82. send "&7Your gamemode has been changed to &csurvival&7." to arg 2
  83. if arg 1 is 0:
  84. if player doesn't have permission "in.gamemode.others":
  85. stop
  86. send "Unknown command. Type ""/help"" for help."
  87. else:
  88. set arg 2's gamemode to survival
  89. send "&7Switched %arg 2% to &csurvival &7gamemopde." to player
  90. send "&7Your gamemode has been changed to &csurvival&7." to arg 2
  91. if arg 1 is a:
  92. if player doesn't have permission "in.gamemode.others":
  93. stop
  94. send "Unknown command. Type ""/help"" for help."
  95. else:
  96. set arg 2's gamemode to adventure
  97. send "&7Switched %arg 2% to &cadventure &7gamemode." to player
  98. send "&7Your gamemode has been changed to &cadventure&7." to arg 2
  99. if arg 1 is 2:
  100. if player doesn't have permission "in.gamemode.others":
  101. stop
  102. send "Unknown command. Type ""/help"" for help."
  103. else:
  104. set arg 2's gamemode to adventure
  105. send "&7Switched %arg 2% to &cadventure &7gamemode." to player
  106. send "&7Your gamemode has been changed to &cadventure&7." to arg 2
  107. if arg 1 is 3:
  108. if player doesn't have permission "in.gamemode.others":
  109. stop
  110. send "Unknown command. Type ""/help"" for help."
  111. else:
  112. set arg 2's gamemode to spectator
  113. send "&7Switched %arg 2% to &cspectator &7gamemode." to player
  114. send "&7Your gamemode has been changed to &cspectator&7." to arg 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement