Search in sources :

Example 1 with BukkitMCItemSwapEvent

use of com.laytonsmith.abstraction.bukkit.events.BukkitInventoryEvents.BukkitMCItemSwapEvent in project CommandHelper by EngineHub.

the class BukkitInventoryListener method onItemSwap.

@EventIdentifier(event = Driver.ITEM_SWAP, className = "org.bukkit.event.player.PlayerSwapHandItemsEvent")
public void onItemSwap(Event event) {
    BukkitMCItemSwapEvent is = new BukkitInventoryEvents.BukkitMCItemSwapEvent(event);
    EventUtils.TriggerListener(Driver.ITEM_SWAP, "item_swap", is);
}
Also used : BukkitMCItemSwapEvent(com.laytonsmith.abstraction.bukkit.events.BukkitInventoryEvents.BukkitMCItemSwapEvent) EventIdentifier(com.laytonsmith.annotations.EventIdentifier)

Aggregations

BukkitMCItemSwapEvent (com.laytonsmith.abstraction.bukkit.events.BukkitInventoryEvents.BukkitMCItemSwapEvent)1 EventIdentifier (com.laytonsmith.annotations.EventIdentifier)1