Fix Bows in Chest #2
@ -84,8 +84,8 @@ public class ItemListener extends BasicListener {
|
||||
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
public void onInventoryClose(InventoryCloseEvent event) {
|
||||
if(event.getInventory().contains(MWTeam.getBow())) {
|
||||
event.getInventory().setItem(event.getInventory().first(MWTeam.getBow()), new ItemStack(Material.AIR));
|
||||
if(event.getInventory().contains(Material.BOW)) {
|
||||
event.getInventory().setItem(event.getInventory().first(Material.BOW), new ItemStack(Material.AIR));
|
||||
event.getPlayer().getInventory().addItem(MWTeam.getBow());
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren