Advertisement
LukaMC59

Untitled

Nov 11th, 2017
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. command /rank [<player>] [<text>]:
  2. permission: *
  3. trigger:
  4. if arg-1 is set:
  5. if arg-player is not set:
  6. message "&cInvalid Player ( Offline / Spelling Error / Non Existing )"
  7. if arg-player is set:
  8. if arg-2 is "admin":
  9. message "&c%arg-player%&7 is now an &cAdministrator"
  10. send "&7You're now an &cAdminstrator" to arg-player
  11. execute console command "pex user %arg-player% group set admin"
  12. if arg-player is set:
  13. if arg-2 is "administrator":
  14. message "&c%arg-player%&7 is now an &cAdministrator"
  15. send "&7You're now an &cAdministrator" to arg-player
  16. execute console command "pex user %arg-player% group set admin"
  17. if arg-player is set:
  18. if arg-2 is "mod":
  19. message "&c%arg-player%&7 is now a &eModerator"
  20. send "&7You're now a &eModerator" to arg-player
  21. execute console command "pex user %arg-player% group set mod"
  22. if arg-player is set:
  23. if arg-2 is "moderator":
  24. message "&c%arg-player%&7 is now a &eModerator"
  25. send "&7You're now a &eModerator" to arg-player
  26. execute console command "pex user %arg-player% group set mod"
  27. if arg-1 is not set:
  28. message "&c/rank (player) (rank)"
  29. if arg-2 is not "mod":
  30. if arg-2 is not "admin":
  31. if arg-2 is not "moderator":
  32. if arg-2 is not "reset":
  33. message "&cInvalid Rank"
  34. message "&7Available ranks are &cAdministrator &7and &eModerator &7(You can also use Reset to set someone's rank to Default)"
  35. if arg-player is set:
  36. if arg-2 is not set:
  37. message "&c%arg-player%&7 is %arg-player's prefix%"
  38. if arg-player is set:
  39. if arg-2 is "reset":
  40. message "&c%arg-player%&7 is now a &8Member"
  41. send "&7You're now a &8Member" to arg-player
  42. execute console command "pex user %arg-player% group set default"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement