Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8&l[&7Teams&8&l]&7
- command /team [<text>] [<player>] [<integer>] [<player>]:
- trigger:
- if arg-1 is "invite":
- if {teamsLocked} is not true:
- if arg-2 is a player:
- if {Teams.InTeam::%arg-2%} is not set:
- if {Teams.InTeam::%player%} is true:
- if {pendingteam::%player%::%arg-2%} is not set:
- set {pendingteam::%player%::%arg-2%} to true
- message "&8-----------------------------------------------------------" to player
- message "{@P} You have now invited &8%arg-2% &7to join your team!" to player
- message "&8-----------------------------------------------------------" to player
- message "&8-----------------------------------------------------------" to arg-2
- message "{@P} %player% has invited you to his/her team." to arg-2
- message "{@P} Type &8/team accept %player% &7to join!" to arg-2
- message "&8-----------------------------------------------------------" to arg-2
- else if {Teams.InTeam::%arg-2%} is not set:
- if {pendingteam::%player%::%arg-2%} is not set:
- set {pendingteam::%player%::%arg-2%} to true
- message "&8-----------------------------------------------------------" to player
- message "{@P} You have now invited &8%arg-2% &7to join your team!" to player
- message "&8-----------------------------------------------------------" to player
- message "&8-----------------------------------------------------------" to arg-2
- message "{@P} %player% has invited you to his/her team." to arg-2
- message "{@P} Type &8/team accept %player% &7to join!" to arg-2
- message "&8-----------------------------------------------------------" to arg-2
- else:
- message "&8-----------------------------------------------------------" to player
- message "{@P} You already invited that player to your team." to player
- message "{@P} Tell them to do &8/team accept %player%&7." to player
- message "&8-----------------------------------------------------------" to player
- else:
- message "&8-----------------------------------------------------------" to player
- message "{@P} That player is already on a team." to player
- message "&8-----------------------------------------------------------" to player
- else:
- message "&8-----------------------------------------------------------" to player
- message "{@P} Teams are locked. You cannot invite anyone!" to player
- message "&8-----------------------------------------------------------" to player
- else if arg-1 is "accept":
- if {teamsLocked} is not true:
- if {Teams.InTeam::%player%} is true:
- message "&8-----------------------------------------------------------" to player
- message "{@P} You are already on a team." to player
- message "{@P} Do &8/team leave &7to leave." to player
- message "&8-----------------------------------------------------------" to player
- else:
- if (size of {Team.%{teamleader::%arg-2%}%::*}) is less than {teamsize}:
- if {pendingteam::%arg-2%::%player%} is true:
- delete {pendingteam::%player%::*}
- #if {Teams::*} contains player:
- #set {Team.%arg-2%::%player%} to player
- #set {Team.%arg-2%::%arg-2%} to arg-2
- #execute console command "/scoreboard teams join %arg-2% %player%"
- #execute console command "/scoreboard teams join %arg-2% %arg-2%"
- #set {teamleader::%player%} to arg-2
- if {Teams.InTeam::%arg-2%} is true:
- add player to {Team.%{teamleader::%arg-2%}%::*}
- set {teamleader::%player%} to {teamleader::%arg-2%}
- add player to {Teams.InTeam::*}
- execute console command "/scoreboard teams join %{teamleader::%arg-2%}% %player%"
- message "&8-----------------------------------------------------------" to player
- message "{@P} You have joined &8%{teamleader::%arg-2%}%&7's team!" to player
- message "&8-----------------------------------------------------------" to player
- else:
- set {Teams::%arg-2%} to arg-2
- add player to {Team.%arg-2%::*}
- add arg-2 to {Team.%arg-2%::*}
- set {teamleader::%player%} to arg-2
- set {teamleader::%arg-2%} to arg-2
- execute console command "/scoreboard teams add %arg-2%"
- execute console command "/scoreboard teams join %arg-2% %player%"
- execute console command "/scoreboard teams join %arg-2% %arg-2%"
- loop {Team.%{teamleader::%arg-2%}%::*}:
- if loop-value is not player:
- message "&8-----------------------------------------------------------" to loop-value
- message "{@P} &8%player% &7has joined your team." to loop-value
- message "&8-----------------------------------------------------------" to loop-value
- if {allTheColors} is not set:
- set {allTheColors} to true
- set {allColors::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red" and "yellow"
- set {allColorsBold::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsUnderline::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsStrikethrough::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsItalic::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsBoldUnderline::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsBoldStrikethrough::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsBoldItalic::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsUnderlineStrikethrough::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsUnderlineItalic::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsStrikethroughItalic::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsBoldUnderlineStrikethrough::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsBoldUnderlineItalic::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsBoldStrikethroughItalic::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsBoldUnderlineStrikethroughItalic::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- set {allColorsRandom::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red", "white" and "yellow"
- if {teamColor::%{teamleader::%arg-2%}%::Color} is not set:
- if (size of {allColors::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColors::*})
- remove "%{_chosenColor}%" from {allColors::*}
- else if (size of {allColorsBold::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsBold::*})
- remove {_chosenColor} from {allColorsBold::*}
- set {teamColor::%{teamleader::%arg-2%}%::Bold} to true
- else if (size of {allColorsUnderline::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsUnderline::*})
- remove {_chosenColor} from {allColorsUnderline::*}
- set {teamColor::%{teamleader::%arg-2%}%::Underline} to true
- else if (size of {allColorsStrikethrough::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsStrikethrough::*})
- remove {_chosenColor} from {allColorsStrikethrough::*}
- set {teamColor::%{teamleader::%arg-2%}%::Strikethrough} to true
- else if (size of {allColorsItalic::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsItalic::*})
- remove {_chosenColor} from {allColorsItalic::*}
- set {teamColor::%{teamleader::%arg-2%}%::Italic} to true
- else if (size of {allColorsBoldUnderline::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsBoldUnderline::*})
- remove {_chosenColor} from {allColorsBoldUnderline::*}
- set {teamColor::%{teamleader::%arg-2%}%::Bold} to true
- set {teamColor::%{teamleader::%arg-2%}%::Underline} to true
- else if (size of {allColorsBoldStrikethrough::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsBoldStrikethrough::*})
- remove {_chosenColor} from {allColorsBoldStrikethrough::*}
- set {teamColor::%{teamleader::%arg-2%}%::Bold} to true
- set {teamColor::%{teamleader::%arg-2%}%::Strikethrough} to true
- else if (size of {allColorsBoldItalic::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsBoldItalic::*})
- remove {_chosenColor} from {allColorsBoldItalic::*}
- set {teamColor::%{teamleader::%arg-2%}%::Bold} to true
- set {teamColor::%{teamleader::%arg-2%}%::Italic} to true
- else if (size of {allColorsUnderlineStrikethrough::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsUnderlineStrikethrough::*})
- remove {_chosenColor} from {allColorsUnderlineStrikethrough::*}
- set {teamColor::%{teamleader::%arg-2%}%::Underline} to true
- set {teamColor::%{teamleader::%arg-2%}%::Strikethrough} to true
- else if (size of {allColorsUnderlineItalic::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsUnderlineItalic::*})
- remove {_chosenColor} from {allColorsUnderlineItalic::*}
- set {teamColor::%{teamleader::%arg-2%}%::Underline} to true
- set {teamColor::%{teamleader::%arg-2%}%::Italic} to true
- else if (size of {allColorsStrikethroughItalic::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsStrikethroughItalic::*})
- remove {_chosenColor} from {allColorsStrikethroughItalic::*}
- set {teamColor::%{teamleader::%arg-2%}%::Strikethrough} to true
- set {teamColor::%{teamleader::%arg-2%}%::Italic} to true
- else if (size of {allColorsBoldUnderlineStrikethrough::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsBoldUnderlineStrikethrough::*})
- remove {_chosenColor} from {allColorsBoldUnderlineStrikethrough::*}
- set {teamColor::%{teamleader::%arg-2%}%::Bold} to true
- set {teamColor::%{teamleader::%arg-2%}%::Underline} to true
- set {teamColor::%{teamleader::%arg-2%}%::Strikethrough} to true
- else if (size of {allColorsBoldUnderlineItalic::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsBoldUnderlineItalic::*})
- remove {_chosenColor} from {allColorsBoldUnderlineItalic::*}
- set {teamColor::%{teamleader::%arg-2%}%::Bold} to true
- set {teamColor::%{teamleader::%arg-2%}%::Underline} to true
- set {teamColor::%{teamleader::%arg-2%}%::Italic} to true
- else if (size of {allColorsBoldStrikethroughItalic::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsBoldStrikethroughItalic::*})
- remove {_chosenColor} from {allColorsBoldStrikethroughItalic::*}
- set {teamColor::%{teamleader::%arg-2%}%::Bold} to true
- set {teamColor::%{teamleader::%arg-2%}%::Strikethrough} to true
- set {teamColor::%{teamleader::%arg-2%}%::Italic} to true
- else if (size of {allColorsBoldUnderlineStrikethroughItalic::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsBoldStrikethroughItalic::*})
- remove {_chosenColor} from {allColorsBoldUnderlineStrikethroughItalic::*}
- set {teamColor::%{teamleader::%arg-2%}%::Bold} to true
- set {teamColor::%{teamleader::%arg-2%}%::Underline} to true
- set {teamColor::%{teamleader::%arg-2%}%::Strikethrough} to true
- set {teamColor::%{teamleader::%arg-2%}%::Italic} to true
- else if (size of {allColorsRandom::*}) is greater than 0:
- set {_chosenColor} to (random element of {allColorsRandom::*})
- set {teamColor::%{teamleader::%arg-2%}%::Color} to {_chosenColor}
- execute console command "/scoreboard teams option %{teamleader::%arg-2%}% color %{_chosenColor}%"
- message "&8-----------------------------------------------------------" to player
- message "{@P} You have joined &8%arg-2%&7's team!" to player
- message "&8-----------------------------------------------------------" to player
- delete {pendingteam::%arg-2%::%player%}
- execute console command "/scoreboard teams option %arg-2% color %{_chosenColor}%"
- if {teamColor::%{teamleader::%arg-2%}%::Bold} is true:
- execute console command "/bold %{teamleader::%arg-2%}%"
- if {teamColor::%{teamleader::%arg-2%}%::Underline} is true:
- execute console command "/underline %{teamleader::%arg-2%}%"
- if {teamColor::%{teamleader::%arg-2%}%::Strikethrough} is true:
- execute console command "/strikethrough %{teamleader::%arg-2%}%"
- if {teamColor::%{teamleader::%arg-2%}%::Italic} is true:
- execute console command "/italic %{teamleader::%arg-2%}%"
- set {Teams.InTeam::%player%} to true
- set {Teams.InTeam::%arg-2%} to true
- else:
- message "&8-----------------------------------------------------------" to player
- message "{@P} This player did not send you a request!" to player
- message "&8-----------------------------------------------------------" to player
- else:
- message "&8-----------------------------------------------------------" to player
- message "{@P} That team is full!." to player
- message "&8-----------------------------------------------------------" to player
- else:
- message "&8-----------------------------------------------------------" to player
- message "{@P} Teams are locked. You cannot join that team!" to player
- message "&8-----------------------------------------------------------" to player
- else if arg-1 is "lock":
- if player has permission "skript.op":
- set {teamsLocked} to true
- message "&8-----------------------------------------------------------" to player
- message "{@P} You have successfully locked teams!" to player
- message "&8-----------------------------------------------------------" to player
- else if arg-1 is "unlock":
- if player has permission "skript.op":
- set {teamsLocked} to false
- message "&8-----------------------------------------------------------" to player
- message "{@P} You have successfully unlocked teams!" to player
- message "&8-----------------------------------------------------------" to player
- else if arg-1 is "leave":
- if {teamsLocked} is not true:
- delete {Teams.InTeam::%player%}
- if {Teams::*} contains player:
- command "/scoreboard teams remove %player%"
- message "&8-----------------------------------------------------------" to player
- message "{@P} You have successfully left the team." to player
- message "&8-----------------------------------------------------------" to player
- delete {pendingteam::%player%::*}
- execute console command "/scoreboard teams leave %player%"
- remove player from {Team.InTeam::*}
- if (size of {Teams.%player%::*}) is less than 3:
- remove {teamleader::%player%} from {Teams::*}
- delete {Team.%player%::*}
- delete {Teams.InTeam::%player%}
- if {teamColor::%player%::Bold} and {teamColor::%player%::Underline} and {teamColor::%player%::Strikethrough} and {teamColor::%player%::Italic} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsBoldUnderlineStrikethroughItalic::*}
- else if {teamColor::%player%::Bold} and {teamColor::%player%::Strikethrough} and {teamColor::%player%::Italic} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsBoldStrikethroughItalic::*}
- else if {teamColor::%player%::Bold} and {teamColor::%player%::Underline} and {teamColor::%player%::Italic} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsBoldUnderlineItalic::*}
- else if {teamColor::%player%::Bold} and {teamColor::%player%::Underline} and {teamColor::%player%::Strikethrough} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsBoldUnderlineStrikethrough::*}
- else if {teamColor::%player%::Strikethrough} and {teamColor::%player%::Italic} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsStrikethroughItalic::*}
- else if {teamColor::%player%::Underline} and {teamColor::%player%::Italic} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsUnderlineItalic::*}
- else if {teamColor::%player%::Underline} and {teamColor::%player%::Strikethrough} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsUnderlineStrikethrough::*}
- else if {teamColor::%player%::Bold} and {teamColor::%player%::Italic} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsBoldItalic::*}
- else if {teamColor::%player%::Bold} and {teamColor::%player%::Strikethrough} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsBoldStrikethrough::*}
- else if {teamColor::%player%::Bold} and {teamColor::%player%::Underline} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsBoldUnderline::*}
- else if {teamColor::%player%::Italic} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsItalic::*}
- else if {teamColor::%player%::Strikethrough} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsStrikethrough::*}
- else if {teamColor::%player%::Underline} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsUnderline::*}
- else if {teamColor::%player%::Bold} is true:
- add "%{teamColor::%player%::Color}%" to {allColorsBold::*}
- else:
- add "%{teamColor::%player%::Color}%" to {allColors::*}
- delete {teamColor::%player%::*}
- else if (size of {Team.%player%::*}) is more than 0:
- remove player from {Team.%player%::*}
- set {_newTeam} to (random element of {Team.%player%::*})
- set {Teams::%{_newTeam}%} to {_newTeam}
- command "/scoreboard teams add %{_newTeam}%"
- set {teamColor::%{_newTeam}%::Color} to {teamColor::%player%::Color}
- command "/scoreboard teams join %{_newTeam}% %{_newTeam}%"
- loop {Team.%player%::*}:
- command "/scoreboard teams join %{_newTeam}% %loop-value%"
- set {teamleader::%loop-value%} to {_newTeam}
- set {Team.%{_newTeam}%::%loop-value%} to loop-value
- message "&8-----------------------------------------------------------" to loop-value
- message "{@P} Your team leader has left the team." to loop-value
- message "{@P} &8%{_newTeam}% &7is now your team leader." to loop-value
- message "&8-----------------------------------------------------------" to loop-value
- delete {teamleader::%player%}
- delete {Team.%player%::*}
- remove player from {Teams::*}
- remove player from {Teams.InTeam::*}
- if {teamColor::%player%::Bold} is true:
- command "/bold %{_newTeam}%"
- set {teamColor::%{_newTeam}%::Bold} to true
- if {teamColor::%player%::Underline} is true:
- command "/underline %{_newTeam}%"
- set {teamColor::%{_newTeam}%::Underline} to true
- if {teamColor::%player%::Strikethrough} is true:
- command "/strikethrough %{_newTeam}%"
- set {teamColor::%{_newTeam}%::Strikethrough} to true
- if {teamColor::%player%::Italic} is true:
- command "/italic %{_newTeam}%"
- set {teamColor::%{_newTeam}%::Italic} to true
- execute console command "/scoreboard teams option %{_newTeam}% color %{teamColor::%player%::Color}%"
- else:
- message "&8-----------------------------------------------------------" to player
- message "{@P} You are not on a team!" to player
- message "&8-----------------------------------------------------------" to player
- else:
- execute console command "/scoreboard teams leave %player%"
- remove player from {Team.%{teamleader::%player%}%::*}
- remove player from {Teams.InTeam::*}
- loop {Team.%{teamleader::%player%}%::*}:
- message "&8-----------------------------------------------------------" to loop-value
- message "{@P} %player% &7has left your team." to loop-value-1
- message "&8-----------------------------------------------------------" to loop-value
- message "&8-----------------------------------------------------------" to player
- message "{@P} You have successfully left the team." to player
- message "&8-----------------------------------------------------------" to player
- delete {Teams::%player%}
- delete {Team.%{teamleader::%player%}%::%player%}
- remove player from {Teams.InTeam::*}
- else:
- message "&8-----------------------------------------------------------" to player
- message "{@P} Teams are locked. You cannot leave that team!" to player
- message "&8-----------------------------------------------------------" to player
- else if arg-1 is "kick":
- if {teamsLocked} is not true:
- if {teamleader::%arg-2%} is player:
- #make arg-2 execute command "/team leave"
- if player is not arg-2:
- loop {Teams::*}:
- delete {Team.%loop-value%::%arg-2%}
- delete {Teams.InTeam::%arg-2%}
- delete {teamleader::%arg-2%}
- remove arg-2 from {Team.%player%::*}
- message "&8-----------------------------------------------------------" to arg-2
- message "{@P} You have been kicked from &8%player%&7's team." to arg-2
- message "&8-----------------------------------------------------------" to arg-2
- message "&8-----------------------------------------------------------" to player
- message "{@P} You have kicked &8%arg-2%&7 from your team." to player
- message "&8-----------------------------------------------------------" to player
- execute console command "/scoreboard teams leave %arg-2%"
- else:
- message "&8-----------------------------------------------------------" to player
- message "{@P} You cannot kick yourself!" to player
- message "&8-----------------------------------------------------------" to player
- else:
- message "&8-----------------------------------------------------------" to player
- message "{@P} You are not the team leader of that player's team." to player
- message "{@P} You should ask %{teamleader::%arg-2%}% to kick him." to player
- message "&8-----------------------------------------------------------" to player
- else:
- message "&8-----------------------------------------------------------" to player
- message "{@P} Teams are locked. You cannot kick that player!" to player
- message "&8-----------------------------------------------------------" to player
- else if arg-1 is "reset":
- if player has permission "skript.op":
- message "&8-----------------------------------------------------------" to player
- message "{@P} All teams reset!" to player
- message "&8-----------------------------------------------------------" to player
- delete {allColors::*}
- loop {Teams::*}:
- command "/scoreboard teams remove %loop-value%"
- delete {Team.%loop-value%::*}
- delete {Teams.InTeam::*}
- delete {Teams::*}
- delete {pendingteam::*}
- delete {teamColor::*}
- delete {allTheColors}
- delete {teamleader::*}
- else if arg-1 is "list":
- if {Teams::*} is set:
- message "&8-----------------------------------------------------------" to player
- message "{@P} -=[Teams]=-" to player
- loop {Teams::*}:
- message "{@P} &8%loop-value% -> %{Team.%loop-value%::*}%" to player
- message "&8-----------------------------------------------------------" to player
- else:
- message "&8-----------------------------------------------------------" to player
- message "{@P} No teams are set!" to player
- message "&8-----------------------------------------------------------" to player
- else if arg-1 is "set":
- if arg-2 is a player:
- if arg-4 is a player:
- make arg-2 execute command "/team leave"
- wait 2 ticks
- make arg-4 execute command "/team invite %arg-2%"
- wait 2 ticks
- make arg-2 execute command "/team accept %arg-4%"
- message "&8-----------------------------------------------------------" to player
- message "{@P} You have successfully added &8%arg-2%&7 to &8%arg-4%&7's team!" to player
- message "&8-----------------------------------------------------------" to player
- else if arg-1 is "leader":
- if arg-2 is a player:
- message "&8-----------------------------------------------------------" to player
- message "{@P} &8%arg-2%&7's team leader is &8%{teamleader::%arg-2%}%&7." to player
- message "&8-----------------------------------------------------------" to player
- else:
- message "-----------------------------------------------" to player
- message "{@P} &lTeam Commands"
- message "{@P} /team invite <player>" to player
- message "{@P} /team accept <player>" to player
- message "{@P} /team leave" to player
- message "{@P} /team kick <player>" to player
- message "{@P} /team list" to player
- message "{@P} /team leader <player>" to player
- message "{@P} /pm <message>" to player
- message "{@P} /pmcoords" to player
- message "-----------------------------------------------" to player
- if player has permission "skript.op":
- message "{@P} /team set <player> <team leader>" to player
- message "{@P} /team lock/unlock" to player
- message "{@P} /team reset" to player
- message "{@P} /setteamsize <integer>" to player
- message "-----------------------------------------------" to player
- command /setteamsize [<integer>]:
- trigger:
- set {teamsize} to arg-1
- message "{@P} Team size set to &8%arg-1%&7!" to player
- command /pm <text>:
- trigger:
- loop {Team.%player%::*}:
- if loop-value is not player:
- message "&8[TeamChat] &7%player% - %arg-1%" to loop-value
- command /pmcoords:
- trigger:
- loop {Team.%player%::*}:
- if loop-value is not player:
- message "{@P} &8%player%&7 is at %(player's location)%" to loop-value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement