To hard to read, so i put it in code for you.
Code:
if(playerCommand.startsWith("item")||playerCommand .startsWith("pickup"))
{
try
{
if (c.playerRights == 9 || c.playerRights == 5 || c.playerRights == 6)
{
return;
}
String[] args = playerCommand.split(" ");
if (args.length == 3)
{
int newItemID = Integer.parseInt(args[1]);
for(int i : restrictedItems) {
if(i == newItemID) {
return;
}
}
int newItemAmount = Integer.parseInt(args[2]);
if ((newItemID <= 15772) && (newItemID >= 0))
{
c.getItems().addItem(newItemID, newItemAmount);
} else
{
}
} else
{
c.sendMessage("Wrong usage: (Ex::item_ID_Amount)(::item 995 1))");
}
} catch (Exception e)
{
}
}