Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #KillerCaptains
- #By Winter
- #There is a few things to set up while doing this, please contact me on skype @ sketchypeanut if you need any help!
- #Setup Tutorial
- options:
- P: &8[&6KillerCaptains&8]&c
- Op: jdawgiscute.admin
- PM: &4You don't have the required permission to use this command.
- command /resetkillercap:
- permission: {@Op}
- permission message: {@PM}
- trigger:
- loop all players:
- delete {Captain.%loop-player%::*}
- delete {Killer.KillThem::%loop-player%}
- delete {Captains::%loop-player%}
- delete {death::*}
- delete {slayers::*}
- set {ICanAttack.yes} to "no"
- loop all players:
- add loop-player to {death::*}
- loop all players:
- set {ICanAttack.%loop-player%} to false
- broadcast "{@P} has been reset!"
- stop
- command /setkiller <integer> <player>:
- permission: {@Op}
- permission message: {@PM}
- trigger:
- #Set Captain
- set {_captain} to arg 2
- set {_captainnumber} to arg 1
- set {Captains::%{CaptainNumber}%} to {_captainnumber}
- set {Killer.KillThem::%arg 1%} to {_captainnumber}
- add {_captain} to {Captain.%arg 2%::*}
- add {_captain} to {slayers::*}
- remove {_captain} from {death::*}
- broadcast "{@P} %arg 2% is Killer of Team %arg 1%!"
- #Add Captain
- set {_killer} to arg 2
- set {_TeamNumber} to arg 1
- set {Teams.InTeam::%{_killer}%} to {_TeamNumber}
- add {_killer} to {Team.%{_TeamNumber}%::*}
- command "/scoreboard teams join UHC%{_TeamNumber}% %{_killer}%"
- command /tparena:
- permission: {@Op}
- permission message: {@PM}
- trigger:
- command sender command "/freeze"
- loop {death::*}:
- execute console command "/warp deathspawn %loop-value%"
- loop {slayers::*}:
- execute console command "/warp slayersspawn %loop-value%"
- execute console command "/god %loop-value%"
- command "/give %loop-value% stone_sword 1"
- wait 5 seconds
- stop
- command /startkill:
- permission: {@Op}
- permission message: {@PM}
- trigger:
- broadcast "{@P} will start in 10 seconds! Get ready to kill! (Or run!)"
- set {slay.inprogress} to true
- wait 4 seconds
- command sender command "/playsoundkc fireworks.launch"
- wait 1 second
- broadcast "{@P} 5..."
- command sender command "/playsoundkc note.harp"
- wait a second
- broadcast "{@P} 4..."
- command sender command "/playsoundkc note.harp"
- wait a second
- broadcast "{@P} 3..."
- command sender command "/playsoundkc note.harp"
- wait a second
- broadcast "{@P} 2..."
- command sender command "/playsoundkc note.harp"
- wait a second
- broadcast "{@P} 1..."
- command sender command "/freeze"
- command sender command "/playsoundkc note.harp"
- command "killcapunfreeze"
- wait a second
- broadcast "{@P} GO! Slay, slay, slay!"
- command "/playsoundkc mob.wither.death"
- command /endkill:
- permission: {@Op}
- permission message: {@PM}
- trigger:
- command sender command "/spawn"
- command sender command "/tpall"
- broadcast "{@P} The slaying has ended! All players have been eliminated!"
- loop {slayers::*}:
- execute console command "/god %loop-value%"
- command /killcapunfreeze:
- permission: {@Op}
- permission message: {@PM}
- trigger:
- loop all players:
- command sender command "effect %loop-player% clear"
- on death of a player:
- if {slay.inprogress} is true:
- victim is in "killercaptains"
- attacker is in "killercaptains"
- if {Killer.KillThem::%attacker%} is set:
- set {_Player} to victim
- set {_Team} to {Teams.InTeam::%{_Player}%}
- remove {_Player} from {Team.%{_Team}%::*}
- delete {Teams.InTeam::%{_Player}%}
- command "/scoreboard teams leave %{_Player}%"
- set {_dead} to victim
- set {_TeamNumber} to {Killer.KillThem::%attacker%}
- set {Teams.InTeam::%{_dead}%} to {_TeamNumber}
- add {_dead} to {Team.%{_TeamNumber}%::*}
- execute console command "/scoreboard teams join UHC%{_TeamNumber}% %{_dead}%"
- set {IAmDead.Dead::%victim%} to true
- on respawn:
- wait 5 ticks
- {slay.inprogress} is true
- {IAmDead.Dead::%player%} is true
- execute console command "/warp killercaptains %player%"
- delete {IAmDead.Dead::%player%}
- command /playsoundkc <text>:
- permission: {@Op}
- permission message: {@PM}
- trigger:
- loop all players:
- execute console command "playsound %arg 1% %loop-player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement