Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. package org.model.players.commands;
  2.  
  3. import org.model.players.client;
  4.  
  5. public class CommandManager {
  6.  
  7. /**
  8. * @author animeking1120
  9. */
  10.  
  11. public client c;
  12.  
  13. public static void playerCommand(final client c, String command) {
  14. PlayerCommands.playerCommands(c, command);
  15. }
  16.  
  17. public static void modCommand(final client c, String command) {
  18. ModCommands.ModCommand(c, command);
  19. }
  20.  
  21. public static void adminCommand(final client c, String command) {
  22. AdminCommands.adminCommand(c, command);
  23. }
  24.  
  25. public static void ownerCommand(final client c, String command) {
  26. OwnerCommands.ownerCommand(c, command);
  27. }
  28.  
  29. public final static void customCommand(client c, String command) {
  30.  
  31. if (c.playerRights >= 0) {
  32. playerCommand(c, command);
  33. } else if (c.playerRights >= 1) {
  34. modCommand(c, command);
  35. } else if (c.playerRights >= 2) {
  36. adminCommand(c, command);
  37. } else if (c.playerRights >= 3) {
  38. ownerCommand(c, command);
  39. }
  40.  
  41. }
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement