Class ItemDropEvent

java.lang.Object
valorless.rarespawns.events.ItemDropEvent
All Implemented Interfaces:
org.bukkit.event.Listener

public class ItemDropEvent extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Registers this listener with the server's plugin manager.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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