Advertisement
LukaMC59

Untitled

Nov 11th, 2017
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 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 not 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 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. message "&cInvalid Rank"
  33. message "&7Available ranks are &cAdministrator &7and &eModerator"
  34. if arg-player is set:
  35. if arg-2 is not set:
  36. message "&c%arg-player%&7's a/an %arg-player's prefix%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement