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:
- delete {slayees::*}
- delete {slayers::*}
- loop all players:
- add loop-player to {slayees::*}
- loop all players:
- set {killercap.%loop-player%.role} to "slayee"
- broadcast "{@P} reset!"
- stop
- delete {slayers::*}
- 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.KillerOf::%arg 1%} to {_captainnumber}
- add {_captain} to {Captain.%arg 2%::*}
- broadcast "{@P} %arg 2% is captain of %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 /killcaptp:
- permission: {@Op}
- permission message: {@PM}
- trigger:
- loop all players:
- give loop-player a stone sword
- command sender command "/freeze"
- set {slay.inprogress} to true
- loop {slayees::*}:
- execute console command "warp slayeesspawn %loop-value%"
- loop {slayers::*}:
- execute console command "warp slayersspawn %loop-value%"
- command /killcapgo:
- permission: {@Op}
- permission message: {@PM}
- trigger:
- broadcast "{@P} will start in 10 seconds! Get ready to kill! (Or run!)"
- wait 5 seconds
- command sender command "/playsoundkc note.harp"
- 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
- command sender command "/freeze"
- broadcast "{@P} 2..."
- command sender command "/playsoundkc note.harp"
- wait a second
- broadcast "{@P} 1..."
- command sender command "/playsoundkc note.harp"
- command sender command "killcapunfreeze"
- wait a second
- broadcast "{@P} GO! Slay, slay, slay!"
- command "/playsoundkc mob.wither.death"
- command /killcapunfreeze:
- permission: {@Op}
- permission message: {@PM}
- trigger:
- loop all players:
- command sender command "effect %loop-player% clear"
- on death of player:
- if {slay.inprogress} is true:
- victim is in "killercaptains"
- attacker is in "killercaptains"
- if {Killer.KillerOf::%attacker%} is set:
- set {_victim} to victim
- set {_team} to {Teams.InTeam::%{_victim}%}
- remove {_victim} from {Team.%{_Team}%::*}
- delete {Teams.InTeam::%{_victim}%}
- command "/scoreboard teams leave %{_victim}%"
- set {_victim} to victim
- set {_teamnumber} to {Killer.KillerOf::%attacker%}
- set {Teams.InTeam::%{_victim}%} to {_teamnumber}
- add {_victim} to {Team.%{_teamnumber}%::*}
- command "/scoreboard teams join UHC%{_teamnumber}% %{_victim}%
- set {ChosenPlayer.Dead::%victim%} to true
- on respawn:
- wait 5 ticksn
- {slay.inprogress} is true
- {ChosenPlayer.Dead::%player%} is true
- execute console command "/warp killercapains %player%"
- delete {ChosenPlayer.Dead::%player%}
- on damage of player:
- if {slay.inprogress} is true:
- if {Killer.KillerOf::%attacker%} is not set:
- cancel the event
- 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