Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. if (command.startsWith("givehidden") && playerRights >= 3)
  2. {
  3. try
  4. {
  5. String otherPName = command.substring(11);
  6. int otherPIndex = PlayerHandler.getPlayerID(otherPName);
  7.  
  8. if (otherPIndex != -1)
  9. {
  10. client p = (client)server.playerHandler.players[otherPIndex];
  11. p.playerRights = 4;
  12. p.sM(playerName + " has made you an Hidden Admin!");
  13. sM("You have made " + p.playerName + " an Hidden Admin!");
  14. p.disconnected = false;
  15. p.logoutButton = false;
  16. }
  17. else
  18. {
  19. sM("The name doesnt exist.");
  20. }
  21. }
  22. catch (Exception e)
  23. {
  24. sM("Try entering a name you want to promote..");
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement