on swap hand items:
if {cooldown.%player%} is not greater than 0:
set {cooldown.%player%} to 1
wait 1 second # as the offhand exploit spams n amount in 1 tick, you can change this to any value you want
set {cooldown.%player%} to 0
set {used.%player%} to 0
else:
cancel event
add 1 to {used.%player%}
if {used.%player%} >= 50:
execute console command "/ban -s %player% Exploits" # uses AdvancedBans
# resets cooldown if s
on swap hand items:
if {cooldown.%player%} is not greater than 0:
set {cooldown.%player%} to 1
wait 1 second # as the offhand exploit spams n amount in 1 tick, you can change this to any value you want
set {cooldown.%player%} to 0
set {used.%player%} to 0
else:
cancel event
add 1 to {used.%player%}
if {used.%player%} >= 50:
execute console command "/ban -s %player% Exploits" # uses AdvancedBans
# resets cooldown if s