setDamageIndicatorParticleCap
Sets the maximum number of DAMAGE_INDICATOR particles that outbound ClientboundLevelParticlesPacket packets may carry.
Vanilla Player.attack(Entity) spawns one particle per two HP of damage dealt and packs the count into a single packet, so plugins that scale player melee damage into the millions broadcast packets that ask the client to instantiate hundreds of thousands of particles locally and freeze. Setting a small positive cap (e.g. 16) collapses the visual to a normal-looking puff without altering damage or any other game state. Pass 0 or a negative value to disable.
Only takes effect on server versions whose adapter installs the netty write interceptor (currently 1.21+).