onDeviceDrop

public abstract boolean onDeviceDrop(Player player, boolean isShifting, Item dropped)

Executed when a player drops this custom item

Return

Cancellation of the event, true if the drop event should be cancelled

Parameters

dropped

The item entity that was dropped, can be killed.

player

The player that dropped the item

isShifting

Whether the player was shifting or not when the item was dropped