Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if arg 1 is equal to "color":
- if command sender does not have the permission "teams.color":
- message "{@P} &ePermission denied. &a(missing ""teams.color"")"
- else if arg 2 is set:
- message "{@P} {@IS}"
- else if {Teams::*} is not set:
- message "{@P} No teams to color!"
- else if (size of {Teams::*}) is bigger than 40:
- message "{@P} Too many teams to color!"
- else:
- if (size of {Teams::*}) is smaller than 16:
- set {_Colors::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red" and "yellow"
- else if (size of {Teams::*}) is smaller than 20:
- set {_Colors::*} to "aqua", "black", "blue", "bold", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "italic", "light_purple", "red", "strikethrough", "underline" and "yellow"
- else if (size of {Teams::*}) is equal to 20:
- set {_Colors::*} to "aqua", "black", "blue", "bold", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "italic", "light_purple", "red", "strikethrough", "underline", "white" and "yellow"
- else:
- set {_Colors::*} to "aqua", "black", "blue", "bold", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "italic", "light_purple", "red", "strikethrough", "underline", "white", and "yellow"
- set {_Other.Colors::*} 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 {_Format.Codes::*} to "bold", "italic", "strikethrough", and "underline"
- loop {Teams::*}:
- if loop-value is less than or equal to 21:
- set {_Color} to (random element out of {_Colors::*})
- remove {_Color} from {_Colors::*}
- command "/scoreboard teams option UHC%loop-value% color %{_Color}%"
- replace all "_" with " " in {_Color}
- loop {Team.%loop-value%::*}:
- message "{@P} Your Team color is <%{_Color}%>%{_Color}%!" to ("%loop-value-2%" parsed as offlineplayer)
- else:
- delete {_Colors::*}
- set {_Color} to (random element out of {_Other.Colors::*})
- set {_Format} to (random element out of {_Format.Codes::*})
- remove {_Color} from {_Other.Colors::*}
- command "/scoreboard teams option UHC%loop-value% color %{_Color}%"
- replace all "_" with " " in {_Color}
- loop {Team.%loop-value%::*}:
- message "{@P} Your Team color is <%{_Color}%><%{_Format}%>%{_Format}% %{_Color}%!" to ("%loop-value-2%" parsed as offlineplayer)
- execute console command "/%{_Format}% UHC%loop-value%"
- message "{@P} Colored all teams"
- loop all players:
- loop-player has the permission "teams.color.notify"
- loop-player is not command sender
- message "{@P} {@N} Colored all teams" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement