[trunk] Unlimited: Displayed wrong name

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1126 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo 2011-04-04 19:48:59 +00:00
parent 72ea0a1220
commit e3b92d9c2d

View File

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