command afk:
trigger:
add 1 to {afkYN%player%}
if {afkYN%player%} is 1:
send "&b[boxcraft] &cyou are now afk" to player
if {afkYN%player%} is 2:
set {afkYN%player%} to 0
if {afkYN%player%} is 0:
send "&b[boxcraft] &ayou are no longer afk" to player
broadcast "&b[boxcraft] &a%player% is no longer afk" to "world"
variables:
{afkYN%player%} = 0
Posted by: ilikecats4104 from the skUnity Discord. View the thread on skUnity Discord here
trigger:
add 1 to {afkYN%player%}
if {afkYN%player%} is 1:
send "&b[boxcraft] &cyou are now afk" to player
if {afkYN%player%} is 2:
set {afkYN%player%} to 0
if {afkYN%player%} is 0:
send "&b[boxcraft] &ayou are no longer afk" to player
broadcast "&b[boxcraft] &a%player% is no longer afk" to "world"
variables:
{afkYN%player%} = 0
Posted by: ilikecats4104 from the skUnity Discord. View the thread on skUnity Discord here