diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-09 23:46:05 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-09 23:46:05 +0000 |
commit | 08136ab0ad26cf0c195176a272c1dd1d8a129519 (patch) | |
tree | 23cc20d06f582ee556fda6c6299df59a71de00cd | |
parent | 6e37682c0cf3b3deb6abda2f03fc82f49d40955b (diff) | |
download | Essentials-08136ab0ad26cf0c195176a272c1dd1d8a129519.tar Essentials-08136ab0ad26cf0c195176a272c1dd1d8a129519.tar.gz Essentials-08136ab0ad26cf0c195176a272c1dd1d8a129519.tar.lz Essentials-08136ab0ad26cf0c195176a272c1dd1d8a129519.tar.xz Essentials-08136ab0ad26cf0c195176a272c1dd1d8a129519.zip |
Update Inventory after /item and /give. Hopefully fixes too many items bug.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1402 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandgive.java | 1 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commanditem.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandgive.java b/Essentials/src/com/earth2me/essentials/commands/Commandgive.java index bfaae0a0b..0353cd8a2 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandgive.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandgive.java @@ -55,5 +55,6 @@ public class Commandgive extends EssentialsCommand charge(sender); sender.sendMessage(ChatColor.BLUE + "Giving " + stack.getAmount() + " of " + itemName + " to " + giveTo.getDisplayName() + "."); giveTo.getInventory().addItem(stack); + giveTo.updateInventory(); } } diff --git a/Essentials/src/com/earth2me/essentials/commands/Commanditem.java b/Essentials/src/com/earth2me/essentials/commands/Commanditem.java index 6750fbfaf..87776368d 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commanditem.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commanditem.java @@ -51,5 +51,6 @@ public class Commanditem extends EssentialsCommand charge(user); user.sendMessage("ยง7Giving " + stack.getAmount() + " of " + itemName + " to " + user.getDisplayName() + "."); user.getInventory().addItem(stack); + user.updateInventory(); } } |