Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #KillerCaptains
- #By Winter
- #Thanks to 8bit for doing a bit of fine tuning!
- #There is a few things to set up while doing this, please contact me on skype @ sketchypeanut if you need any help!
- #Setup Tutorial - https://docs.google.com/document/d/1Xcn47ZdYTCQASXg43lD5h15eh4MU1s1KgYWTArEWnpI/edit
- options:
- P: &8[&6KillerCaptains&8]&c
- Op: jdawgiscute.admin
- PM: &4You don't have the required permission to use this command.
- command /setteams:
- permission: {@Op}
- permission message: {@PM}
- description: "Sets up teams for the game!"
- trigger:
- loop all players:
- execute console command "/team leave %loop-player%"
- command "/team create 1"
- command "/team create 2"
- command "/team create 3"
- command "/team create 4"
- command "/team create 5"
- command "/team create 6"
- command "/team create 7"
- command "/team create 8"
- broadcast "{@P} Teams have been setup by &l&c%command sender%
- command /resetkc:
- permission: {@Op}
- permission message: {@PM}
- description: "Do this before you start the game, resets everything."
- trigger:
- loop all players:
- delete {Captain.%loop-player%::*}
- delete {death::*}
- delete {slayers::*}
- delete {MyTeamNumber::%loop-player%}
- loop all players:
- add loop-player to {death::*}
- broadcast "{@P} has been reset!"
- stop
- command /setkiller <integer> <player>:
- permission: {@Op}
- permission message: {@PM}
- description: "Sets the killer to the second argument."
- trigger:
- #Set Captain
- set {_captain} to arg 2
- set {MyTeamNumber::%arg 2%} to arg 1
- 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
- command "/team join %{_TeamNumber}% %{_killer}%"
- command /tparena:
- permission: {@Op}
- permission message: {@PM}
- description: "Teleports all players to the arena you will kill in."
- trigger:
- command sender command "/freeze"
- loop {death::*}:
- execute console command "/warp deathspawn %loop-value%"
- give slowness 1 to 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}
- description: "Starts the killing process of killer captains."
- 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"
- loop {death::*}:
- give slowness 1 to loop-value
- wait a second
- broadcast "{@P} GO! Slay, slay, slay!"
- command "/playsoundkc mob.wither.death"
- command /endkill:
- permission: {@Op}
- permission message: {@PM}
- description: "Ends the killing process."
- trigger:
- set {slay.inprogress} to false
- 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%"
- loop all players:
- command sender command "/ci *"
- on death of a player:
- if {slay.inprogress} is true:
- set {_dead} to victim
- set {_TeamNumber} to {MyTeamNumber::%attacker%}
- command "/team join %{_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