1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-12 09:35:26 +02:00

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
This commit is contained in:
snowleo
2011-05-09 23:46:05 +00:00
parent 1f59dc28ce
commit d3328c6c2b
2 changed files with 2 additions and 0 deletions

View File

@@ -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();
}
}

View File

@@ -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();
}
}