Hey guys, i did some testing, and i came up with this:
It doesnt give me errors or something, but if i do /tleave, it says that im not in a team, but i joined via the sign method.
Can someone make this work?
code_language.skript:
on rightclick on sign:
line 2 of the clicked block is "test":
line 3 of the clicked block is "1":
add player to {team::blue::*} #blue
execute console command "warp test1 %player%"
on rightclick on sign:
line 2 of the clicked block is "test":
line 3 of the clicked block is "2":
add player to {team::red::*} #red
execute console command "warp test2 %player%"
command /tleave:
trigger:
if player is in {team::red::*}:
message "&4Red"
remove player from {team::red::*}
else if player is in {team::blue::*}:
message "&1Blue"
remove player from {team::blue::*}
else:
message "&cYou are not in a team!"
It doesnt give me errors or something, but if i do /tleave, it says that im not in a team, but i joined via the sign method.
Can someone make this work?