|
|
hi i need help adding prices to my ::item command but still keeping it free spawn for admins, if it helps it is a dementhium source, the code at the moment is
could you place tell me what i need to add, even better could you give me the complete command?if (command[0].equalsIgnoreCase("item") || command[0].equalsIgnoreCase("i")) {
if (player.getRights() < 2) return;
if (command.length == 3) {
player.getInventory().addItem(Integer.parseInt(com mand[1]), Integer.parseInt(command[2]));
} else {
player.getInventory().addItem(Integer.parseInt(com mand[1]), 1);
}
player.getInventory().refresh();
}
| « Dementhium!!!! | Packet information » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |