Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- T: &7[&fTeams&7] &3●&f
- command /t [<text>] [<text>] [<text>] [<text>] :
- permission: team.command
- trigger:
- if {teams.installed} is set:
- loop 20 times:
- if {team%loop-num%.full} is not set:
- make console execute command "uhcCreateTeam UHC%loop-num%"
- if arg 4 is set:
- make console execute command "uhcJoinTeam UHC%loop-num% %arg 1%"
- make console execute command "uhcJoinTeam UHC%loop-num% %arg 2%"
- make console execute command "uhcJoinTeam UHC%loop-num% %arg 3%"
- make console execute command "uhcJoinTeam UHC%loop-num% %arg 4%"
- broadcast "{@T} Added &7%arg 1%&f, &7%arg 2%&f, &7%arg 3% &fand &7%arg 4% &fto <%{colorteaminfo%loop-num%}%>UHC%loop-num%"
- else if arg 3 is set:
- make console execute command "uhcJoinTeam UHC%loop-num% %arg 1%"
- make console execute command "uhcJoinTeam UHC%loop-num% %arg 2%"
- make console execute command "uhcJoinTeam UHC%loop-num% %arg 3%"
- broadcast "{@T} Added &7%arg 1%&f,&7%arg 2% &fand &7%arg 3% &f to <%{colorteaminfo%loop-num%}%>UHC%loop-num%"
- else if arg 2 is set:
- make console execute command "uhcJoinTeam UHC%loop-num% %arg 1%"
- make console execute command "www"
- broadcast "{@T} Added &7%arg 1% &fand &7%arg 2% &fto <%{colorteaminfo%loop-num%}%>UHC%loop-num%"
- make console execute command "scoreboard teams option UHC%loop-num% color %{colorteam%loop-num%}%"
- set {team%loop-num%.full} to true
- stop
- send "{@T} All Teams are full"
- else:
- send "{@T} You have to do /teams install first or the colors won't work."
- command /teams <text> [<text>]:
- permission: team.command
- trigger:
- if arg 1 is equal to "clear":
- if arg 2 is equal to "all":
- make player execute "clearteams all"
- loop 20 times:
- clear {team%loop-num%.full}
- send "{@T} All Teams removed"
- loop 20 times:
- if arg 2 is equal to "UHC%loop-num%":
- make player execute "scoreboard teams empty UHC%loop-num%"
- clear {team%loop-num%.full}
- send "{@T} <%{colorteaminfo%loop-num%}%>UHC%loop-num%&f removed"
- stop
- if arg 1 is equal to "install":
- set {colorteaminfo1} to "aqua"
- set {colorteaminfo2} to "blue"
- set {colorteaminfo3} to "black"
- set {colorteaminfo4} to "bold"
- set {colorteaminfo5} to "dark aqua"
- set {colorteaminfo6} to "dark blue"
- set {colorteaminfo7} to "dark gray"
- set {colorteaminfo8} to "dark green"
- set {colorteaminfo9} to "dark purple"
- set {colorteaminfo10} to "dark red"
- set {colorteaminfo11} to "gold"
- set {colorteaminfo12} to "gray"
- set {colorteaminfo13} to "green"
- set {colorteaminfo14} to "light purple"
- set {colorteaminfo15} to "italic"
- set {colorteaminfo16} to "red"
- set {colorteaminfo17} to "strikethrough"
- set {colorteaminfo18} to "white"
- set {colorteaminfo20} to "yellow"
- set {colorteaminfo20} to "underline"
- set {colorteam1} to "aqua"
- set {colorteam2} to "blue"
- set {colorteam3} to "black"
- set {colorteam4} to "bold"
- set {colorteam5} to "dark_aqua"
- set {colorteam6} to "dark_blue"
- set {colorteam7} to "dark_gray"
- set {colorteam8} to "dark_green"
- set {colorteam9} to "dark_purple"
- set {colorteam10} to "dark_red"
- set {colorteam11} to "gold"
- set {colorteam12} to "gray"
- set {colorteam13} to "green"
- set {colorteam14} to "light_purple"
- set {colorteam15} to "italic"
- set {colorteam16} to "red"
- set {colorteam17} to "strikethrough"
- set {colorteam18} to "white"
- set {colorteam19} to "yellow"
- set {colorteam20} to "underline"
- send "{@T} Installation completed."
- set {teams.installed} to true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement