mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01:00
[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:
parent
72ea0a1220
commit
e3b92d9c2d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user