Fix Bows in Chest #2
@ -95,14 +95,12 @@ public class ItemListener extends BasicListener {
|
|||||||
if(
|
if(
|
||||||
clickedOn != null &&
|
clickedOn != null &&
|
||||||
event.getView().getTopInventory().getType() != InventoryType.CRAFTING &&
|
event.getView().getTopInventory().getType() != InventoryType.CRAFTING &&
|
||||||
event.getCurrentItem().getType() != Material.BOW &&
|
|
||||||
clicked == event.getWhoClicked().getInventory())
|
clicked == event.getWhoClicked().getInventory())
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}else if (
|
}else if (
|
||||||
clicked != event.getWhoClicked().getInventory() &&
|
clicked != event.getWhoClicked().getInventory() &&
|
||||||
clicked != null &&
|
clicked != null &&
|
||||||
clicked.getType() != InventoryType.PLAYER &&
|
clicked.getType() != InventoryType.PLAYER &&
|
||||||
event.getCurrentItem().getType() != Material.BOW &&
|
|
||||||
event.getCursor() != null &&
|
event.getCursor() != null &&
|
||||||
event.getCursor().getType() != Material.AIR)
|
event.getCursor().getType() != Material.AIR)
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren