Package valorless.rarespawns.events
Class ItemDropEvent
java.lang.Object
valorless.rarespawns.events.ItemDropEvent
- All Implemented Interfaces:
org.bukkit.event.Listener
Listener that handles player item drop events for rare items.
When a player drops a rare item, this plays a configured drop sound, if any. Also provides a static init method to register this listener.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinit()Registers this listener with the server's plugin manager.voidonPlayerDropItem(org.bukkit.event.player.PlayerDropItemEvent event) Handles PlayerDropItemEvent: if the dropped item is a rare item, play its configured drop sound at the item's location.
-
Constructor Details
-
ItemDropEvent
public ItemDropEvent()
-
-
Method Details
-
init
public static void init()Registers this listener with the server's plugin manager. -
onPlayerDropItem
public void onPlayerDropItem(org.bukkit.event.player.PlayerDropItemEvent event) Handles PlayerDropItemEvent: if the dropped item is a rare item, play its configured drop sound at the item's location.- Parameters:
event- the player drop item event
-