Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // respond with all items (including stack size) that are currently in the players inventory
- if( (line.indexOf("!report inv")) >= 0 ) {
- RSItem items[] = inventory.getItems();
- int i = 0;
- while(items[i].isComponentValid()) {
- writer.write("PRIVMSG " + channel + " :[Item " + i + "] " + items[i].getName() + "\r\n");
- writer.flush();
- i++;
- sleep(500);
- }
- }
Add Comment
Please, Sign In to add comment