1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-10 16:48:05 +02:00

update inventory

This commit is contained in:
snowleo
2012-03-01 23:23:23 +01:00
parent 3820b32b57
commit 96b6e03f28

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);