Guest User

Untitled

a guest
Feb 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. // respond with all items (including stack size) that are currently in the players inventory
  2. if( (line.indexOf("!report inv")) >= 0 ) {
  3.     RSItem items[] = inventory.getItems();
  4.     int i = 0;
  5.     while(items[i].isComponentValid()) {
  6.         writer.write("PRIVMSG " + channel + " :[Item " + i + "] " + items[i].getName() + "\r\n");
  7.         writer.flush();
  8.         i++;
  9.         sleep(500);
  10.     }
  11. }
Add Comment
Please, Sign In to add comment