Advertisement
AurasPrivate

Untitled

Sep 30th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | None | 0 0
  1. # ▄█ ▄▄▄▄███▄▄▄▄ ▄███████▄ ▄████████ ▄████████ ███
  2. # ███ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ███ ███ ███ ▀█████████▄
  3. # ███▌ ███ ███ ███ ███ ███ ███ ███ ███ █▀ ▀███▀▀██
  4. # ███▌ ███ ███ ███ ███ ███ ███ ███ ███ ███ ▀
  5. # ███▌ ███ ███ ███ ▀█████████▀ ▀███████████ ███ ███
  6. # ███ ███ ███ ███ ███ ███ ███ ███ █▄ ███
  7. # ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
  8. # █▀ ▀█ ███ █▀ ▄████▀ ███ █▀ ████████▀ ▄████▀
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. command /rank [<offline player>] [<text>]:
  19. permission: server.admin
  20. permission message: &cInsufficent permissions.
  21. aliases: /setrank
  22. trigger:
  23. if argument 1 is set:
  24. if argument 2 is set:
  25. if argument 2 is "admin":
  26.  
  27. set {player::%arg-1's uuid%::rank} to "Admin"
  28. set {player::%arg-1's uuid%::rank::prefix} to "&8[&c&lADMIN&8] &c"
  29. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  30. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cAdmin" to player
  31. send "&c&l[RANK] &rYour rank has been updated to &cAdmin &rby &c%player%" to argument 1
  32.  
  33. else if argument 2 is "dev" or "developer":
  34.  
  35. set {player::%arg-1's uuid%::rank} to "Developer"
  36. set {player::%arg-1's uuid%::rank::prefix} to "&8[&d&lDEV&8] &d"
  37. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  38. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cDeveloper" to player
  39. send "&c&l[RANK] &rYour rank has been updated to &cDeveloper &rby &c%player%" to argument 1
  40.  
  41. else if argument 2 is "senior mod" or "srmod":
  42.  
  43. set {player::%arg-1's uuid%::rank} to "Senior Mod"
  44. set {player::%arg-1's uuid%::rank::prefix} to "&8[&6&lSR.MOD&8] &6"
  45. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  46. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cSenior Mod" to player
  47. send "&c&l[RANK] &rYour rank has been updated to &cSenior Mod &rby &c%player%" to argument 1
  48.  
  49. else if argument 2 is "mod":
  50.  
  51. set {player::%arg-1's uuid%::rank} to "Mod"
  52. set {player::%arg-1's uuid%::rank::prefix} to "&8[&e&lMOD&8] &e"
  53. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  54. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cMod" to player
  55. send "&c&l[RANK] &rYour rank has been updated to &cMod &rby &c%player%" to argument 1
  56.  
  57. else if argument 2 is "junior mod" or "jrmod":
  58.  
  59. set {player::%arg-1's uuid%::rank} to "Junior Mod"
  60. set {player::%arg-1's uuid%::rank::prefix} to "&8[&9&lJR.MOD&8] &9"
  61. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  62. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cJunior Mod" to player
  63. send "&c&l[RANK] &rYour rank has been updated to &cJunior Mod &rby &c%player%" to argument 1
  64.  
  65. else if argument 2 is "builder":
  66.  
  67. set {player::%arg-1's uuid%::rank} to "Builder"
  68. set {player::%arg-1's uuid%::rank::prefix} to "&8[&a&lBUILDER&8] &a"
  69. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  70. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cBuilder" to player
  71. send "&c&l[RANK] &rYour rank has been updated to &cBuilder &rby &c%player%" to argument 1
  72.  
  73. else if argument 2 is "none" or "default":
  74.  
  75. set {player::%arg-1's uuid%::rank} to "None"
  76. set {player::%arg-1's uuid%::rank::prefix} to "&8[&7&lMEMBER&8] &7"
  77. set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
  78. send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cNone" to player
  79. send "&c&l[RANK] &rYour rank has been updated to &cNone &rby &c%player%" to argument 1
  80.  
  81. on first join:
  82. make console execute "rank %player% none"
  83.  
  84. on chat:
  85. cancel event
  86. set tab list name of player to "%{player::%player's uuid%::rank::prefix}%%player%"
  87. broadcast "%{player::%player's uuid%::rank::prefix}%%player% &7» %message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement