ThrottleSettings

class ThrottleSettings(c: FileConfiguration, logger: Logger? = null)

Per-user throttling of the despawn pipeline, read from the throttle: section.

Off by default — a server upgrading to this version sees no behaviour change until an admin sets throttle.enabled: true. See io.fairyfox.papermc.despawneditems.throttle.ThrottleManager for the semantics and io.fairyfox.papermc.despawneditems.throttle.ThrottleQuotas for the permission nodes that let different ranks get different allowances.

Constructors

Link copied to clipboard
constructor(c: FileConfiguration, logger: Logger? = null)

Properties

Link copied to clipboard

Fair-share weight for players with no despi.throttle.weight.<n> permission.

Link copied to clipboard

Master switch. When false nothing in this class is consulted on the hot path.

Link copied to clipboard

Relocations a single player may have in flight simultaneously.

Link copied to clipboard

defer (retry later, default), drop (let it despawn), or void (hand to the void/catch-all path).

Link copied to clipboard

onLimit resolved to the decision the throttler returns when a quota is exceeded.

Link copied to clipboard

True when an over-quota item should be handed to the void/catch-all path rather than simply lost.

Link copied to clipboard

Relocations a player may start per windowSeconds before being throttled.

Link copied to clipboard

Which policies apply. Unrecognised values fall back to ThrottleStrategy.COMBINED with a warning.

Link copied to clipboard

Whether ownerless drops (mob loot, dispensers) are throttled too.

Link copied to clipboard

Length of the rate window in seconds.