update inventory

This commit is contained in:
snowleo 2012-03-01 23:23:23 +01:00
parent c36ca65e09
commit 6df3b9008a

View file

@ -37,6 +37,7 @@ public class SignFree extends EssentialsSign
item.setAmount(item.getType().getMaxStackSize());
InventoryWorkaround.addItem(player.getInventory(), true, item);
player.sendMessage("Item added to your inventory.");
player.updateInventory();
//TODO: wait for a fix in bukkit
//Problem: Items can be duplicated
//Inventory i = ess.getServer().createInventory(player, InventoryType.CHEST);