Fix for Customer support item command with the removal of item categories.
This commit is contained in:
parent
f9ea325da1
commit
9f1c4653f4
|
@ -40,12 +40,6 @@ public class ItemCommand extends CommandBase<SalesPackageManager>
|
|||
final String itemName = tempName;
|
||||
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))
|
||||
{
|
||||
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 + "."));
|
||||
}
|
||||
}
|
||||
}, uuid, category, itemName, amount);
|
||||
}, uuid, itemName, amount);
|
||||
}
|
||||
}, playerName, client.getAccountId(), (amount == 1 ? itemName : itemName + " " + amount), false, 0, false);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue