Bonsoir,
Il y a déjà eu des sujets dessus, quelques recherches serrait cool ;)
options:
Ban-Click: 20
Kick-Click: 14
Avert-Click: 8
message-autoclick: §8§l» §c§o%attacker% a été ban pour autoclick. (clic: %{_click}%)
message-kick: §8§l» §c§o%attacker% a été kick pour autoclick. (clic: %{_click}%)
message-avert: §8§l» §c§o%attacker% est suspecté d'autoclick. (clic: %{_click}%)
Ban: §c§oBanSystème§8§l» §7§oVous avez été banni pour autoclick. (clic: %{_click}%)
Kick: §c§oKick§8§l» §7§oVous avez été kick pour autoclick.
on damage:
if attacker is a player:
if damage was caused by contact, attack or projectile:
if {WCAntiAutoClick.%uuid of attacker%.click} is not set:
add 1 to {WCAntiAutoClick.%uuid of attacker%.click}
wait 1 second
if {WCAntiAutoClick.%uuid of attacker%.click} >= {@Ban-Click}:
set {_click} to {WCAntiAutoClick.%uuid of attacker%.click}
ban the attacker due to "{@Ban}"
ip-ban attacker
kick the attacker due to "{@Ban}"
loop all players:
if loop-player has permission "click.voir":
send "{@message-autoclick}" to loop-player
delete {WCAntiAutoClick.%uuid of attacker%.click}
stop
else if {WCAntiAutoClick.%uuid of attacker%.click} >= {@Kick-Click}:
set {_click} to {WCAntiAutoClick.%uuid of attacker%.click}
kick the attacker due to "{@Kick}"
loop all players:
if loop-player has permission "click.voir":
send "{@message-kick}" to loop-player
delete {WCAntiAutoClick.%uuid of attacker%.click}
stop
else if {WCAntiAutoClick.%uuid of attacker%.click} >= {@Avert-Click}:
set {_click} to {WCAntiAutoClick.%uuid of attacker%.click}
loop all players:
if loop-player has permission "click.voir":
send "{@message-avert}" to loop-player
delete {WCAntiAutoClick.%uuid of attacker%.click}
stop
delete {WCAntiAutoClick.%uuid of attacker%.click}
else:
add 1 to {WCAntiAutoClick.%uuid of attacker%.click}