#Captains #Variables: #{captains::captains::*} - the captains #{captains::chose::%player%} - bad variable, I know but if the player was already chosen or not #{captains::choosing} - the player who is choosing a player #Skripted by minemidight #Commands: #/captains set #/captains start #/captains choose #/captains help #/captains reset #No need to set teams #Warps to set: #cap1, cap2, etc (based off how many captains you have, where the captains are) #captains - where all other players are teleported options: p: &8[&6Captains&8] #prefix sound: random.pop #the sound for everything pitch: 0.5 #pitch of the sound perms: skript.op #perms for captains set and start command /captains [] []: usage: /captains help trigger: if arg-1 is "help" or "?" or "info" or "information": send "{@p} Skripted by minemidnight!" send "{@p} /captains choose - Chooses to be on your team (if you are up)" if command sender has permission "{@perms}": send "{@p} /captains start - Starts the captains warping them, etc" send "{@p} /captains set - Sets as a captain" send "{@p} /captains reset - Resets captains, turns it off" send "{@p} /captains list - Lists the captains" command "/captains sound %command sender%" if command sender has permission "{@perms}": if arg-1 is "sound": if arg-2 is set: command "/playsound {@sound} %arg-2% ~ ~ ~ 1 {@pitch} 1" stop loop all players: command "/playsound {@sound} %loop-player% ~ ~ ~ 1 {@pitch} 1" if arg-1 is "start": set {_t} to 1 loop all players: {captains::captains::*} does not contain loop-player command "/warp captains %loop-player%" loop {captains::captains::*}: command "/warp cap%{_t}% %loop-value%" add 1 to {_t} broadcast "{@p} Captains started!" set {captains::choosing} to {captains::teams::1} broadcast "{@p} %{captains::choosing}% is now choosing! /captains choose " command "/captains sound" if arg-1 is "stop" or "reset": loop all players: {spec::%loop-player%} is not set heal the loop-player clear inventory of the loop-player set the loop-player's food level to 10 set the loop-player's gamemode to survival command "/spawn %loop-player%" delete {captains::*} broadcast "{@p} Captains is finished!" command "/captains sound" if arg-1 is "set": if {captians::captains::*} contains arg-2: stop if {spec::%arg-2%} is true: stop broadcast "{@p} %command sender% choose %arg-2% as a Captain!" add arg-2 to {captains::captains::*} set {_TeamNumber} to 1 while {Teams::%{_TeamNumber}%} is set: add 1 to {_TeamNumber} set {captains::chose::%arg-2%} to true if {captains::teams::*} is not set: loop {Teams::*}: command "/scoreboard teams remove UHC%loop-value%" delete {Team.%loop-value%::*} set {Teams::%{_TeamNumber}%} to ({_TeamNumber}) command "/scoreboard teams add UHC%{_TeamNumber}%" set {Teams.InTeam::%arg-2%} to ({_TeamNumber}) command "/scoreboard teams join UHC%{_TeamNumber}% %arg-2%" add "%arg-2%" to {Team.%{_TeamNumber}%::*} set {captains::teams::%{_TeamNumber}%} to arg-2 command "/team color" command "/captains sound" if arg-1 is "choose": if {captains::captains::*} is not set: stop if arg-2 is the command sender: send "{@p} You cant choose yourself!" to command sender command "/captains sound %command sender%" stop if {captains::choosing} is not equal to the command sender: send "{@p} You arent choosing!" to command sender command "/captains sound %command sender%" stop if {spec::%arg-2%} is true: stop if {captains::chose::%arg-2%} is true: send "{@p} %arg-2% already got chosen!" to command sender command "/captains sound %command sender%" stop set {captains::chose::%arg-2%} to true set {_TeamNumber} to ({Teams.InTeam::%command sender%}) set {Teams.InTeam::%arg-2%} to ({_TeamNumber}) command "/scoreboard teams join UHC%{_TeamNumber}% %arg-2%" add "%arg-2%" to {Team.%{_TeamNumber}%::*} broadcast "{@p} %command sender% chose %arg-2% to be on their team!" command "/captains sound" if (size of {captains::teams::*}) is equal to {Teams.InTeam::%{captains::choosing}%}: set {captains::choosing} to ({captains::teams::1}) else: set {captains::choosing} to ({captains::teams::%{Teams.InTeam::%{captains::choosing}%}%+1}) broadcast "{@p} %{captains::choosing}% is now choosing! /captains choose " command "/captains sound" if arg-1 is "list": if {captains::captains::*} is not set: send "{@p} No Captains Set!" to command sender command "/captains sound %command sender%" else: send "{@p} Captains: %{captains::captains::*}%" to command sender command "/captains sound %command sender%"