Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.19 KB | None | 0 0
  1. command /sumo [<text>] [<player>]:
  2. trigger:
  3. if arg 1 is set:
  4. if arg 1 is "invite":
  5. if arg 2 is set:
  6. if {matchison} is true:
  7. send "&4(!) &cThere are is already a match on!"
  8. stop
  9. if {matchplayer.%arg 2%} is set:
  10. send "&4(!) &cThe player already got invited."
  11. stop
  12. message "&c(!) &aYou got invited by &f%player%&a for a sumo match" to arg 2
  13. message "&c(!) &a/sumo accept &for &a/sumo deceline" to arg 2
  14. set {matchplayer.%arg 2%} to player
  15. set {matchplayer.%player%} to arg-2
  16. set {matchplayer.%arg 2%.uuid} to player's UUID
  17. set {matchplayer.%player%.uuid} to arg-2's UUID
  18. set {invited.%player%} to true
  19. message "&c(!) &aYou invited has been send to %arg 2%" to player
  20. stop
  21.  
  22. else if arg 1 is "accept":
  23. if {invited.%player%} is set:
  24. clear {invited.%player%}
  25. if {matchison} is true:
  26. message "&4(!) &cYou was too late someone else was already started a sumo match" to player
  27. message "&4(!) &f%player%&c was too late with accepting someone else already started a sumo match" to {matchplayer.%player%}
  28. clear {matchplayer.%player%}
  29. clear {matchplayer.%{matchplayer.%player%}%}
  30. stop
  31. set {matchison} to true
  32. message "&c(!) &aYou has accepted &f%player%'s &arequest. &fYou will be teleported over 10 seconds" to {matchplayer.%player%}
  33. message "&c(!) &f%player% &ahas accepted your sumo match request &fYou will be teleported over 10 seconds" to player
  34. wait 200 ticks
  35. teleport player to {matchplayer1spawn}
  36. set {tempplayer} to {matchplayer.%player%}
  37. teleport {tempplayer} to {matchplayer2spawn}
  38. set {donotmove.%player%} to true
  39. set {donotmove.%{matchplayer.%player%}%} to true
  40. set {_countt} to 0
  41. loop 36 times:
  42. set {in.%player%.%{_countt}%} to slot {_countt} of player's inventory
  43. set {in.%{matchplayer.%player%}%.%{_count}%} to slot {_countt} of {matchplayer.%player%}'s inventory
  44. add 1 to {_countt}
  45. set {in.%player%.h} to player's helmet
  46. set {in.%{matchplayer.%player%}%.h} to {matchplayer.%player%}'s helmet
  47. set {in.%player%.c} to player's chestplate
  48. set {in.%{matchplayer.%player%}%.c} to {matchplayer.%player%}'s chestplate
  49. set {in.%player%.l} to player's leggings
  50. set {in.%{matchplayer.%player%}%.l} to {matchplayer.%player%}'s leggings
  51. set {in.%player%.b} to player's boots
  52. set {in.%{matchplayer.%player%}%.b} to {matchplayer.%player%}'s boots
  53. message "&c(!) &aYou get your items back after the match ended" to player
  54. message "&c(!) &aYou get your items back after the match ended" to {matchplayer.%player%}
  55. clear player's inventory
  56. clear {matchplayer.%player%}'s inventory
  57. send player title "&bSumo match begin over" with subtitle "&a3 seconds" for 1 seconds
  58. send {matchplayer.%player%} title "&bSumo match begin over" with subtitle "&a3 seconds" for 1 seconds
  59. wait 20 ticks
  60. send player title "&bSumo match begin over" with subtitle "&a2 seconds" for 1 seconds
  61. send {matchplayer.%player%} title "&bSumo match begin over" with subtitle "&a2 seconds" for 1 seconds
  62. wait 20 ticks
  63. send player title "&bSumo match begin over" with subtitle "&a1 second" for 1 seconds
  64. send {matchplayer.%player%} title "&bSumo match begin over" with subtitle "&a1 second" for 1 seconds
  65. wait 20 ticks
  66. clear {donotmove.%player%}
  67. clear {donotmove.%{matchplayer.%player%}%}
  68. message "&c(!) &b&lBEGIN!" to player
  69. message "&c(!) &b&lBEGIN!" to {matchplayer.%player%}
  70. stop
  71.  
  72.  
  73. else:
  74. send "&c(!) &aSorry, you don't has been invited"
  75.  
  76. else if arg 1 is "decline":
  77. if {matchplayer.%player%} is set:
  78. send "&4(!) &cYou has declined &f%{matchplayer.%player%}%&c sumo match"
  79. message "&4(!) &f%player%&c has declined your sumo match" to {matchplayer.%player%}
  80. set {tempmatchplayer} to {matchplayer.%player%}
  81. clear {matchplayer.%player%}
  82. clear {matchplayer.%{tempmatchplayer}%}
  83. clear {tempmatchplayer}
  84.  
  85. else:
  86. send "&c(!) &aSorry, you don't has been invited"
  87. else if arg 1 is "leave":
  88. if {matchplayer.%player%} is set:
  89. send "&4(!) &cYou lose the sumo match"
  90. message "&c(!) &aYou won the sumo match!" to {matchplayer.%player%}
  91. execute console command "espawn %{matchplayer.%player%}%"
  92. execute console command "espawn %player%"
  93. add 1 to {sumostats.win.%{matchplayer.%player%.uuid}%}
  94. add 1 to {sumostats.lose.%player's UUID%}
  95. set {matchison} to false
  96. set {_count} to 0
  97. loop 36 times:
  98. set slot {_count} of player's inventory to {in.%player%.%{_count}%}
  99. set slot {_count} of {matchplayer.%player%}'s inventory to {in.%{matchplayer.%player%}%.%{_count}%}
  100. add 1 to {_count}
  101. set the helmet of player to {in.%player%.h}
  102. set the chestplate of player to {in.%player%.c}
  103. set the leggings of player to {in.%player%.l}
  104. set the boots of player to {in.%player%.b}
  105. set the helmet of player to {in.%{matchplayer.%player%}%.h}
  106. set the chestplate of player to {in.%{matchplayer.%player%}%.c}
  107. set the leggings of player to {in.%{matchplayer.%player%}%.l}
  108. set the boots of player to {in.%{matchplayer.%player%}%.b}
  109. clear {matchplayer.%{matchplayer.%player%}%}
  110. clear {matchplayer.%player%}
  111. stop
  112. else if arg 1 is "stats":
  113. if {sumostats.win.%player's UUID%} is not set:
  114. set {sumostats.win.%player's UUID%} to 0
  115. if {sumostats.lose.%player's UUID%} is not set:
  116. set {sumostats.lose.%player's UUID%} to 0
  117. send "&a=-=-=-=-=-=-= &bStats &a=-=-=-=-=-=-="
  118. send "&r"
  119. send "&r"
  120. send "&r &r &aWins: &f%{sumostats.win.%player's UUID%}%"
  121. send "&r &r &aLoses: &f%{sumostats.lose.%player's UUID%}%"
  122. send "&r"
  123. else if arg 1 is "spectate":
  124. if {matchison} is true:
  125. teleport player to {sumospectate}
  126. send "&c(!) &aYou has been teleported to watch the match."
  127. stop
  128.  
  129. else:
  130. send "&4(!)&c There is no current match"
  131. stop
  132.  
  133.  
  134. else:
  135. make player execute "sumo"
  136. else:
  137. send "&b=-=-=-=-=-= &a&lHelp Menu &b=-=-=-=-=-="
  138. send "&r"
  139. send "&r"
  140. send "&b/sumo leave &f||&a Leave current sumo match"
  141. send "&b/sumo invite [player] &f||&a Invite a player for a sumo match"
  142. send "&b/sumo accept &f||&a Accept sumo match when you got invited"
  143. send "&b/sumo decline &f||&a Deceline sumo match when you get invited"
  144. send "&b/sumo stats ||&a See all sumo stats"
  145. send "&b/sumo spectate &f||&a Spectate current sumo match"
  146. send "&b/sumop &f||&a Admin help menu"
  147. stop
  148.  
  149. on any movement:
  150. if {donotmove.%player%} is set:
  151. cancel event
  152. message "&c(!) &aYou can move when timer is done" to player
  153.  
  154. on death:
  155. if {matchplayer.%player%} is set:
  156. set {giveitemsback.%player%} to true
  157. message "&4(!) &cYou lose the sumo match" to player
  158. message "&c(!) &aYou won the sumo match! The other died" to {matchplayer.%player%}
  159. execute console command "espawn %{matchplayer.%player%}%"
  160. add 1 to {sumostats.win.%{matchplayer.%player%.uuid}%}
  161. add 1 to {sumostats.lose.%player's UUID%}
  162. set {matchison} to false
  163. set {_count} to 0
  164. loop 36 times:
  165. set slot {_count} of {matchplayer.%player%}'s inventory to {in.%{matchplayer.%player%}%.%{_count}%}
  166. add 1 to {_count}
  167. set the helmet of player to {in.%{matchplayer.%player%}%.h}
  168. set the chestplate of player to {in.%{matchplayer.%player%}%.c}
  169. set the leggings of player to {in.%{matchplayer.%player%}%.l}
  170. set the boots of player to {in.%{matchplayer.%player%}%.b}
  171. clear {matchplayer.%{matchplayer.%player%}%}
  172. clear {matchplayer.%player%}
  173. stop
  174. on quit:
  175. if {matchplayer.%player%} is set:
  176. set {giveitemsback.%player%} to true
  177. execute console command "espawn %{matchplayer.%player%}%"
  178. message "&c(!) &aYou won the sumo match!" to {matchplayer.%player%}
  179. add 1 to {sumostats.win.%{matchplayer.%player%.uuid}%}
  180. add 1 to {sumostats.lose.%player's UUID%}
  181. set {matchison} to false
  182. set {_count} to 0
  183. loop 36 times:
  184. set slot {_count} of {matchplayer.%player%}'s inventory to {i.%{matchplayer.%player%}%.%{_count}%}
  185. add 1 to {_count}
  186. set the helmet of player to {in.%{matchplayer.%player%}%.h}
  187. set the chestplate of player to {in.%{matchplayer.%player%}%.c}
  188. set the leggings of player to {in.%{matchplayer.%player%}%.l}
  189. set the boots of player to {in.%{matchplayer.%player%}%.b}
  190. clear {matchplayer.%{matchplayer.%player%}%}
  191. clear {matchplayer.%player%}
  192. stop
  193. on respawn:
  194. if {giveitemsback.%player%} is true:
  195. clear {giveitemsback}
  196. set {_count} to 0
  197. loop 36 times:
  198. set slot {_count} of player's inventory to {in.%player%.%{_count}%}
  199. add 1 to {_count}
  200. set the helmet of player to {in.%player%.h}
  201. set the chestplate of player to {in.%player%.c}
  202. set the leggings of player to {in.%player%.l}
  203. set the boots of player to {in.%player%.b}
  204.  
  205. on join:
  206. if {giveitemsback.%player%} is true:
  207. clear {giveitemsback}
  208. set {_count} to 0
  209. loop 36 times:
  210. set slot {_count} of player's inventory to {in.%player%.%{_count}%}
  211. add 1 to {_count}
  212. set the helmet of player to {in.%player%.h}
  213. set the chestplate of player to {in.%player%.c}
  214. set the leggings of player to {in.%player%.l}
  215. set the boots of player to {in.%player%.b}
  216. stop
  217.  
  218. command /sumop [<text>]:
  219. permission: "sumo.*"
  220. trigger:
  221. if arg 1 is set:
  222. if arg 1 is "spectate":
  223. set {sumospectate} to player's location
  224. send "&c(!) &aYou set spectate location!"
  225.  
  226. else if arg 1 is "player1spawn":
  227. set {matchplayer1spawn} to player's location
  228. send "&c(!) &aYou set player 1 spawn location!"
  229.  
  230. else if arg 1 is "player2spawn":
  231. set {matchplayer2spawn} to player's location
  232. send "&c(!) &aYou set player 2 spawn location!"
  233.  
  234. else:
  235. execute player command "sumop"
  236.  
  237. else:
  238. send "&a=-=-=-=-=-= &b&lAdmin Help &a=-=-=-=-=-="
  239. send "&r"
  240. send "&r"
  241. send "&b/sumop spectate &f|| &aSet spectate spawn location"
  242. send "&b/sumop player1spawn &f|| &aSet 1 player spawn location"
  243. send "&b/sumop player2spawn &f|| &aSet 2 player spawn location"
  244. send "&r"
  245.  
  246. on walking on water:
  247. if {matchplayer.%player%} is set:
  248. if block above the block below player is water:
  249. kill player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement