Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: [&2Team&r]
- N: &a&o%command sender%:&r
- IS: &7Invalid Syntax. &a/team &7help
- command /team [<text>] [<text>] [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- command sender command "/team help"
- else if arg 1 is equal to "help":
- if command sender does not have the permission "essentials.helpop":
- message "{@P} &4Permission denied. &a(missing ""teams.help"")"
- else:
- message "&7/team list - &aList teams"
- message "&7/team create [<id>] - &aCreate Team"
- message "&7/team delete <id> - &aDelete Team"
- message "&7/team join <id> [<player=you>] - &aPut <player> in Team"
- message "&7/team leave [<player=you>] - &aRemove <player> from Team"
- message "&7/team colour - &aColour all teams at once"
- message "&7/team oldcolour - &aColour all teams at once, Shroomzee style"
- message "&7/team uncolour - &aUncolor all teams"
- message "&7/team solos - &aView all solos"
- message "&7/team soloinform - &aTell solos to /uhcteam"
- message "&7/team rebuild - &aRebuild teams, skip empty"
- message "&7/team random <size> <amount> - &aCreate Random Teams"
- message "&7/team newrandom <size> <amount> - &aCreate Swag Random Teams"
- message "&7/team friendlyfire <on:off> - &aToggle friendly fire"
- message "&7/team check <team:player> - &aCheck who's on what team"
- message "&7/team reset - &aReset all teams"
- message "&7/uhcteam help - &aFull list of /uhcteam commands"
- else if arg 1 is equal to "list":
- if {Teams::*} is not set:
- message "{@P} &7No teams set."
- else:
- loop {Teams::*}:
- message "&7&oTeam &a&o%loop-value%&r&o:"
- loop {Team.%loop-value%::*}:
- set {_Player} to ("%loop-value-2%" parsed as offlineplayer)
- if {_Player} is online:
- message "&7- &a%loop-value-2%"
- else:
- message "&7- &c%loop-value-2%"
- else if arg 1 is equal to "check":
- if arg 2 is not set:
- message "{@P} {@IS}"
- else if {Teams::*} is not set:
- message "{@P} &7No teams set."
- else if arg 2 is set:
- if arg 2 parsed as an integer is 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 or 42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70 or 71 or 72 or 73 or 74 or 75 or 76 or 77 or 78 or 79 or 80 or 81 or 82 or 83 or 84 or 85 or 86 or 87 or 88 or 89 or 90 or 91 or 92 or 93 or 94 or 95 or 96 or 97 or 98 or 99 or 100:
- if {Team.%arg-2%::*} is not set:
- message "{@P} &7No such team set."
- else:
- message "&7&oTeam &a&o%arg-2%&r&o:"
- loop {Team.%arg-2%::*}:
- set {_Player} to ("%loop-value%" parsed as offlineplayer)
- if {_Player} is online:
- message "&7- &a%loop-value%"
- else:
- message "&7- &c%loop-value%"
- else:
- if {Teams.InTeam::%arg-2%} is set:
- loop {Teams::*}:
- add 1 to {_TeamNumberCounter}
- loop {Team.%loop-value%::*}:
- loop-value-2 is equal to arg 2
- set {_TeamNumber} to {_TeamNumberCounter}
- if {_TeamNumber} is not set:
- message "{@P} &a%arg-2% &7is not on a team."
- stop trigger
- message "&7&oTeam &a&o%{_TeamNumber}%&r&o:"
- loop {Team.%{_TeamNumber}%::*}:
- set {_Player} to ("%loop-value%" parsed as offlineplayer)
- if {_Player} is online:
- message "&7- &a%loop-value%"
- else:
- message "&7- &c%loop-value%"
- else:
- message "{@P} &a%arg-2% &7is not on a team."
- else if arg 1 is equal to "create":
- if command sender does not have the permission "teams.create":
- message "{@P} &4Permission denied. &a(missing ""teams.create"")"
- else if arg 2 is not set:
- message "{@P} {@IS}"
- else if arg 3 is set:
- message "{@P} {@IS}"
- else:
- set {_TeamNumber} to ("%arg 2%" parsed as integer)
- if {_TeamNumber} is not set:
- message "{@P} {@IS}"
- else if {_TeamNumber} is smaller than 1:
- message "{@P} &7Invalid Team Number!"
- else if {Teams::%{_TeamNumber}%} is set:
- message "{@P} &7That team already exists."
- else:
- set {Teams::%{_TeamNumber}%} to {_TeamNumber}
- command "/scoreboard teams add UHC%{_TeamNumber}%"
- if {Teams.FriendlyFire} is set:
- command "/scoreboard teams option UHC%{_TeamNumber}% friendlyfire false"
- message "{@P} &7Created Team &a%{_TeamNumber}%&7!"
- loop all players:
- loop-player has the permission "teams.create.notify"
- loop-player is not command sender
- message "{@P} {@N} &7Created Team &a%{_TeamNumber}%" to loop-player
- else if arg 1 is equal to "delete":
- if command sender does not have the permission "teams.delete":
- message "{@P} &4Permission denied. &a(missing ""teams.delete"")"
- else if arg 2 is not set:
- message "{@P} {@IS}"
- else if arg 3 is set:
- message "{@P} {@IS}"
- else:
- set {_TeamNumber} to ("%arg 2%" parsed as integer)
- if {_TeamNumber} is not set:
- message "{@P} {@IS}"
- else if {_TeamNumber} is smaller than 1:
- message "{@P} &7Invalid Team Number!"
- else if {Teams::%{_TeamNumber}%} is not set:
- message "{@P} &7That team does not exist."
- else:
- delete {Teams::%{_TeamNumber}%}
- loop {Team.%{_TeamNumber}%::*}:
- message "{@P} &7Your team was deleted." to ("%loop-value%" parsed as offlineplayer)
- delete {Teams.InTeam::%loop-value%}
- delete {Team.%{_TeamNumber}%::*}
- command "/scoreboard teams remove UHC%{_TeamNumber}%"
- message "{@P} &7Deleted Team &a%{_TeamNumber}%"
- loop all players:
- loop-player has the permission "teams.delete.notify"
- loop-player is not command sender
- message "{@P} {@N} &7Deleted Team &a%{_TeamNumber}%" to loop-player
- else if arg 1 is equal to "join":
- if command sender does not have the permission "skript.op":
- message "{@P} &4Permission denied. &a(missing ""teams.join"")"
- else if arg 2 is not set:
- message "{@P} {@IS}"
- else if arg 4 is set:
- message "{@P} {@IS}"
- else:
- set {_TeamNumber} to ("%arg 2%" parsed as integer)
- if {_TeamNumber} is not set:
- message "{@P} {@IS}"
- else if {_TeamNumber} is smaller than 1:
- message "{@P} &7Invalid Team Number!"
- else if {Teams::%{_TeamNumber}%} is not set:
- message "{@P} &7Team does not exist!"
- else:
- if arg 3 is not set:
- if command sender is console:
- stop
- set {_Player} to (name of command sender)
- else:
- set {_Player} to arg 3
- if {Teams.InTeam::%{_Player}%} is set:
- message "{@P} &7Player &a%{_Player}% &7is already on a team!"
- else:
- loop {Team.%{_TeamNumber}%::*}:
- set {_TeamPlayer} to ("%loop-value-1%" parsed as offlineplayer)
- if {_TeamPlayer} is online:
- message "{@P} &a%{_Player}% &7has been added to your team." to {_TeamPlayer}
- set {Teams.InTeam::%{_Player}%} to {_TeamNumber}
- add {_Player} to {Team.%{_TeamNumber}%::*}
- command "/scoreboard teams join UHC%{_TeamNumber}% %{_Player}%"
- message "{@P} &7You were added to &aTeam %{_TeamNumber}%&7!" to ("%{_Player}%" parsed as offlineplayer)
- message "{@P} &7Added &a%{_Player}% &7to &aTeam %{_TeamNumber}%&7!"
- loop all players:
- loop-player has the permission "teams.join.notify"
- loop-player is not command sender
- message "{@P} {@N} &7Added &a%{_Player}% &7to &7Team %{_TeamNumber}%&7!" to loop-player
- else if arg 1 is equal to "leave":
- if command sender does not have the permission "skript.op":
- message "{@P} &4Permission denied. &a(missing ""teams.leave"")"
- else if arg 3 is set:
- message "{@P} {@IS}"
- else:
- if arg 2 is not set:
- if command sender is console:
- stop
- set {_Player} to (name of command sender)
- else:
- set {_Player} to arg 2
- if {Teams.InTeam::%{_Player}%} is not set:
- message "{@P} &a%{_Player}% &7is not on a team!"
- else:
- set {_TeamNumber} to {Teams.InTeam::%{_Player}%}
- delete {Teams.InTeam::%{_Player}%}
- remove {_Player} from {Team.%{_TeamNumber}%::*}
- command "/scoreboard teams leave %{_Player}%"
- loop {Team.%{_TeamNumber}%::*}:
- set {_TeamPlayer} to ("%loop-value-1%" parsed as offlineplayer)
- if {_TeamPlayer} is online:
- message "{@P} &a%{_Player}% &7has been removed from your team." to {_TeamPlayer}
- message "{@P} &7You were removed from &aTeam %{_TeamNumber}%" to ("%{_Player}%" parsed as offlineplayer)
- message "{@P} &7Removed &a%{_Player}% &7from &aTeam %{_TeamNumber}%"
- loop all players:
- loop-player has the permission "teams.join.notify"
- loop-player is not command sender
- message "{@P} {@N} &7Removed &a%{_Player}% &7from &aTeam %{_TeamNumber}%" to loop-player
- else if arg 1 is equal to "friendlyfire" or "teamdamage":
- if command sender does not have the permission "teams.friendlyfire":
- message "{@P} &7Permission denied. &a(missing ""teams.friendlyfire"")"
- else if arg 2 is "on" or "enable" or "true":
- delete {Teams.FriendlyFire}
- command "/scoreboard teams option UHC1 friendlyfire true"
- command "/scoreboard teams option UHC2 friendlyfire true"
- command "/scoreboard teams option UHC3 friendlyfire true"
- command "/scoreboard teams option UHC4 friendlyfire true"
- command "/scoreboard teams option UHC5 friendlyfire true"
- command "/scoreboard teams option UHC6 friendlyfire true"
- command "/scoreboard teams option UHC7 friendlyfire true"
- command "/scoreboard teams option UHC8 friendlyfire true"
- command "/scoreboard teams option UHC9 friendlyfire true"
- command "/scoreboard teams option UHC10 friendlyfire true"
- command "/scoreboard teams option UHC11 friendlyfire true"
- command "/scoreboard teams option UHC12 friendlyfire true"
- command "/scoreboard teams option UHC13 friendlyfire true"
- command "/scoreboard teams option UHC14 friendlyfire true"
- command "/scoreboard teams option UHC15 friendlyfire true"
- command "/scoreboard teams option UHC16 friendlyfire true"
- command "/scoreboard teams option UHC17 friendlyfire true"
- command "/scoreboard teams option UHC18 friendlyfire true"
- command "/scoreboard teams option UHC19 friendlyfire true"
- command "/scoreboard teams option UHC20 friendlyfire true"
- command "/scoreboard teams option UHC21 friendlyfire true"
- command "/scoreboard teams option UHC22 friendlyfire true"
- command "/scoreboard teams option UHC23 friendlyfire true"
- command "/scoreboard teams option UHC24 friendlyfire true"
- command "/scoreboard teams option UHC25 friendlyfire true"
- command "/scoreboard teams option UHC26 friendlyfire true"
- command "/scoreboard teams option UHC27 friendlyfire true"
- command "/scoreboard teams option UHC28 friendlyfire true"
- command "/scoreboard teams option UHC29 friendlyfire true"
- command "/scoreboard teams option UHC30 friendlyfire true"
- command "/scoreboard teams option UHC31 friendlyfire true"
- command "/scoreboard teams option UHC32 friendlyfire true"
- command "/scoreboard teams option UHC33 friendlyfire true"
- command "/scoreboard teams option UHC34 friendlyfire true"
- command "/scoreboard teams option UHC35 friendlyfire true"
- command "/scoreboard teams option UHC36 friendlyfire true"
- command "/scoreboard teams option UHC37 friendlyfire true"
- command "/scoreboard teams option UHC38 friendlyfire true"
- command "/scoreboard teams option UHC39 friendlyfire true"
- command "/scoreboard teams option UHC40 friendlyfire true"
- command "/scoreboard teams option UHC41 friendlyfire true"
- command "/scoreboard teams option UHC42 friendlyfire true"
- command "/scoreboard teams option UHC43 friendlyfire true"
- command "/scoreboard teams option UHC44 friendlyfire true"
- command "/scoreboard teams option UHC45 friendlyfire true"
- command "/scoreboard teams option UHC46 friendlyfire true"
- command "/scoreboard teams option UHC47 friendlyfire true"
- command "/scoreboard teams option UHC48 friendlyfire true"
- command "/scoreboard teams option UHC49 friendlyfire true"
- command "/scoreboard teams option UHC50 friendlyfire true"
- command "/scoreboard teams option UHC51 friendlyfire true"
- command "/scoreboard teams option UHC52 friendlyfire true"
- command "/scoreboard teams option UHC53 friendlyfire true"
- command "/scoreboard teams option UHC54 friendlyfire true"
- command "/scoreboard teams option UHC55 friendlyfire true"
- command "/scoreboard teams option UHC56 friendlyfire true"
- command "/scoreboard teams option UHC57 friendlyfire true"
- command "/scoreboard teams option UHC58 friendlyfire true"
- command "/scoreboard teams option UHC59 friendlyfire true"
- command "/scoreboard teams option UHC60 friendlyfire true"
- command "/scoreboard teams option UHC61 friendlyfire true"
- command "/scoreboard teams option UHC62 friendlyfire true"
- command "/scoreboard teams option UHC63 friendlyfire true"
- command "/scoreboard teams option UHC64 friendlyfire true"
- command "/scoreboard teams option UHC65 friendlyfire true"
- command "/scoreboard teams option UHC66 friendlyfire true"
- command "/scoreboard teams option UHC67 friendlyfire true"
- command "/scoreboard teams option UHC68 friendlyfire true"
- command "/scoreboard teams option UHC69 friendlyfire true"
- command "/scoreboard teams option UHC70 friendlyfire true"
- command "/scoreboard teams option UHC71 friendlyfire true"
- command "/scoreboard teams option UHC72 friendlyfire true"
- command "/scoreboard teams option UHC73 friendlyfire true"
- command "/scoreboard teams option UHC74 friendlyfire true"
- command "/scoreboard teams option UHC75 friendlyfire true"
- command "/scoreboard teams option UHC76 friendlyfire true"
- command "/scoreboard teams option UHC77 friendlyfire true"
- command "/scoreboard teams option UHC78 friendlyfire true"
- command "/scoreboard teams option UHC79 friendlyfire true"
- command "/scoreboard teams option UHC80 friendlyfire true"
- command "/scoreboard teams option UHC81 friendlyfire true"
- command "/scoreboard teams option UHC82 friendlyfire true"
- command "/scoreboard teams option UHC83 friendlyfire true"
- command "/scoreboard teams option UHC84 friendlyfire true"
- command "/scoreboard teams option UHC85 friendlyfire true"
- command "/scoreboard teams option UHC86 friendlyfire true"
- command "/scoreboard teams option UHC87 friendlyfire true"
- command "/scoreboard teams option UHC88 friendlyfire true"
- command "/scoreboard teams option UHC89 friendlyfire true"
- command "/scoreboard teams option UHC90 friendlyfire true"
- command "/scoreboard teams option UHC91 friendlyfire true"
- command "/scoreboard teams option UHC92 friendlyfire true"
- command "/scoreboard teams option UHC93 friendlyfire true"
- command "/scoreboard teams option UHC94 friendlyfire true"
- command "/scoreboard teams option UHC95 friendlyfire true"
- command "/scoreboard teams option UHC96 friendlyfire true"
- command "/scoreboard teams option UHC97 friendlyfire true"
- command "/scoreboard teams option UHC98 friendlyfire true"
- command "/scoreboard teams option UHC99 friendlyfire true"
- command "/scoreboard teams option UHC100 friendlyfire true"
- command "/scoreboard teams option UHC101 friendlyfire true"
- command "/scoreboard teams option UHC102 friendlyfire true"
- command "/scoreboard teams option UHC103 friendlyfire true"
- command "/scoreboard teams option UHC104 friendlyfire true"
- command "/scoreboard teams option UHC105 friendlyfire true"
- message "{@P} &aFriendly Fire &7has been &aenabled&7!"
- else if arg 2 is "off" or "disable" or "false":
- set {Teams.FriendlyFire} to false
- command "/scoreboard teams option UHC1 friendlyfire false"
- command "/scoreboard teams option UHC2 friendlyfire false"
- command "/scoreboard teams option UHC3 friendlyfire false"
- command "/scoreboard teams option UHC4 friendlyfire false"
- command "/scoreboard teams option UHC5 friendlyfire false"
- command "/scoreboard teams option UHC6 friendlyfire false"
- command "/scoreboard teams option UHC7 friendlyfire false"
- command "/scoreboard teams option UHC8 friendlyfire false"
- command "/scoreboard teams option UHC9 friendlyfire false"
- command "/scoreboard teams option UHC10 friendlyfire false"
- command "/scoreboard teams option UHC11 friendlyfire false"
- command "/scoreboard teams option UHC12 friendlyfire false"
- command "/scoreboard teams option UHC13 friendlyfire false"
- command "/scoreboard teams option UHC14 friendlyfire false"
- command "/scoreboard teams option UHC15 friendlyfire false"
- command "/scoreboard teams option UHC16 friendlyfire false"
- command "/scoreboard teams option UHC17 friendlyfire false"
- command "/scoreboard teams option UHC18 friendlyfire false"
- command "/scoreboard teams option UHC19 friendlyfire false"
- command "/scoreboard teams option UHC20 friendlyfire false"
- command "/scoreboard teams option UHC21 friendlyfire false"
- command "/scoreboard teams option UHC22 friendlyfire false"
- command "/scoreboard teams option UHC23 friendlyfire false"
- command "/scoreboard teams option UHC24 friendlyfire false"
- command "/scoreboard teams option UHC25 friendlyfire false"
- command "/scoreboard teams option UHC26 friendlyfire false"
- command "/scoreboard teams option UHC27 friendlyfire false"
- command "/scoreboard teams option UHC28 friendlyfire false"
- command "/scoreboard teams option UHC29 friendlyfire false"
- command "/scoreboard teams option UHC30 friendlyfire false"
- command "/scoreboard teams option UHC31 friendlyfire false"
- command "/scoreboard teams option UHC32 friendlyfire false"
- command "/scoreboard teams option UHC33 friendlyfire false"
- command "/scoreboard teams option UHC34 friendlyfire false"
- command "/scoreboard teams option UHC35 friendlyfire false"
- command "/scoreboard teams option UHC36 friendlyfire false"
- command "/scoreboard teams option UHC37 friendlyfire false"
- command "/scoreboard teams option UHC38 friendlyfire false"
- command "/scoreboard teams option UHC39 friendlyfire false"
- command "/scoreboard teams option UHC40 friendlyfire false"
- command "/scoreboard teams option UHC41 friendlyfire false"
- command "/scoreboard teams option UHC42 friendlyfire false"
- command "/scoreboard teams option UHC43 friendlyfire false"
- command "/scoreboard teams option UHC44 friendlyfire false"
- command "/scoreboard teams option UHC45 friendlyfire false"
- command "/scoreboard teams option UHC46 friendlyfire false"
- command "/scoreboard teams option UHC47 friendlyfire false"
- command "/scoreboard teams option UHC48 friendlyfire false"
- command "/scoreboard teams option UHC49 friendlyfire false"
- command "/scoreboard teams option UHC50 friendlyfire false"
- command "/scoreboard teams option UHC51 friendlyfire false"
- command "/scoreboard teams option UHC52 friendlyfire false"
- command "/scoreboard teams option UHC53 friendlyfire false"
- command "/scoreboard teams option UHC54 friendlyfire false"
- command "/scoreboard teams option UHC55 friendlyfire false"
- command "/scoreboard teams option UHC56 friendlyfire false"
- command "/scoreboard teams option UHC57 friendlyfire false"
- command "/scoreboard teams option UHC58 friendlyfire false"
- command "/scoreboard teams option UHC59 friendlyfire false"
- command "/scoreboard teams option UHC60 friendlyfire false"
- command "/scoreboard teams option UHC61 friendlyfire false"
- command "/scoreboard teams option UHC62 friendlyfire false"
- command "/scoreboard teams option UHC63 friendlyfire false"
- command "/scoreboard teams option UHC64 friendlyfire false"
- command "/scoreboard teams option UHC65 friendlyfire false"
- command "/scoreboard teams option UHC66 friendlyfire false"
- command "/scoreboard teams option UHC67 friendlyfire false"
- command "/scoreboard teams option UHC68 friendlyfire false"
- command "/scoreboard teams option UHC69 friendlyfire false"
- command "/scoreboard teams option UHC70 friendlyfire false"
- command "/scoreboard teams option UHC71 friendlyfire false"
- command "/scoreboard teams option UHC72 friendlyfire false"
- command "/scoreboard teams option UHC73 friendlyfire false"
- command "/scoreboard teams option UHC74 friendlyfire false"
- command "/scoreboard teams option UHC75 friendlyfire false"
- command "/scoreboard teams option UHC76 friendlyfire false"
- command "/scoreboard teams option UHC77 friendlyfire false"
- command "/scoreboard teams option UHC78 friendlyfire false"
- command "/scoreboard teams option UHC79 friendlyfire false"
- command "/scoreboard teams option UHC80 friendlyfire false"
- command "/scoreboard teams option UHC81 friendlyfire false"
- command "/scoreboard teams option UHC82 friendlyfire false"
- command "/scoreboard teams option UHC83 friendlyfire false"
- command "/scoreboard teams option UHC84 friendlyfire false"
- command "/scoreboard teams option UHC85 friendlyfire false"
- command "/scoreboard teams option UHC86 friendlyfire false"
- command "/scoreboard teams option UHC87 friendlyfire false"
- command "/scoreboard teams option UHC88 friendlyfire false"
- command "/scoreboard teams option UHC89 friendlyfire false"
- command "/scoreboard teams option UHC90 friendlyfire false"
- command "/scoreboard teams option UHC91 friendlyfire false"
- command "/scoreboard teams option UHC92 friendlyfire false"
- command "/scoreboard teams option UHC93 friendlyfire false"
- command "/scoreboard teams option UHC94 friendlyfire false"
- command "/scoreboard teams option UHC95 friendlyfire false"
- command "/scoreboard teams option UHC96 friendlyfire false"
- command "/scoreboard teams option UHC97 friendlyfire false"
- command "/scoreboard teams option UHC98 friendlyfire false"
- command "/scoreboard teams option UHC99 friendlyfire false"
- command "/scoreboard teams option UHC100 friendlyfire false"
- command "/scoreboard teams option UHC101 friendlyfire false"
- command "/scoreboard teams option UHC102 friendlyfire false"
- command "/scoreboard teams option UHC103 friendlyfire false"
- command "/scoreboard teams option UHC104 friendlyfire false"
- command "/scoreboard teams option UHC105 friendlyfire false"
- message "{@P} &aFriendly Fire &7has been &cdisabled&7!"
- else:
- command sender command "/team"
- else if arg 1 is equal to "color" or "colour" or "c":
- if command sender does not have the permission "teams.color":
- message "{@P} &7Permission denied. &a(missing ""teams.color"")"
- else if arg 2 is set:
- message "{@P} {@IS}"
- else if {Teams::*} is not set:
- message "{@P} &7No teams to colour!"
- else:
- #1-15 [Normal]
- command "/scoreboard teams option UHC1 color blue"
- command "/scoreboard teams option UHC2 color dark_purple"
- command "/scoreboard teams option UHC3 color dark_green"
- command "/scoreboard teams option UHC4 color light_purple"
- command "/scoreboard teams option UHC5 color aqua"
- command "/scoreboard teams option UHC6 color yellow"
- command "/scoreboard teams option UHC7 color red"
- command "/scoreboard teams option UHC8 color gold"
- command "/scoreboard teams option UHC9 color dark_aqua"
- command "/scoreboard teams option UHC10 color dark_gray"
- command "/scoreboard teams option UHC11 color green"
- command "/scoreboard teams option UHC12 color dark_blue"
- command "/scoreboard teams option UHC13 color gray"
- command "/scoreboard teams option UHC14 color black"
- command "/scoreboard teams option UHC15 color white"
- #16-30 [Italic]
- command "/scoreboard teams option UHC16 color blue"
- command "/italic UHC16"
- command "/scoreboard teams option UHC17 color dark_purple"
- command "/italic UHC17"
- command "/scoreboard teams option UHC18 color dark_green"
- command "/italic UHC18"
- command "/scoreboard teams option UHC19 color light_purple"
- command "/italic UHC19"
- command "/scoreboard teams option UHC20 color aqua"
- command "/italic UHC20"
- command "/scoreboard teams option UHC21 color yellow"
- command "/italic UHC21"
- command "/scoreboard teams option UHC22 color red"
- command "/italic UHC22"
- command "/scoreboard teams option UHC23 color gold"
- command "/italic UHC23"
- command "/scoreboard teams option UHC24 color dark_aqua"
- command "/italic UHC24"
- command "/scoreboard teams option UHC25 color dark_gray"
- command "/italic UHC25"
- command "/scoreboard teams option UHC26 color green"
- command "/italic UHC26"
- command "/scoreboard teams option UHC27 color dark_blue"
- command "/italic UHC27"
- command "/scoreboard teams option UHC28 color gray"
- command "/italic UHC28"
- command "/scoreboard teams option UHC29 color black"
- command "/italic UHC29"
- command "/scoreboard teams option UHC30 color white"
- command "/italic UHC30"
- #31-45 [Underline]
- command "/scoreboard teams option UHC31 color blue"
- command "/underline UHC31"
- command "/scoreboard teams option UHC32 color dark_purple"
- command "/underline UHC32"
- command "/scoreboard teams option UHC33 color dark_green"
- command "/underline UHC33"
- command "/scoreboard teams option UHC34 color light_purple"
- command "/underline UHC34"
- command "/scoreboard teams option UHC35 color aqua"
- command "/underline UHC35"
- command "/scoreboard teams option UHC36 color yellow"
- command "/underline UHC36"
- command "/scoreboard teams option UHC37 color red"
- command "/underline UHC37"
- command "/scoreboard teams option UHC38 color gold"
- command "/underline UHC38"
- command "/scoreboard teams option UHC39 color dark_aqua"
- command "/underline UHC39"
- command "/scoreboard teams option UHC40 color dark_gray"
- command "/underline UHC40"
- command "/scoreboard teams option UHC41 color green"
- command "/underline UHC41"
- command "/scoreboard teams option UHC42 color dark_blue"
- command "/underline UHC42"
- command "/scoreboard teams option UHC43 color gray"
- command "/underline UHC43"
- command "/scoreboard teams option UHC44 color black"
- command "/underline UHC44"
- command "/scoreboard teams option UHC45 color white"
- command "/underline UHC45"
- #46-60 [Bold]
- command "/scoreboard teams option UHC46 color blue"
- command "/bold UHC46"
- command "/scoreboard teams option UHC47 color dark_purple"
- command "/bold UHC47"
- command "/scoreboard teams option UHC48 color dark_green"
- command "/bold UHC48"
- command "/scoreboard teams option UHC49 color light_purple"
- command "/bold UHC49"
- command "/scoreboard teams option UHC50 color aqua"
- command "/bold UHC50"
- command "/scoreboard teams option UHC51 color yellow"
- command "/bold UHC51"
- command "/scoreboard teams option UHC52 color red"
- command "/bold UHC52"
- command "/scoreboard teams option UHC53 color gold"
- command "/bold UHC53"
- command "/scoreboard teams option UHC54 color dark_aqua"
- command "/bold UHC54"
- command "/scoreboard teams option UHC55 color dark_gray"
- command "/bold UHC55"
- command "/scoreboard teams option UHC56 color green"
- command "/bold UHC56"
- command "/scoreboard teams option UHC57 color dark_blue"
- command "/bold UHC57"
- command "/scoreboard teams option UHC58 color gray"
- command "/bold UHC58"
- command "/scoreboard teams option UHC59 color black"
- command "/bold UHC59"
- command "/scoreboard teams option UHC60 color white"
- command "/bold UHC60"
- #61-75 [Strikethrough]
- command "/scoreboard teams option UHC61 color blue"
- command "/strikethrough UHC61"
- command "/scoreboard teams option UHC62 color dark_purple"
- command "/strikethrough UHC62"
- command "/scoreboard teams option UHC63 color dark_green"
- command "/strikethrough UHC63"
- command "/scoreboard teams option UHC64 color light_purple"
- command "/strikethrough UHC64"
- command "/scoreboard teams option UHC65 color aqua"
- command "/strikethrough UHC65"
- command "/scoreboard teams option UHC66 color yellow"
- command "/strikethrough UHC66"
- command "/scoreboard teams option UHC67 color red"
- command "/strikethrough UHC67"
- command "/scoreboard teams option UHC68 color gold"
- command "/strikethrough UHC68"
- command "/scoreboard teams option UHC69 color dark_aqua"
- command "/strikethrough UHC69"
- command "/scoreboard teams option UHC70 color dark_gray"
- command "/strikethrough UHC70"
- command "/scoreboard teams option UHC71 color green"
- command "/strikethrough UHC71"
- command "/scoreboard teams option UHC72 color dark_blue"
- command "/strikethrough UHC72"
- command "/scoreboard teams option UHC73 color gray"
- command "/strikethrough UHC73"
- command "/scoreboard teams option UHC74 color black"
- command "/strikethrough UHC74"
- command "/scoreboard teams option UHC75 color white"
- command "/strikethrough UHC75"
- #76-90 [Italic-Strikethrough]
- command "/scoreboard teams option UHC76 color blue"
- command "/strikethrough UHC76"
- command "/italic UHC76"
- command "/scoreboard teams option UHC77 color dark_purple"
- command "/strikethrough UHC77"
- command "/italic UHC77"
- command "/scoreboard teams option UHC78 color dark_green"
- command "/strikethrough UHC78"
- command "/italic UHC78"
- command "/scoreboard teams option UHC79 color light_purple"
- command "/strikethrough UHC79"
- command "/italic UHC79"
- command "/scoreboard teams option UHC80 color aqua"
- command "/strikethrough UHC80"
- command "/italic UHC80"
- command "/scoreboard teams option UHC81 color yellow"
- command "/strikethrough UHC81"
- command "/italic UHC81"
- command "/scoreboard teams option UHC82 color red"
- command "/strikethrough UHC82"
- command "/italic UHC82"
- command "/scoreboard teams option UHC83 color gold"
- command "/strikethrough UHC83"
- command "/italic UHC83"
- command "/scoreboard teams option UHC84 color dark_aqua"
- command "/strikethrough UHC84"
- command "/italic UHC85"
- command "/scoreboard teams option UHC85 color dark_gray"
- command "/strikethrough UHC85"
- command "/italic UHC85"
- command "/scoreboard teams option UHC86 color green"
- command "/strikethrough UHC86"
- command "/italic UHC86"
- command "/scoreboard teams option UHC87 color dark_blue"
- command "/strikethrough UHC87"
- command "/italic UHC87"
- command "/scoreboard teams option UHC88 color gray"
- command "/strikethrough UHC88"
- command "/italic UHC88"
- command "/scoreboard teams option UHC89 color black"
- command "/strikethrough UHC89"
- command "/italic UHC89"
- command "/scoreboard teams option UHC90 color white"
- command "/strikethrough UHC90"
- command "/italic UHC90"
- #91-105 [Italic-Underline]
- command "/scoreboard teams option UHC91 color blue"
- command "/underline UHC91"
- command "/italic UHC91"
- command "/scoreboard teams option UHC92 color dark_purple"
- command "/underline UHC92"
- command "/italic UHC92"
- command "/scoreboard teams option UHC93 color dark_green"
- command "/underline UHC93"
- command "/italic UHC93"
- command "/scoreboard teams option UHC94 color light_purple"
- command "/underline UHC94"
- command "/italic UHC94"
- command "/scoreboard teams option UHC95 color aqua"
- command "/underline UHC95"
- command "/italic UHC95"
- command "/scoreboard teams option UHC96 color yellow"
- command "/underline UHC96"
- command "/italic UHC96"
- command "/scoreboard teams option UHC97 color red"
- command "/underline UHC97"
- command "/italic UHC97"
- command "/scoreboard teams option UHC98 color gold"
- command "/underline UHC98"
- command "/italic UHC98"
- command "/scoreboard teams option UHC99 color dark_aqua"
- command "/underline UHC99"
- command "/italic UHC100"
- command "/scoreboard teams option UHC100 color dark_gray"
- command "/underline UHC100"
- command "/italic UHC100"
- command "/scoreboard teams option UHC101 color green"
- command "/underline UHC101"
- command "/italic UHC101"
- command "/scoreboard teams option UHC102 color dark_blue"
- command "/underline UHC102"
- command "/italic UHC102"
- command "/scoreboard teams option UHC103 color gray"
- command "/underline UHC103"
- command "/italic UHC103"
- command "/scoreboard teams option UHC104 color black"
- command "/underline UHC104"
- command "/italic UHC104"
- command "/scoreboard teams option UHC105 color white"
- command "/underline UHC105"
- command "/italic UHC105"
- else if arg 1 is equal to "oldcolor" or "oldcolour" or "oc":
- if command sender does not have the permission "skript.op":
- message "{@P} &7Permission denied. &a(missing ""teams.color"")"
- else if arg 2 is set:
- message "{@P} {@IS}"
- else if {Teams::*} is not set:
- message "{@P} &7No 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:
- 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", and "yellow"
- set {_Other.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", and "yellow"
- set {_Format.Codes::*} to "italic", "bold", "strikethrough", and "underline"
- loop {Teams::*}:
- if loop-value is less than or equal to 17:
- 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} &7Your Team color is <%{_Color}%>%{_Color}%&7!" 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} &7Your Team color is <%{_Color}%><%{_Format}%>%{_Format}% %{_Color}%&7!" to ("%loop-value-2%" parsed as offlineplayer)
- execute console command "/%{_Format}% UHC%loop-value%"
- message "{@P} &7Colored all teams!"
- loop all players:
- loop-player has the permission "skript.op"
- loop-player is not command sender
- message "{@P} {@N} &7Colored all teams!" to loop-player
- else if arg 1 is equal to "uncolor" or "uncolour" or "unc" or "uc":
- if command sender does not have the permission "skript.op":
- message "{@P} &4Permission denied. &a(missing ""teams.uncolor"")"
- else if arg 2 is set:
- message "{@P} {@IS}"
- else if {Teams::*} is not set:
- message "{@P} &7No teams to uncolor!"
- else:
- loop {Teams::*}:
- command "/scoreboard teams option UHC%loop-value% color reset"
- loop {Team.%loop-value%::*}:
- message "{@P} &7Your Team color was removed." to ("%loop-value-2%" parsed as offlineplayer)
- message "{@P} &7Uncolored all teams"
- loop all players:
- loop-player has the permission "skript.op"
- loop-player is not command sender
- message "{@P} {@N} &7Uncolored all teams" to loop-player
- else if arg 1 is equal to "solos" or "solo":
- if command sender does not have the permission "skript.op":
- message "{@P} &4Permission denied. &a(missing ""teams.solos"")"
- else if arg 2 is set:
- message "{@P} {@IS}"
- else:
- loop all players:
- {Teams.InTeam::%loop-player%} is not set
- add (name of loop-player) to {_Solos::*}
- if {_Solos::*} is not set:
- message "{@P} &7There're no solos!"
- else:
- message "{@P} &7Solos (%size of {_Solos::*}%): &a%join {_Solos::*} with "", ""%"
- else if arg 1 is equal to "soloinform":
- if command sender does not have the permission "skript.op":
- message "{@P} &4Permission denied. &r(missing ""skript.op"")"
- else if arg 2 is set:
- message "{@P} {@IS}"
- else:
- loop all players:
- loop-player is not command sender
- if {Teams.InTeam::%loop-player%} is not set:
- command "/playsound note.pling %loop-player%"
- message "{@P} &7If you have a set team, please &a/uhcteam&7 to create it." to loop-player
- if loop-player has the permission "skript.op":
- message "{@P} {@N} &7Informed Solos" to loop-player
- message "{@P} &7Informed Solos!"
- else if arg 1 is equal to "rebuild":
- if command sender does not have the permission "teams.rebuild":
- message "{@P} &4Permission denied. &a(missing ""teams.rebuild"")"
- else if arg 2 is set:
- message "{@P} {@IS}"
- else:
- set {_TeamCount} to 0
- delete {Teams.InTeam::*}
- loop {Teams::*}:
- if (size of {Team.%loop-value%::*}) is not equal to 0:
- set {_TeamCount} to {_TeamCount}+1
- set {_New.Team.%{_TeamCount}%::*} to {Team.%loop-value%::*}
- set {_New.Teams::%{_TeamCount}%} to {_TeamCount}
- delete {Team.%loop-value%::*}
- command "/scoreboard teams remove UHC%loop-value%"
- delete {Teams::*}
- set {Teams::*} to {_New.Teams::*}
- loop {Teams::*}:
- command "/scoreboard teams add UHC%loop-value%"
- if {Teams.FriendlyFire} is set:
- command "/scoreboard teams option UHC%loop-value% friendlyfire false"
- set {Team.%loop-value%::*} to {_New.Team.%loop-value%::*}
- loop {Team.%loop-value%::*}:
- set {Teams.InTeam::%loop-value-2%} to loop-value-1
- command "/scoreboard teams join UHC%loop-value-1% %loop-value-2%"
- message "{@P} &7Issued Rebuild!"
- loop all players:
- loop-player has the permission "skript.op"
- loop-player is not command sender
- message "{@P} {@N} &7Issued Rebuild" to loop-player
- else if arg 1 is equal to "random":
- if command sender does not have the permission "teams.random":
- message "{@P} &4Permission denied. &a(missing ""teams.random"")"
- else if arg 2 is not set:
- message "{@P} {@IS}"
- else if arg 3 is not set:
- message "{@P} {@IS}"
- else:
- set {_TeamSize} to ("%arg 2%" parsed as integer)
- set {_TeamAmount} to ("%arg 3%" parsed as integer)
- if {_TeamSize} is not set:
- message "{@P} {@IS}"
- else if {_TeamAmount} is not set:
- message "{@P} {@IS}"
- else if {_TeamSize} is less than 1:
- message "{@P} {@IS}"
- else if {_TeamAmount} is less than 1:
- message "{@P} {@IS}"
- else:
- loop all players:
- {Teams.InTeam::%loop-player%} is not set
- {Spectator::%loop-player%} is not set
- add (name of loop-player) to {_Players::*}
- if ({_TeamSize}*{_TeamAmount}) is not equal to (size of {_Players::*}):
- message "{@P} &7The amount of people does not match."
- else:
- loop {Teams::*}:
- command "/scoreboard teams remove UHC%loop-value%"
- delete {Team.%loop-value%::*}
- delete {Teams.InTeam::*}
- delete {Teams::*}
- broadcast "{@P} &7Randomizing &a%arg 3% teams &7of &a%arg 2%&7..."
- loop all players:
- command "/playsound note.harp %loop-player%"
- wait 10 ticks
- loop {_TeamAmount} times:
- command "/scoreboard teams add UHC%loop-number%"
- if {Teams.FriendlyFire} is set:
- command "/scoreboard teams option UHC%loop-number% friendlyfire false"
- set {Teams::%loop-number%} to loop-number
- loop {_TeamSize} times:
- set {_Player} to (random element out of {_Players::*})
- remove {_Player} from {_Players::*}
- command "/scoreboard teams join UHC%loop-number-1% %{_Player}%"
- add {_Player} to {Team.%loop-number-1%::*}
- set {Teams.InTeam::%{_Player}%} to loop-number-1
- broadcast "{@P} &7Teams have been randomized!"
- loop all players:
- command "/playsound random.explode %loop-player%"
- else if arg 1 is equal to "newrandom":
- if command sender does not have the permission "teams.random":
- message "{@P} &4Permission denied. &a(missing ""teams.random"")"
- else if arg 2 is not set:
- message "{@P} {@IS}"
- else if arg 3 is not set:
- message "{@P} {@IS}"
- else:
- set {_TeamSize} to ("%arg 2%" parsed as integer)
- set {_TeamAmount} to ("%arg 3%" parsed as integer)
- if {_TeamSize} is not set:
- message "{@P} {@IS}"
- else if {_TeamAmount} is not set:
- message "{@P} {@IS}"
- else if {_TeamSize} is less than 1:
- message "{@P} {@IS}"
- else if {_TeamAmount} is less than 1:
- message "{@P} {@IS}"
- else:
- loop all players:
- {Teams.InTeam::%loop-player%} is not set
- {Spectator::%loop-player%} is not set
- add (name of loop-player) to {_Players::*}
- if ({_TeamSize}*{_TeamAmount}) is not equal to (size of {_Players::*}):
- message "{@P} &7The amount of people does not match."
- else:
- loop {Teams::*}:
- command "/scoreboard teams remove UHC%loop-value%"
- delete {Team.%loop-value%::*}
- delete {Teams.InTeam::*}
- delete {Teams::*}
- broadcast "{@P} &7Randomizing &a%arg 3% teams &7of &a%arg 2%&7..."
- loop all players:
- command "/playsound note.harp %loop-player%"
- wait 10 ticks
- loop {_TeamAmount} times:
- command "/scoreboard teams add UHC%loop-number%"
- if {Teams.FriendlyFire} is set:
- command "/scoreboard teams option UHC%loop-number% friendlyfire false"
- set {Teams::%loop-number%} to loop-number
- loop {_TeamSize} times:
- set {_Player} to (random element out of {_Players::*})
- remove {_Player} from {_Players::*}
- command "/scoreboard teams join UHC%loop-number-1% %{_Player}%"
- add {_Player} to {Team.%loop-number-1%::*}
- set {Teams.InTeam::%{_Player}%} to loop-number-1
- loop {Teams::*}:
- broadcast "&2&k&lX &r&7&lTEAM %loop-value% &r&2&k&lX"
- command "/scatter-playsound random.explode 1"
- wait 0.75 seconds
- loop {Team.%loop-value%::*}:
- broadcast "&7%loop-value-2%"
- command "/warp fteam%loop-value-1% %loop-value-2%"
- command "/scatter-playsound note.pling 1"
- wait 0.4 seconds
- else if arg 1 is equal to "reset":
- if command sender does not have the permission "teams.reset":
- message "{@P} &4Permission denied. &a(missing ""teams.reset"")"
- else if arg 2 is set:
- message "{@P} {@IS}"
- else:
- loop {Teams::*}:
- loop {Team.%loop-value%::*}:
- loop-value-2 is not equal to command sender
- message "{@P} &7Your team was deleted in a global reset." to ("%loop-value-2%" parsed as offlineplayer)
- command "/scoreboard teams remove UHC%loop-value%"
- delete {Team.%loop-value%::*}
- delete {Team.<none>::*}
- delete {Teams::*}
- delete {Teams.InTeam::*}
- delete {Teams.Final}
- delete {Teams::PendingInvitesRecieved::*}
- delete {Teams::PendingInviteList::*}
- delete {PMSocialSpy::*}
- message "{@P} &7All teams reset!"
- loop all players:
- loop-player has the permission "teams.reset.notify"
- loop-player is not command sender
- message "{@P} {@N} &7Reset all teams" to loop-player
- else:
- command sender command "/team help"
- command /pm <text>:
- executable by: players
- aliases: /tc
- trigger:
- if {Teams.InTeam::%command sender%} is not set:
- message "{@P} &7You're not in a team!"
- else:
- set {_Team} to {Teams.InTeam::%command sender%}
- loop all players:
- if {Teams.InTeam::%loop-player%} is equal to {_Team}:
- message "{@P} &a&o%command sender%&7&o: &r%arg-1%" to loop-player
- else if {PMSocialSpy::%loop-player%} is true:
- message "{@P} [&a%{_Team}%&r] &a&o%command sender%&7&o: &r%arg-1%" to loop-player
- command /pms:
- aliases: /pmsocialspy
- permission: skript.pmsocialspy
- trigger:
- if {PMSocialSpy::%command sender%} is not set:
- set {PMSocialSpy::%command sender%} to true
- message "{@P} &7Team SocialSpy has been &aenabled&7!"
- else:
- delete {PMSocialSpy::%command sender%}
- message "{@P} &7Team SocialSpy has been &cdisabled&7!"
- command /fpm <text> <text>:
- aliases: /forcepm
- permission: skript.forcepm
- trigger:
- set {_Number} to ("%arg 1%" parsed as integer)
- if {_Number} is set:
- if {Teams::%arg 1%} is not set:
- message "{@P} &7Team &a%arg 1% &7not defined!"
- else:
- message "{@P} &c&o%command sender%&7&o: &r%arg-1%"
- loop all players:
- {Teams.InTeam::%loop-player%} is equal to {_Number}
- loop-player is not command sender
- message "{@P} &c&o%command sender%&7&o: &r%arg-1%" to loop-player
- else:
- if {Teams.InTeam::%arg 1%} is not set:
- message "{@P} &a%arg 1% &7is not on a team!"
- else:
- message "{@P} &c&o%command sender%&7&o: &r%arg-1%"
- loop all players:
- {Teams.InTeam::%loop-player%} is equal to {Teams.InTeam::%arg 1%}
- loop-player is not command sender
- message "{@P} &c&o%command sender%&7&o: &r%arg 1%" to loop-player
- command /pmcoords:
- aliases: /pmcoord, /pmcoordinate, /teamcoords, /pml, /tl, /pcoords, /teamcoord, /teamloc
- executable by: players
- trigger:
- set {_zloc} to rounded z coord of command sender
- set {_xloc} to rounded x coord of command sender
- set {_yloc} to rounded y coord of command sender
- if {Teams.InTeam::%command sender%} is not set:
- message "{@P} &7You're not on a team!"
- else:
- set {_Team} to {Teams.InTeam::%command sender%}
- loop all players:
- if {Teams.InTeam::%loop-player%} is equal to {_Team}:
- message "{@P} &a&o%command sender%&7&o: &7&lX:&a %{_xloc}% &7&lY:&a %{_yloc}% &7&lZ:&a %{_zloc}%" to loop-player
- command /ct <text> <text> [<text>] [<text>] [<text>] [<text>]:
- permission: skript.op
- usage: /ct <players> [up to 6]
- trigger:
- add (arg 1) to {_ThisTeam::*}
- add (arg 2) to {_ThisTeam::*}
- if arg 3 is set:
- add (arg 3) to {_ThisTeam::*}
- if arg 4 is set:
- add (arg 4) to {_ThisTeam::*}
- if arg 5 is set:
- add (arg 5) to {_ThisTeam::*}
- if arg 6 is set:
- add (arg 6) to {_ThisTeam::*}
- loop {_ThisTeam::*}:
- {Teams.InTeam::%loop-value%} is set
- add loop-value to {_AlreadyOnTeam::*}
- if {_AlreadyOnTeam::*} is set:
- message "{@P} &7The following players are already on a team:"
- message "{@P} &a%join {_AlreadyOnTeam::*} with "", ""%"
- else:
- set {_TeamNumber} to 1
- while {Teams::%{_TeamNumber}%} is set:
- set {_TeamNumber} to {_TeamNumber}+1
- set {Teams::%{_TeamNumber}%} to {_TeamNumber}
- command "/scoreboard teams add UHC%{_TeamNumber}%"
- if {Teams.FriendlyFire} is set:
- command "/scoreboard teams option UHC%{_TeamNumber}% friendlyfire false"
- loop {_ThisTeam::*}:
- set {Teams.InTeam::%loop-value%} to {_TeamNumber}
- add "%loop-value%" to {Team.%{_TeamNumber}%::*}
- command "/scoreboard teams join UHC%{_TeamNumber}% %loop-value%"
- set {_Buffer} to ""
- loop {_ThisTeam::*}:
- set {_Player} to ("%loop-value%" parsed as offlineplayer)
- if {_Player} is online:
- set {_Buffer} to "%{_Buffer}%&a%loop-value% "
- else:
- set {_Buffer} to "%{_Buffer}%&c%loop-value% "
- command "/wl add %loop-value%"
- loop {_ThisTeam::*}:
- set {_Player} to ("%loop-value%" parsed as offlineplayer)
- command "/playsound note.pling %loop-value%"
- message "{@P} &7You are now on a team with the following people:" to {_Player}
- message "{@P} &a%{_Buffer}%" to {_Player}
- message "{@P} &7If this was a mistake, please /helpop your full team." to {_Player}
- message "{@P} &7Created a team with the following members:"
- message "{@P} &a%{_Buffer}%"
- loop all players:
- loop-player has the permission "skript.op"
- loop-player is not command sender
- message "{@P} {@N} &7Created team with members:" to loop-player
- message "{@P} &a%{_Buffer}%" to loop-player
- command /pmorecount:
- aliases: /pmironcount, /pmiron, /pmgold, /pmgoldcount, /pmdiamond, /pmdiamondcount, /pmore, /pmdiamonds, /pmores
- executable by: players
- trigger:
- if {Teams.InTeam::%command sender%} is not set:
- message "{@P} &7You're not on a team!"
- else:
- set {_goldi} to the number of gold ingots in command sender's inventory
- set {_goldo} to the number of gold ore in the command sender's inventory
- set {_goldn} to the number of gold nuggets in the command sender's inventory
- set {_goldb} to the number of gold blocks in the command sender's inventory
- set {_diag} to the number of diamonds in command sender's inventory
- set {_diab} to the number of diamond blocks in command sender's inventory
- set {_ironi} to the number of iron ingots in command sender's inventory
- set {_irono} to the number of iron ore in command sender's inventory
- set {_ironb} to the number of iron blocks in command sender's inventory
- set {_Team} to {Teams.InTeam::%command sender%}
- loop all players:
- if {Teams.InTeam::%loop-player%} is equal to {_Team}:
- message "{@P} &a&o%command sender% &7&ohas &6%{_goldi}+{_goldo}+({_goldn}/9)+({_goldb}*9)% gold&7, &b%{_diag}+({_diab}*9)% diamonds &7& %{_ironi}+{_irono}+({_ironb}*9)% iron" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement