Fix Bows in Chest #2
@ -89,6 +89,10 @@ public class ItemListener extends BasicListener {
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onInventoryClick(InventoryClickEvent event) {
|
public void onInventoryClick(InventoryClickEvent event) {
|
||||||
Inventory clicked = event.getClickedInventory();
|
Inventory clicked = event.getClickedInventory();
|
||||||
|
if(MissileWars.getFightState() != FightState.FIGHTING) {
|
||||||
|
event.setCancelled(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(event.getClick().isShiftClick()){
|
if(event.getClick().isShiftClick()){
|
||||||
ItemStack clickedOn = event.getCurrentItem();
|
ItemStack clickedOn = event.getCurrentItem();
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren