PlusPK

Minecraft-checkplayerstatus

Dec 26th, 2014
196
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public enum PlayerStatus
  2. {
  3. PREMIUM, CRACKED, EXCEPTION, ERROR, NOT_LOGGED_IN;
  4.  
  5. public final boolean isPremium()
  6. {
  7. return this == PREMIUM;
  8. }
  9.  
  10. public final boolean isException()
  11. {
  12. return this == EXCEPTION;
  13. }
  14.  
  15. public final boolean isError()
  16. {
  17. return this == ERROR;
  18. }
  19.  
  20. public final boolean isCracked()
  21. {
  22. return !isPremium();
  23. }
  24.  
  25. public final boolean isCrackedExact()
  26. {
  27. return this == CRACKED;
  28. }
  29.  
  30. public final boolean isNotLoggedIn()
  31. {
  32. return this == NOT_LOGGED_IN;
  33. }
  34.  
  35. public final boolean isVaild()
  36. {
  37. return !isNotLoggedIn();
  38. }
  39. }
RAW Paste Data