command /safe:
trigger:
loop players in radius 10 of player:
add 1 to {_n}
loop monsters in radius 10 of player:
add 1 to {_n}
if {_n} is more than or equal to 1:
send "&cThis is not a safe area!"
else:
send "&aThis is a safe area!"
Searching for players works but when I copied and pasted it and replaced players to monsters, it states that 'player' is not an item stack (safe.sk, line 5: loop monster in radius 10 of player:'. How do I fix this?
trigger:
loop players in radius 10 of player:
add 1 to {_n}
loop monsters in radius 10 of player:
add 1 to {_n}
if {_n} is more than or equal to 1:
send "&cThis is not a safe area!"
else:
send "&aThis is a safe area!"
Searching for players works but when I copied and pasted it and replaced players to monsters, it states that 'player' is not an item stack (safe.sk, line 5: loop monster in radius 10 of player:'. How do I fix this?