Winter__

Untitled

Aug 13th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. #KillerCaptains
  2. #By Winter
  3. #There is a few things to set up while doing this, please contact me on skype @ sketchypeanut if you need any help!
  4. #Setup Tutorial -
  5.  
  6. options:
  7. P: &8[&6KillerCaptains&8]&c
  8. Op: jdawgiscute.admin
  9. PM: &4You don't have the required permission to use this command.
  10.  
  11. command /setteams:
  12. permission: {@Op}
  13. permission message: {@PM}
  14. trigger:
  15. loop all players:
  16. execute console command "/team leave %loop-player"
  17. command "/team create 1"
  18. command "/team create 2"
  19. command "/team create 3"
  20. command "/team create 4"
  21. command "/team create 5"
  22. command "/team create 6"
  23. command "/team create 7"
  24. command "/team create 8"
  25.  
  26. command /resetkc:
  27. permission: {@Op}
  28. permission message: {@PM}
  29. trigger:
  30. loop all players:
  31. delete {Captain.%loop-player%::*}
  32. delete {Captains::%loop-player%}
  33. delete {death::*}
  34. delete {slayers::*}
  35. delete {MyTeamNumber::%loop-player%}
  36. loop all players:
  37. add loop-player to {death::*}
  38. broadcast "{@P} has been reset!"
  39. stop
  40.  
  41. command /setkiller <integer> <player>:
  42. permission: {@Op}
  43. permission message: {@PM}
  44. trigger:
  45. #Set Captain
  46. set {_captain} to arg 2
  47. set {MyTeamNumber::%arg 2%} to arg 1
  48. add {_captain} to {Captain.%arg 2%::*}
  49. add {_captain} to {slayers::*}
  50. remove {_captain} from {death::*}
  51. broadcast "{@P} %arg 2% is Killer of Team %arg 1%!"
  52.  
  53. #Add Captain
  54. set {_killer} to arg 2
  55. set {_TeamNumber} to arg 1
  56. command "/team join %{_TeamNumber}% %{_killer}%"
  57.  
  58. command /tparena:
  59. permission: {@Op}
  60. permission message: {@PM}
  61. trigger:
  62. command sender command "/freeze"
  63. loop {death::*}:
  64. execute console command "/warp deathspawn %loop-value%"
  65. loop {slayers::*}:
  66. execute console command "/warp slayersspawn %loop-value%"
  67. execute console command "/god %loop-value%"
  68. command "/give %loop-value% stone_sword 1"
  69. wait 5 seconds
  70. stop
  71.  
  72. command /startkill:
  73. permission: {@Op}
  74. permission message: {@PM}
  75. trigger:
  76. broadcast "{@P} will start in 10 seconds! Get ready to kill! (Or run!)"
  77. set {slay.inprogress} to true
  78. wait 4 seconds
  79. command sender command "/playsoundkc fireworks.launch"
  80. wait 1 second
  81. broadcast "{@P} 5..."
  82. command sender command "/playsoundkc note.harp"
  83. wait a second
  84. broadcast "{@P} 4..."
  85. command sender command "/playsoundkc note.harp"
  86. wait a second
  87. broadcast "{@P} 3..."
  88. command sender command "/playsoundkc note.harp"
  89. wait a second
  90. broadcast "{@P} 2..."
  91. command sender command "/playsoundkc note.harp"
  92. wait a second
  93. broadcast "{@P} 1..."
  94. command sender command "/freeze"
  95. command sender command "/playsoundkc note.harp"
  96. command "killcapunfreeze"
  97. wait a second
  98. broadcast "{@P} GO! Slay, slay, slay!"
  99. command "/playsoundkc mob.wither.death"
  100.  
  101. command /endkill:
  102. permission: {@Op}
  103. permission message: {@PM}
  104. trigger:
  105. command sender command "/spawn"
  106. command sender command "/tpall"
  107. broadcast "{@P} The slaying has ended! All players have been eliminated!"
  108. loop {slayers::*}:
  109. execute console command "/god %loop-value%"
  110.  
  111. command /killcapunfreeze:
  112. permission: {@Op}
  113. permission message: {@PM}
  114. trigger:
  115. loop all players:
  116. command sender command "effect %loop-player% clear"
  117.  
  118. on death of a player:
  119. if {slay.inprogress} is true:
  120. victim is in "killercaptains"
  121. attacker is in "killercaptains"
  122. set {_dead} to victim
  123. set {_TeamNumber} to {MyTeamNumber::%attacker%}
  124. command "/team join %{_TeamNumber}% %{_dead}%"
  125. set {IAmDead.Dead::%victim%} to true
  126.  
  127. on respawn:
  128. wait 5 ticks
  129. {slay.inprogress} is true
  130. {IAmDead.Dead::%player%} is true
  131. execute console command "/warp killercaptains %player%"
  132. delete {IAmDead.Dead::%player%}
  133.  
  134. command /playsoundkc <text>:
  135. permission: {@Op}
  136. permission message: {@PM}
  137. trigger:
  138. loop all players:
  139. execute console command "playsound %arg 1% %loop-player%"
Advertisement
Add Comment
Please, Sign In to add comment