|
@@ -315,6 +315,11 @@ public class InventoryListener implements Listener {
|
|
SkillUtils.removeAbilityBuff(event.getCurrentItem());
|
|
SkillUtils.removeAbilityBuff(event.getCurrentItem());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
|
|
|
+ public void onInventoryOpenEvent(InventoryOpenEvent event) {
|
|
|
|
+ SkillUtils.removeAbilityBuff(event.getPlayer().getItemInHand());
|
|
|
|
+ }
|
|
|
|
+
|
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
|
public void onCraftItem(CraftItemEvent event) {
|
|
public void onCraftItem(CraftItemEvent event) {
|
|
final HumanEntity whoClicked = event.getWhoClicked();
|
|
final HumanEntity whoClicked = event.getWhoClicked();
|