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