Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
command /tc [<text>]:
trigger:
if arg-1 is not set:
message "&cPlease use: /tc <message>"
stop
else:
loop all players:
if loop-player has permission "tc.getmessage":
message "&4&l%player% &7>>> %arg-1%" to loop-player
command /tc [<player>] [<text>]:
permission: tc.send
permission message: &cYou don't have permission to do this!
trigger:
if arg-1 is not set:
message "&cPlease use: /tc <player> <message>"
stop
if arg-2 is not set:
message "&cPlease use: /tc <player> <message>"
stop
else:
loop all players:
if loop-player has permission "tc.getmessage":
if arg-1 has permission "tc.getmessage":
message "&4&l%player% &7>>> %arg-2%" to arg-1
stop
else:
message "&cThe player &6%arg-1% &cdoesn't have"
message "&cenough permissions, to get the message."
stop
command /tcall [<text>]:
permission: tc.all
permission message: &cYou don't have permission to do this!
trigger:
if arg-1 is not set:
message "&c/tcall <message>"
stop
else:
loop all players:
if loop-player has permission "tc.getmessage":
message "&4&l%player% &7>>> &6%arg-1%" to loop-player
Somewhere in there should be a variable that has a players team and the players on that team. Send chat to thatHere is my team skript: https://pastebin.com/yPZwm1TV