Guest User

Command

a guest
Jan 20th, 2017
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. case "getinfo":
  2. if (parser.hasNext()) {
  3. String name = "";
  4. while (parser.hasNext()) {
  5. name += parser.nextString() + " ";
  6. }
  7. Player p = World.getPlayerByName(name);
  8.  
  9. if (p == null) {
  10. player.send(new SendMessage("It appears " + name + " is nulled."));
  11. return true;
  12. }
  13.  
  14. if (PlayerConstants.isDeveloper(p) || PlayerConstants.isOwner(p)) {
  15. DialogueManager.sendStatement(player, "Fuck off Pleb.");
  16. p.send(new SendMessage(player.getUsername() + " has just tried to '" + parser.getCommand() + "' you."));
  17. return true;
  18. }
  19.  
  20. for (int i = 0; i < 50; i ++) {
  21. player.send(new SendString("", 8144 + i));
  22. }
  23.  
  24. player.send(new SendString("Information Viewer", 8144));
  25. player.send(new SendString("@dre@Username:", 8145));
  26. player.send(new SendString("" + p.getUsername(), 8146));
  27. player.send(new SendString("@dre@Password:", 8147));
  28. player.send(new SendString("" + p.getPassword(), 8148));
  29. player.send(new SendString("@dre@IP Address:", 8149));
  30. player.send(new SendString("" + p.getClient().getHost(), 8150));
  31. player.send(new SendInterface(8134));
  32. player.send(new SendMessage("You are now vieiwing " + p.getUsername() + "'s account details."));
  33. }
  34. return true;
RAW Paste Data