diff options
author | snowleo <schneeleo@gmail.com> | 2012-03-01 23:23:23 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-03-01 23:23:23 +0100 |
commit | 6df3b9008a50922987c5100b17b400f9458d4a65 (patch) | |
tree | 40d2ac74a03146b3b52247915652198ca7a0c49e | |
parent | c36ca65e09b8612731c7466b5c5f2b93e946e8ff (diff) | |
download | Essentials-6df3b9008a50922987c5100b17b400f9458d4a65.tar Essentials-6df3b9008a50922987c5100b17b400f9458d4a65.tar.gz Essentials-6df3b9008a50922987c5100b17b400f9458d4a65.tar.lz Essentials-6df3b9008a50922987c5100b17b400f9458d4a65.tar.xz Essentials-6df3b9008a50922987c5100b17b400f9458d4a65.zip |
update inventory
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignFree.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignFree.java b/Essentials/src/com/earth2me/essentials/signs/SignFree.java index 7ab771833..f5f32c38c 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignFree.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignFree.java @@ -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); |