D
Deleted member 6377
Skript Version: 2.1.2
Minecraft Version: 1.8.9
---
Full Code:
Errors on reload:
No errors on reload.
Problem:
When I enable the AutoClicker check (/autoclickercheck true), it only enabled the check for the player that wrote the command. Of course, I don't want that so I try to fix it using the LoopPlayer thing but now it just sends me the message that it Enabled but the click check doesn't work anymore, I don't get kicked
Have you tried searching the docs?
Yes
Have you tried searching the forums?
No
What other methods have you tried to fix it?
None, don't know any other method.
Minecraft Version: 1.8.9
---
Full Code:
code_language.skript:
# AntiAutoClicker by D0XY. https://www.youtube.com/c/d0xyyt
options:
# Change the number after "clickmax" to set what CPS the player gets kicked at!
clickmax: 5
# DO NOT CHANGE ANYTHING BELOW THIS LINE!!!
prefix: &6[&eAntiAutoClick&6]&r
command /autoclickcheck [<Text>]:
permission: autoclickcheck.use
permission message :&cNo permission!
trigger:
if arg 1 is not set:
message "{@prefix} &cUsage: /autoclickcheck (true/false)"
if arg 1 is "true":
loop all players:
set {clickcheck.%loop-player%} to true
message "{@prefix} &aAutoClicker check enabled."
if arg 1 is "false":
loop all players:
set {clickcheck.%loop-player%} to false
message "{@prefix} &cAutoClicker check disabled."
on join:
clear {clicks.%player%}
on left click:
{clickcheck} is true
add 1 to {clicks.%player%}
{clicks.%player%} > {@clickmax}
kick the player due to "&d%{clicks.%player%}%&c+ CPS, AutoClicker?"
broadcast "&d%player%&b has been kicked for clicking &d%{clicks.%player%}%&b+ CPS!"
every 5 seconds:
set {clickcheck} to true
wait 0.5 second
set {clickcheck} to false
loop all players:
delete {clicks.%loop-player%}
Errors on reload:
No errors on reload.
Problem:
When I enable the AutoClicker check (/autoclickercheck true), it only enabled the check for the player that wrote the command. Of course, I don't want that so I try to fix it using the LoopPlayer thing but now it just sends me the message that it Enabled but the click check doesn't work anymore, I don't get kicked
Have you tried searching the docs?
Yes
Have you tried searching the forums?
No
What other methods have you tried to fix it?
None, don't know any other method.