|
I type in :bject 1 (for example)
and it says "Wrong format, use ::item (code) (amount)".
Or if I use :etlevel 1 99. It gives me 99 toolkits >.>
I think this is a mess up with my item command, why is this o.o? I dont even know where to start =\
Will rep if you can fix
Post your item command.
Code:if (playerCommand.startsWith("item")); try { String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if ((newItemID <= 20900) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("No such item."); } } else { c.sendMessage("Use as ::pickup 995 200"); } } catch(Exception e) { } }
Code:if (playerCommand.startsWith("item")) { try { String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if ((newItemID <= 20900) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("No such item."); } } else { c.sendMessage("Use as ::pickup 995 200"); } } catch(Exception e) { } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |