SHARE
TWEET

send help

iZeeron Feb 22nd, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     prefix: &6SU&eMO &8ยป
  3.  
  4. command /event [<text>] [<text>]:
  5.     trigger:
  6.         if arg-1 is set:
  7.             if arg-1 is "host":
  8.                 if player has permission "admin":
  9.                     if arg-2 is "sumo":
  10.                         if {sumo.game} is not set:
  11.                             set {sumo.game} to true
  12.                             broadcast ""
  13.                             broadcast "{@prefix} &c%player% &eis now hosting a sumo event!"
  14.                             broadcast ""
  15.                         else:
  16.                             broadcast "{@prefix} &eThere is already an existing game."
  17.                     else:
  18.                         send "{@prefix} &eOur only and currently available event right now is sumo. /event host sumo"
  19.                 else:
  20.                     send "{@prefix} &eInsufficient Permissions"
  21.             if arg-1 is "join":
  22.                 if {sumo.game} is set:
  23.                     if {joined.%player%} is not set:
  24.                         set {joined.%player%} to true
  25.                         add 1 to {sumo.number}
  26.                         add player to {allsumoplayers::*}
  27.                         add player to {sumogame::*}
  28.                         send "{@prefix} &eYou have successfully joined the event!"
  29.                         teleport player to {spawn}
  30.                 else:
  31.                     send "{@prefix} &eThere are currently no games running."
  32.          
  33.             if arg-1 is "setpos":
  34.                 if player has permission "admin":
  35.                     if arg-2 is "sumo1":
  36.                         set {sumo1} to location of player
  37.                         send "{@prefix} &eSuccessfully set the position to %{sumo1}%"
  38.                     else if arg-2 is "sumo2":
  39.                         set {sumo2} to location of player
  40.                         send "{@prefix} &eSUccessfully set the position to %{sumo2}%"
  41.                     else if arg-2 is "sumo":
  42.                         set {sumo} to location of player
  43.                         send "{@prefix} &eSUccessfully set the position to %{sumo}%"
  44.                     else:
  45.                         send "{@prefix} &e/event setpos sumo1/sumo2/sumo"
  46.  
  47. every second:
  48.     if {sumo.game} is set:
  49.         if {random.players} is not set:
  50.             set {random.players} to true
  51.             set {random.player} to random element out of {sumogame::*}
  52.             set {random2.player} to random element out of {sumogame::*}
  53.             set {random.player} to {_random1}
  54.             set {random2.player} to {_random2}
  55.             teleport {random.player} to {sumo1}
  56.             teleport {random2.player} to {sumo2}
  57.             set {game.%{random.player}%} to true
  58.             set {game.%{random2.player}%} to true
  59.             set {movement.%{_random1}%} to 5
  60.             set {movement.%{_random2}%} to 5
  61.             wait 1 second
  62.             reduce {movement.%{_random1}%} by 1
  63.             reduce {movement.%{_random2}%} by 1
  64.             broadcast "{@prefix} &eGAME STARTING IN 5 SECONDS"
  65.             wait 1 second
  66.             reduce {movement.%{_random1}%} by 1
  67.             reduce {movement.%{_random2}%} by 1
  68.             broadcast "{@prefix} &eGAME STARTING IN 4 SECONDS"
  69.             wait 1 second
  70.             reduce {movement.%{_random1}%} by 1
  71.             reduce {movement.%{_random2}%} by 1
  72.             broadcast "{@prefix} &eGAME STARTING IN 3 SECONDS"
  73.             wait 1 second
  74.             reduce {movement.%{_random1}%} by 1
  75.             reduce {movement.%{_random2}%} by 1
  76.             broadcast "{@prefix} &eGAME STARTING IN 2 SECONDS"
  77.             wait 1 second
  78.             reduce {movement.%{_random1}%} by 1
  79.             reduce {movement.%{_random2}%} by 1
  80.             broadcast "{@prefix} &eGAME STARTING IN 1 SECONDS"
  81.             wait 1 second
  82.             reduce {movement.%{_random1}%} by 1
  83.             reduce {movement.%{_random2}%} by 1
  84.             broadcast "{@prefix} &c&LGO!"
  85.  
  86.             if {movement.%{_random1}%} = 0:
  87.                 delete {movement.%{_random1}%}
  88.             if {movement.%{_random2}%} = 0:
  89.                 delete {movement.%{_random2}%}
  90.             delete {random.players}
  91.  
  92.  
  93. on any movement:
  94.     if {movement.%player%} is set:
  95.         cancel event
  96.  
  97. on disconnect:
  98.     if "%{random.player}%" is "%player%":
  99.         delete {random.%player%}
  100.         broadcast "{@prefix} &e%{random2.%player%}% won the round!"
  101.     if "%{random2.player}%" is "%player%":
  102.         delete {random2.%player%}
  103.         broadcast "{@prefix} &e%{random.%player%}% won the round!"
  104.  
  105. every tick:
  106.     loop all players:
  107.         if block below loop-player is water:
  108.             if {second.game} is not set:
  109.                 if "%{random.player}%" is "%loop-player%":
  110.                     broadcast "{@prefix} &e%{random.player}% has been eliminated!"
  111.                     delete {random.player}
  112.                     add {random2.player} to {list2::*}
  113.                     delete {random2.player}
  114.                     teleport loop-player to {sumo}
  115.                     stop
  116.                 if "%{random2.player}%" is "%loop-player%":
  117.                     broadcast "{@prefix} &e%{random2.player}% has been eliminated!"
  118.                     add {random.player} to {list2::*}
  119.                     delete {random.player}
  120.                     teleport loop-player to {sumo}
  121.                     stop
  122.             else:
  123.                 if "%{random.player}%" is "%loop-player%":
  124.                     broadcast "{@prefix} &e%{random.player}% has been eliminated!"
  125.                     delete {random.player}
  126.                     add {random2.player} to {list3::*}
  127.                     delete {random.player}
  128.                     teleport loop-player to {sumo}
  129.                     stop
  130.                 if "%{random2.player}%" is "%loop-player%":
  131.                     broadcast "{@prefix} &e%{random2.player}% has been eliminated!"
  132.                     add {random.player} to {list3::*}
  133.                     delete {random.player}
  134.                     teleport loop-player to {sumo}
  135.                     stop
  136.  
  137.  
  138. every tick:
  139.     if {sumo.game} is set:
  140.         if size of {allsumoplayers::*} > 1:
  141.             if size of {sumogame::*} = 0:
  142.                 if size of {list2::*} > 1:
  143.                     set {second.game} to true
  144.                     set {random.player} to random element out of {list::*}
  145.                     set {random2.player} to random element out of {list::*}
  146.                     teleport {random.player} to {sumo1}
  147.                     teleport {random2.player} to {sumo2}
  148.                 else:
  149.                     if size of {list3::*} > 1:
  150.                         set {third.game} to true
  151.                         set {random.player} to random element out of {list::*}
  152.                         set {random2.player} to random element out of {list::*}
  153.                         teleport {random.player} to {sumo1}
  154.                         teleport {random2.player} to {sumo2}
  155.         else:
  156.             broadcast "{@prefix} &e%{allsumoplayers::*}% has won the sumo!"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top