diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-04 19:48:59 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-04 19:48:59 +0000 |
commit | e3b92d9c2dd0c1a8194890c257b62c2e48e1767a (patch) | |
tree | 5f2a3f22553abd988980149011dc3ea401a95932 | |
parent | 72ea0a12209b3d16dd9373d8164e770dd4a3ecb5 (diff) | |
download | Essentials-e3b92d9c2dd0c1a8194890c257b62c2e48e1767a.tar Essentials-e3b92d9c2dd0c1a8194890c257b62c2e48e1767a.tar.gz Essentials-e3b92d9c2dd0c1a8194890c257b62c2e48e1767a.tar.lz Essentials-e3b92d9c2dd0c1a8194890c257b62c2e48e1767a.tar.xz Essentials-e3b92d9c2dd0c1a8194890c257b62c2e48e1767a.zip |
[trunk] Unlimited: Displayed wrong name
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1126 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java index 1441590c9..9263db0f5 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java @@ -68,17 +68,17 @@ public class Commandunlimited extends EssentialsCommand if (target.hasUnlimited(stack)) { if (user != target) { - user.sendMessage("§7Disable unlimited placing of " + itemname + " for " + user.getDisplayName() + "."); + user.sendMessage("§7Disable unlimited placing of " + itemname + " for " + target.getDisplayName() + "."); } - target.sendMessage("§7Disable unlimited placing of " + itemname + " for " + user.getDisplayName() + "."); + target.sendMessage("§7Disable unlimited placing of " + itemname + " for " + target.getDisplayName() + "."); target.setUnlimited(stack, false); return; } user.charge(this); if (user != target) { - user.sendMessage("§7Giving unlimited amount of " + itemname + " to " + user.getDisplayName() + "."); + user.sendMessage("§7Giving unlimited amount of " + itemname + " to " + target.getDisplayName() + "."); } - target.sendMessage("§7Giving unlimited amount of " + itemname + " to " + user.getDisplayName() + "."); + target.sendMessage("§7Giving unlimited amount of " + itemname + " to " + target.getDisplayName() + "."); if (!InventoryWorkaround.containsItem((CraftInventory)target.getInventory(), true, stack)) { target.getInventory().addItem(stack); } |