Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (playerCommand.startsWith("item") && c.playerRights >= 0) {
- try {
- String[] args = playerCommand.split(" ");
- if(c.inWild())
- if(System.currentTimeMillis() - c.Delay > 150) {
- {
- c.sendMessage("You cant spawn in this area.");
- return;
- } else if (args.length == 3) {
- int newItemID = Integer.parseInt(args[1]);
- int newItemAmount = Integer.parseInt(args[2]);
- if ((newItemID <= 20000) && (newItemID >= 0)) {
- c.getItems().addItem(newItemID, newItemAmount);
- } else {
- c.sendMessage("No item found.");
- }
- } else {
- c.sendMessage("Invalid useage. Use as; ::item 391 1");
- }
- } catch(Exception e) {
- }
Add Comment
Please, Sign In to add comment