if (holdingShift) {
slot.onItemShiftClicked();
SlotEvent s = new SlotShiftClickEvent(p, slot);
Bukkit.getPluginManager().callEvent(s);
} else { // Take item
SlotEvent s = new SlotTakeEvent(p, slot, stackInSlot, !slot.onItemTake(stackInSlot));
Bukkit.getPluginManager().callEvent(s);
if (!s.isCancelled()) {
stackOnCursor = stackInSlot;
slot.setItem(new ItemStack(0));
} else {