Class ItemDropTracker
java.lang.Object
net.mathias2246.buildmc.api.item.ItemDropTracker
- All Implemented Interfaces:
org.bukkit.event.Listener
Tracks players who recently dropped an item.
Uses high-resolution timestamps to determine if a player dropped an item within a configurable threshold (default 100 ms).
-
Constructor Summary
ConstructorsConstructorDescriptionItemDropTracker(org.bukkit.plugin.Plugin plugin) ItemDropTracker(org.bukkit.plugin.Plugin plugin, long sameTickNanos) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandroppedRecently(org.bukkit.entity.Player player) Returns true if the player dropped an item within the configured threshold.voidonItemDrop(org.bukkit.event.player.PlayerDropItemEvent event)
-
Constructor Details
-
ItemDropTracker
public ItemDropTracker(org.bukkit.plugin.Plugin plugin) -
ItemDropTracker
public ItemDropTracker(org.bukkit.plugin.Plugin plugin, long sameTickNanos)
-
-
Method Details
-
onItemDrop
public void onItemDrop(org.bukkit.event.player.PlayerDropItemEvent event) -
droppedRecently
public static boolean droppedRecently(org.bukkit.entity.Player player) Returns true if the player dropped an item within the configured threshold.
-