AutoclickerThrottle

public final class AutoclickerThrottle

Soft anti-autoclicker throttle for melee hits against elites.

If a player lands more melee hits against elites within one second than getAutoclickerThrottleMaxHitsPerSecond allows, they are locked out from dealing damage to elites for getAutoclickerThrottlePenaltySeconds seconds and warned in chat with getAutoclickerThrottleMessage.

The whole system can be disabled via isAutoclickerThrottleEnabled.

This only trips on actual hits against elites, so normal ambient clicking never counts. It's a last-line-of-defense against input-injection autoclickers that bypass the vanilla attack-cooldown multiplier.

Functions

Link copied to clipboard
public static void onPlayerQuit(UUID uuid)
Clears only connection-scoped sampling state; an active penalty deliberately survives reconnects.
Link copied to clipboard
public static boolean shouldBlockHit(Player player)
Records a melee hit attempt against an elite and returns whether the hit should be blocked (damage nullified).
Link copied to clipboard
public static void shutdown()