Skript Version: 2.2-dev36 Minecraft Version: 1.8.9
Code
What doesn't work
I want to make so if i issue the command twice, if the player is already in the list, it doesn't add him back again
no errors: console + ingame
Boosting
Code
Code:
command /revive [<offlineplayer>]:
aliases: rev
trigger:
if player has permission "events.moderator":
if arg-1 is a player:
make console execute command "scoreboard teams join Dead %arg-1%"
make console execute command "scoreboard teams join Alive %arg-1%"
make console execute command "effect %arg-1% clear"
wait 1 second
teleport arg-1 to {events_spawn}
wait 2 ticks
broadcast "{@prefix} &f%arg-1% &ahas been revived!"
if {teamcount::*} doesn't contain arg-1:
add arg-1 to {teamcount::*}
stop
What doesn't work
Code:
if {teamcount::*} doesn't contain arg-1:
add arg-1 to {teamcount::*}
stop
I want to make so if i issue the command twice, if the player is already in the list, it doesn't add him back again
no errors: console + ingame
Boosting
Last edited: