In my skript this issue is occurring kindly help
Issue in line
else if %{chattext::%player%}% is {_message} and if %{chatspamcount::%player%}% is 5:
Skript file
variables:
{chatspamcount::%player%} = 0
on chat:
loop all players:
if player has permission "spam.ignore":
else if %{chattext::%player%}% is {_message} and if %{chatspamcount::%player%}% is 5:
cancel event
send "&c&lYou should not spam!"
else:
set {chattext::%player%} to {_message}
add 1 to {chatspamcount::%player%}
Issue
says variables cannot be used here
Please help
Issue in line
else if %{chattext::%player%}% is {_message} and if %{chatspamcount::%player%}% is 5:
Skript file
variables:
{chatspamcount::%player%} = 0
on chat:
loop all players:
if player has permission "spam.ignore":
else if %{chattext::%player%}% is {_message} and if %{chatspamcount::%player%}% is 5:
cancel event
send "&c&lYou should not spam!"
else:
set {chattext::%player%} to {_message}
add 1 to {chatspamcount::%player%}
Issue
says variables cannot be used here
Please help
Last edited: