Fix for Customer support item command with the removal of item categories.

This commit is contained in:
Jonathan Williams 2015-10-04 11:48:16 -05:00
parent f9ea325da1
commit 9f1c4653f4

View File

@ -40,12 +40,6 @@ public class ItemCommand extends CommandBase<SalesPackageManager>
final String itemName = tempName; final String itemName = tempName;
final int amount = amountSpecified; final int amount = amountSpecified;
if (!Plugin.getInventoryManager().validCategory(category))
{
caller.sendMessage(F.main(Plugin.getName(), "You have entered an invalid Category."));
return;
}
if (!Plugin.getInventoryManager().validItem(itemName)) if (!Plugin.getInventoryManager().validItem(itemName))
{ {
caller.sendMessage(F.main(Plugin.getName(), "You have entered an invalid Item.")); caller.sendMessage(F.main(Plugin.getName(), "You have entered an invalid Item."));
@ -76,7 +70,7 @@ public class ItemCommand extends CommandBase<SalesPackageManager>
UtilPlayer.message(caller, F.main(Plugin.getName(), "ERROR processing " + playerName + " " + amount + " " + itemName + ".")); UtilPlayer.message(caller, F.main(Plugin.getName(), "ERROR processing " + playerName + " " + amount + " " + itemName + "."));
} }
} }
}, uuid, category, itemName, amount); }, uuid, itemName, amount);
} }
}, playerName, client.getAccountId(), (amount == 1 ? itemName : itemName + " " + amount), false, 0, false); }, playerName, client.getAccountId(), (amount == 1 ? itemName : itemName + " " + amount), false, 0, false);
} }