Advertisement
70sOn7

Ranks - Taebl

Nov 11th, 2017
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.45 KB | None | 0 0
  1. on first join:
  2. set player's tablist name to "&8[Member] &7%player%"
  3. set player's display name to "&8[Member] &7%player%"
  4. set {rank.%player%} to "Member"
  5.  
  6. on join:
  7. if {rank.%player%} is "Admin":
  8. set player's tablist name to "&c[ADMIN] &7%player%"
  9. if {rank.%player%} is "Mod":
  10. set player's tablist name to "&e[MOD] &7%player%"
  11. if {rank.%player%} is "Builder":
  12. set player's tablist name to "&a[BUILDER] &7%player%"
  13. if {rank.%player%} is "YT":
  14. set player's tablist name to "&5[YT] &7%player%"
  15. if {rank.%player%} is "Legend":
  16. set player's tablist name to "&6[LEGEND] &7%player%"
  17. if {rank.%player%} is "Pro":
  18. set player's tablist name to "&b[PRO] &7%player%"
  19. if {rank.%player%} is "VIP":
  20. set player's tablist name to "&a[VIP] &7%player%"
  21. if {rank.%player%} is "Member":
  22. set player's tablist name to "&8[Member] &7%player%"
  23.  
  24. command /rank [<player>] [<text>]:
  25. permission: server.rank
  26. trigger:
  27. if arg-1 is set:
  28. if arg-player is not set:
  29. message "&cInvalid Player ( Offline / Spelling Error / Non Existing )"
  30. if arg-player is set:
  31. if arg-2 is "admin":
  32. message "&c%arg-player%&7 is now an &cAdministrator"
  33. send "&7You're now an &cAdminstrator" to arg-player
  34. execute console command "pex user %arg-player% group set admin"
  35. set arg 1's tablist name to "&c[ADMIN] &7%arg-1%"
  36. set arg 1's display name to "&c[ADMIN] &7%arg-1%"
  37. set {rank.%arg-1%} to "Admin"
  38. if arg-player is set:
  39. if arg-2 is "administrator":
  40. message "&c%arg-player%&7 is now an &cAdministrator"
  41. send "&7You're now an &cAdministrator" to arg-player
  42. execute console command "pex user %arg-player% group set admin"
  43. set arg 1's tablist name to "&c[ADMIN] &7%arg-1%"
  44. set arg 1's display name to "&c[ADMIN] &7%arg-1%"
  45. set {rank.%arg-1%} to "Admin"
  46. if arg-player is set:
  47. if arg-2 is "mod":
  48. message "&c%arg-player%&7 is now a &eModerator"
  49. send "&7You're now a &eModerator" to arg-player
  50. execute console command "pex user %arg-player% group set mod"
  51. set arg 1's tablist name to "&e[MOD] &7%arg-1%"
  52. set arg 1's display name to "&e[MOD] &7%arg-1%"
  53. set {rank.%arg-1%} to "Mod"
  54. if arg-player is set:
  55. if arg-2 is "moderator":
  56. message "&c%arg-player%&7 is now a &eModerator"
  57. send "&7You're now a &eModerator" to arg-player
  58. execute console command "pex user %arg-player% group set mod"
  59. set arg 1's tablist name to "&e[MOD] &7%arg-1%"
  60. set arg 1's display name to "&e[MOD] &7%arg-1%"
  61. set {rank.%arg-1%} to "Mod"
  62. if arg-player is set:
  63. if arg-2 is "builder":
  64. message "&c%arg-player%&7 is now a &aBuilder"
  65. send "&7You're now a &aBuilder" to arg-player
  66. execute console command "pex user %arg-player% group set Builder"
  67. set arg 1's tablist name to "&a[BUILDER] &7%arg-1%"
  68. set arg 1's display name to "&a[BUILDER] &7%arg-1%"
  69. set {rank.%arg-1%} to "Builder"
  70. if arg-player is set:
  71. if arg-2 is "YT":
  72. message "&c%arg-player%&7 is now a &5YT"
  73. send "&7You're now a &5YT" to arg-player
  74. execute console command "pex user %arg-player% group set YT"
  75. set arg 1's tablist name to "&5[YT] &7%arg-1%"
  76. set arg 1's display name to "&5[YT] &7%arg-1%"
  77. set {rank.%arg-1%} to "YT"
  78. if arg-player is set:
  79. if arg-2 is "Legend":
  80. message "&c%arg-player%&7 is now a &6Legend"
  81. send "&7You're now a &6Legend" to arg-player
  82. execute console command "pex user %arg-player% group set Legend"
  83. set arg 1's tablist name to "&6[LEGEND] &7%arg-1%"
  84. set arg 1's display name to "&6[LEGEND] &7%arg-1%"
  85. set {rank.%arg-1%} to "Legend"
  86. if arg-player is set:
  87. if arg-2 is "Pro":
  88. message "&c%arg-player%&7 is now a &bPro"
  89. send "&7You're now a &bPro" to arg-player
  90. execute console command "pex user %arg-player% group set Pro"
  91. set arg 1's tablist name to "&b[PRO] &7%arg-1%"
  92. set arg 1's display name to "&b[PRO] &7%arg-1%"
  93. set {rank.%arg-1%} to "Pro"
  94. if arg-player is set:
  95. if arg-2 is "VIP":
  96. message "&c%arg-player%&7 is now a &aVIP"
  97. send "&7You're now a &aVIP" to arg-player
  98. execute console command "pex user %arg-player% group set vip"
  99. set arg 1's tablist name to "&a[VIP] &7%arg-1%"
  100. set arg 1's display name to "&a[VIP] &7%arg-1%"
  101. set {rank.%arg-1%} to "VIP"
  102. if arg-1 is not set:
  103. message "&c/rank (player) (rank)"
  104. if arg-2 is not "mod":
  105. if arg-2 is not "admin":
  106. if arg-2 is not "moderator":
  107. if arg-2 is not "reset":
  108. if arg-2 is not "Builder":
  109. if arg-2 is not "YT":
  110. if arg-2 is not "Legend":
  111. if arg-2 is not "Pro":
  112. if arg-2 is not "VIP":
  113. message "&cInvalid Rank"
  114. message " "
  115. message "&7Available ranks are:"
  116. message " "
  117. message "&cAdministrator"
  118. message "&eModerator"
  119. message "&aBuilder"
  120. message "&5YT"
  121. message "&6Legend"
  122. message "&bPro"
  123. message "&aVIP"
  124. message "&7&oYou can also use Reset to reset someone's rank"
  125. if arg-player is set:
  126. if arg-2 is not set:
  127. message "&c%arg-player%&7 is %arg-player's prefix%"
  128. if arg-player is set:
  129. if arg-2 is "reset":
  130. message "&c%arg-player%&7 is now a &8Member"
  131. send "&7You're now a &8Member" to arg-player
  132. execute console command "pex user %arg-player% group set default"
  133. set arg 1's tablist name to "&8[Member] &7%arg-1%"
  134. set arg 1's display name to "&8[Member] &7%arg-1%"
  135. set {rank.%arg-1%} to "Member"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement