So i made this skript to notify players that someone is afk but the "if arg-1 is "(text)": doesnt work.
Heres the Skript:
command /imafk <Text>:
permission: op
permission message: &cError!
trigger:
if arg-1 is not set:
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
stop
if arg-1 is "stop":
send "&6%player% is back from his break!" to all players
stop
( sorry i dont know how to put it like in a code thing i also attached the file with the skript)
Heres the Skript:
command /imafk <Text>:
permission: op
permission message: &cError!
trigger:
if arg-1 is not set:
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
wait 1200 ticks
send "&c[&eNotice&c] &a%player% is AFK right now!" to all players
stop
if arg-1 is "stop":
send "&6%player% is back from his break!" to all players
stop
( sorry i dont know how to put it like in a code thing i also attached the file with the skript)