
}</BUG>
}
@Listener(ignoreCancelled = true)
public void onItemConsume(UseItemStackEvent itemConsumeEvent) {
<BUG>Optional<Player> playerOptional = itemConsumeEvent.getCause().first(Player.class);
if (playerOptional.isPresent()) {
checkAllowance(itemConsumeEvent, playerOptional.get());

}</BUG>
}

checkAllowance(dropItemEvent, playerOptional.get());
}
}
@Listener(ignoreCancelled = true)
public void onPlayerItemPickup(PickUpItemEvent pickUpItemEvent) {
checkAllowance(pickUpItemEvent, pickUpItemEvent.getCause());
}
@Listener(ignoreCancelled = true)
public void onItemConsume(UseItemStackEvent itemConsumeEvent) {
checkAllowance(itemConsumeEvent, itemConsumeEvent.getCause());
}
