Removed Only Bow If Clause
Dieser Commit ist enthalten in:
Ursprung
1a721b2f49
Commit
82dc627e36
@ -95,14 +95,12 @@ public class ItemListener extends BasicListener {
|
||||
if(
|
||||
clickedOn != null &&
|
||||
event.getView().getTopInventory().getType() != InventoryType.CRAFTING &&
|
||||
event.getCurrentItem().getType() != Material.BOW &&
|
||||
clicked == event.getWhoClicked().getInventory())
|
||||
event.setCancelled(true);
|
||||
}else if (
|
||||
clicked != event.getWhoClicked().getInventory() &&
|
||||
clicked != null &&
|
||||
clicked.getType() != InventoryType.PLAYER &&
|
||||
event.getCurrentItem().getType() != Material.BOW &&
|
||||
event.getCursor() != null &&
|
||||
event.getCursor().getType() != Material.AIR)
|
||||
event.setCancelled(true);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren