Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. package net.mcoverhaul.console;
  2.  
  3. public enum CommandType {
  4.  
  5. SAY(1, "say <message>"),
  6.  
  7. EXIT(0, null),
  8.  
  9. CLIENTHANDLER(0, null),
  10.  
  11. CLIENTHANDLER_SIZE(0, null),
  12.  
  13. CLIENTHANDLER_KICK(1, "clienthandler_kick <target>"),
  14.  
  15. CLIENTHANDLER_BAN(1, "clienthandler_ban <target>"),
  16.  
  17. SERVERHANDLER(0, null),
  18.  
  19. SERVERHANDLER_SIZE(0, null),
  20.  
  21. SERVERHANDLER_PLAYERS(1, "serverhandler_players <target>"),
  22.  
  23. SCHEDULER_SIZE(0, null);
  24.  
  25. private int length;
  26. private String syntax;
  27.  
  28. CommandType(int length, String syntax) {
  29. this.length = length;
  30. this.syntax = syntax;
  31. }
  32.  
  33. public int getLength() {
  34. return this.length;
  35. }
  36.  
  37. public String getSyntax() {
  38. return this.syntax;
  39. }
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement