recordHit

public static long recordHit(Player player)

Records a melee hit from the given player and returns the number of game ticks elapsed since their previously tracked hit, or NO_PREVIOUS_HIT when this is their first recorded hit since plugin start (or since their last eviction).

Lazily registers the eviction sweep on the first call.

Return

tick delta since previous hit, or NO_PREVIOUS_HIT

Parameters

player

attacking player; must be non-null