Advertisement
Guest1221

Game-1

Mar 1st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.35 KB | None | 0 0
  1. on first join:
  2. set {RaceSelect::%player%} to "False"
  3. set {RaceSwap::%player%} to 0
  4. set {Bypass::%player%} to "False"
  5.  
  6. command /bypassreset <player>:
  7. permission: game.admin
  8. trigger:
  9. send "&8» &e%arg-1%'s Bypass &7has been &4Deactivated"
  10. set {Bypass::%arg-1%} to "False"
  11.  
  12. every second:
  13. loop all players:
  14. if {RaceSwap::%loop-player%} >= 1:
  15. remove 1 from {RaceSwap::%loop-player%}
  16.  
  17. command /adminbypass:
  18. permission: game.admin
  19. trigger:
  20. if {Bypass::%player%} is not set:
  21. send ""
  22. send "&8» &7Admin Bypass mode has been &aActivated"
  23. send ""
  24. set {Bypass::%player%} to "True"
  25. stop
  26. if {Bypass::%player%} is "False":
  27. send ""
  28. send "&8» &7Admin Bypass mode has been &aActivated"
  29. send ""
  30. set {Bypass::%player%} to "True"
  31. stop
  32. else if {Bypass::%player%} is "True":
  33. send ""
  34. send "&8» &7Admin Bypass mode has been &4Deactivated"
  35. send ""
  36. set {Bypass::%player%} to "False"
  37. stop
  38.  
  39. command /race:
  40. trigger:
  41. if {Bypass::%player%} is "True":
  42. open chest with 3 rows named "&cRace Select" to player
  43. format slot 0 of player with gray stained glass pane named "&7" to run ""
  44. format slot 1 of player with gray stained glass pane named "&7" to run ""
  45. format slot 2 of player with gray stained glass pane named "&7" to run ""
  46. format slot 3 of player with gray stained glass pane named "&7" to run ""
  47. format slot 4 of player with gray stained glass pane named "&7" to run ""
  48. format slot 5 of player with gray stained glass pane named "&7" to run ""
  49. format slot 6 of player with gray stained glass pane named "&7" to run ""
  50. format slot 7 of player with gray stained glass pane named "&7" to run ""
  51. format slot 8 of player with gray stained glass pane named "&7" to run ""
  52. format slot 9 of player with gray stained glass pane named "&7" to run ""
  53. format slot 10 of player with leather helmet named "&eElf" to run [make player execute "/elf"]
  54. format slot 11 of player with gray stained glass pane named "&7" to run ""
  55. format slot 12 of player with gray stained glass pane named "&7" to run ""
  56. format slot 13 of player with leather helmet named "&eHuman" to run [make player execute "/human"]
  57. format slot 14 of player with gray stained glass pane named "&7" to run ""
  58. format slot 15 of player with gray stained glass pane named "&7" to run ""
  59. format slot 16 of player with leather helmet named "&eDwarf" to run [make player execute "/dwarf"]
  60. format slot 17 of player with gray stained glass pane named "&7" to run ""
  61. format slot 18 of player with gray stained glass pane named "&7" to run ""
  62. format slot 19 of player with gray stained glass pane named "&7" to run ""
  63. format slot 20 of player with gray stained glass pane named "&7" to run ""
  64. format slot 21 of player with gray stained glass pane named "&7" to run ""
  65. format slot 22 of player with gray stained glass pane named "&7" to run ""
  66. format slot 23 of player with gray stained glass pane named "&7" to run ""
  67. format slot 24 of player with gray stained glass pane named "&7" to run ""
  68. format slot 25 of player with gray stained glass pane named "&7" to run ""
  69. format slot 26 of player with gray stained glass pane named "&7" to run ""
  70. stop
  71. if {RaceSwap::%player%} <= 0:
  72. open chest with 3 rows named "&cRace Select" to player
  73. format slot 0 of player with gray stained glass pane named "&7" to run ""
  74. format slot 1 of player with gray stained glass pane named "&7" to run ""
  75. format slot 2 of player with gray stained glass pane named "&7" to run ""
  76. format slot 3 of player with gray stained glass pane named "&7" to run ""
  77. format slot 4 of player with gray stained glass pane named "&7" to run ""
  78. format slot 5 of player with gray stained glass pane named "&7" to run ""
  79. format slot 6 of player with gray stained glass pane named "&7" to run ""
  80. format slot 7 of player with gray stained glass pane named "&7" to run ""
  81. format slot 8 of player with gray stained glass pane named "&7" to run ""
  82. format slot 9 of player with gray stained glass pane named "&7" to run ""
  83. format slot 10 of player with leather helmet named "&eElf" to run [make player execute "/elf"]
  84. format slot 11 of player with gray stained glass pane named "&7" to run ""
  85. format slot 12 of player with gray stained glass pane named "&7" to run ""
  86. format slot 13 of player with leather helmet named "&eHuman" to run [make player execute "/human"]
  87. format slot 14 of player with gray stained glass pane named "&7" to run ""
  88. format slot 15 of player with gray stained glass pane named "&7" to run ""
  89. format slot 16 of player with leather helmet named "&eDwarf" to run [make player execute "/dwarf"]
  90. format slot 17 of player with gray stained glass pane named "&7" to run ""
  91. format slot 18 of player with gray stained glass pane named "&7" to run ""
  92. format slot 19 of player with gray stained glass pane named "&7" to run ""
  93. format slot 20 of player with gray stained glass pane named "&7" to run ""
  94. format slot 21 of player with gray stained glass pane named "&7" to run ""
  95. format slot 22 of player with gray stained glass pane named "&7" to run ""
  96. format slot 23 of player with gray stained glass pane named "&7" to run ""
  97. format slot 24 of player with gray stained glass pane named "&7" to run ""
  98. format slot 25 of player with gray stained glass pane named "&7" to run ""
  99. format slot 26 of player with gray stained glass pane named "&7" to run ""
  100. stop
  101. else:
  102. send "&8» &7You need to wait &e%{RaceSwap::%player%}% seconds &7before changing race."
  103.  
  104. command /elf:
  105. trigger:
  106. if {Bypass::%player%} is "True":
  107. set {Elf::%player%} to "True"
  108. set {Human::%player%} to "False"
  109. set {Dwarf::%player%} to "False"
  110. teleport player to {ElfBase}
  111. send ""
  112. send "&8» &7You have selected the &eElf &7race."
  113. send ""
  114. broadcast "&8» &e%player% &7has joined the &eElf &7Race"
  115. set {RaceSwap::%player%} to 300
  116. stop
  117. if {RaceSwap::%player%} <= 0:
  118. set {Elf::%player%} to "True"
  119. set {Human::%player%} to "False"
  120. set {Dwarf::%player%} to "False"
  121. teleport player to {ElfBase}
  122. send ""
  123. send "&8» &7You have selected the &eElf &7race."
  124. send ""
  125. broadcast "&8» &e%player% &7has joined the &eElf &7Race"
  126. set {RaceSwap::%player%} to 300
  127. stop
  128. else:
  129. send "&8» &7You need to wait &e%{RaceSwap::%player%}% seconds &7before changing race."
  130.  
  131. command /human:
  132. trigger:
  133. if {Bypass::%player%} is "True":
  134. set {Elf::%player%} to "False"
  135. set {Human::%player%} to "True"
  136. set {Dwarf::%player%} to "False"
  137. teleport player to {HumanBase}
  138. send ""
  139. send "&8» &7You have selected the &eHuman &7race."
  140. send ""
  141. broadcast "&8» &e%player% &7has joined the &eHuman &7Race"
  142. set {RaceSwap::%player%} to 300
  143. stop
  144. if {RaceSwap::%player%} <= 0:
  145. set {Elf::%player%} to "False"
  146. set {Human::%player%} to "True"
  147. set {Dwarf::%player%} to "False"
  148. teleport player to {HumanBase}
  149. send ""
  150. send "&8» &7You have selected the &eHuman &7race."
  151. send ""
  152. broadcast "&8» &e%player% &7has joined the &eHuman &7Race"
  153. set {RaceSwap::%player%} to 300
  154. stop
  155. else:
  156. send "&8» &7You need to wait &e%{RaceSwap::%player%}% seconds &7before changing race."
  157.  
  158. command /dwarf:
  159. trigger:
  160. if {Bypass::%player%} is "True":
  161. set {Elf::%player%} to "False"
  162. set {Human::%player%} to "False"
  163. set {Dwarf::%player%} to "True"
  164. teleport player to {DwarfBase}
  165. send ""
  166. send "&8» &7You have selected the &eDwarf &7race."
  167. send ""
  168. broadcast "&8» &e%player% &7has joined the &eDwarf &7Race"
  169. set {RaceSwap::%player%} to 300
  170. stop
  171. if {RaceSwap::%player%} <= 0:
  172. set {Elf::%player%} to "False"
  173. set {Human::%player%} to "False"
  174. set {Dwarf::%player%} to "True"
  175. teleport player to {DwarfBase}
  176. send ""
  177. send "&8» &7You have selected the &eDwarf &7race."
  178. send ""
  179. broadcast "&8» &e%player% &7has joined the &eDwarf &7Race"
  180. set {RaceSwap::%player%} to 300
  181. stop
  182. else:
  183. send "&8» &7You need to wait &e%{RaceSwap::%player%}% seconds &7before changing race."
  184.  
  185. command /setelfbase:
  186. permission: game.admin
  187. trigger:
  188. set {x} to player's x-coordinate
  189. set {y} to player's y-coordinate
  190. set {z} to player's z-coordinate
  191. send "&8» &7The &eElf Spawn &7has been set at %{x}% %{y}% %{z}%"
  192. set {ElfBase} to player's location
  193.  
  194. command /sethumanbase:
  195. permission: game.admin
  196. trigger:
  197. set {x} to player's x-coordinate
  198. set {y} to player's y-coordinate
  199. set {z} to player's z-coordinate
  200. send "&8» &7The &eHuman Spawn &7has been set at %{x}% %{y}% %{z}%"
  201. set {HumanBase} to player's location
  202.  
  203. command /setdwarfbase:
  204. permission: game.admin
  205. trigger:
  206. set {x} to player's x-coordinate
  207. set {y} to player's y-coordinate
  208. set {z} to player's z-coordinate
  209. send "&8» &7The &eDwarf Spawn &7has been set at %{x}% %{y}% %{z}%"
  210. set {DwarfBase} to player's location
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement