Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.49 KB | None | 0 0
  1. on first join:
  2. if {rankdis::%player's uuid%} is not set:
  3. set {rankdis::%player's uuid%} to "&7"
  4.  
  5. on join:
  6. if {rankdis::%player's uuid%} is not set:
  7. set {rankdis::%player's uuid%} to "&7"
  8.  
  9. command /rank [<text>] [<offline player>] [<text>]:
  10. permission: rank.srmod
  11. permission message: &2&l* &aError &8| &7You do not have the rank &e[SR.MOD] &7to execute this command.
  12. trigger:
  13. if arg 1 is not set:
  14. send " "
  15. send " &2&l* &aRuin Rank Management"
  16. send " &7Made by &aCriticyl"
  17. send " "
  18. send "&2&l* &a/rank set (player) (rank) &7sets a player's rank."
  19. send "&2&l* &a/rank promote (player) &7Promotes the player."
  20. send "&2&l* &a/rank reset (player) &7reset a player's rank."
  21. send "&2&l* &a/rank list &7Displays the rank list."
  22. send " "
  23. else if arg 1 is "set":
  24. if arg 2 is not set:
  25. send "&2&l* &aRank &8| &7Incorrect Usage: &a/rank set <player> <rank>"
  26. else:
  27. if arg 3 is not set:
  28. send "&2&l* &aRank &8| &7Incorrect Usage: &a/rank set <player> <rank>"
  29. else if arg 3 is "Manager" or "Manager":
  30. if player is not "Meloens":
  31. send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
  32. else:
  33. set {rank::%arg 2's uuid%} to "&c[MANAGER] &c"
  34. make console execute "/lp user %arg 2% parent set manager"
  35. send " " to arg 2
  36. send "&2&l* &aRank &8| &7Your rank has been updated to &c[Manager] &7by &a%player%" to arg 2
  37. send " " to arg 2
  38. send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &c[Manager]"
  39. else if arg 3 is "DEV" or "DEV":
  40. if player is not "Meloens":
  41. send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
  42. else:
  43. set {rank::%arg 2's uuid%} to "&c[DEV] &c"
  44. make console execute "/lp user %arg 2% parent set dev"
  45. send " " to arg 2
  46. send "&2&l* &aRank &8| &7Your rank has been updated to &c[DEV] &7by &a%player%" to arg 2
  47. send " " to arg 2
  48. send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &c[DEV]"
  49. else if arg 3 is "Admin" or "Admin":
  50. if player is not "Meloens":
  51. send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
  52. else:
  53. set {rank::%arg 2's uuid%} to "&c[ADMIN] &c"
  54. make console execute "/lp user %arg 2% parent set admin"
  55. send " " to arg 2
  56. send "&2&l* &aRank &8| &7Your rank has been updated to &c[ADMIN] &7by &a%player%" to arg 2
  57. send " " to arg 2
  58. send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &c[ADMIN]"
  59. else if arg 3 is "Sr.Mod" or "Sr.Mod":
  60. if player is not "Meloens":
  61. send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
  62. else:
  63. set {rank::%arg 2's uuid%} to "&e[SR.MOD] &e"
  64. make console execute "/lp user %arg 2% parent set sr.mod"
  65. send " " to arg 2
  66. send "&2&l* &aRank &8| &7Your rank has been updated to &e[SR.MOD] &7by &a%player%" to arg 2
  67. send " " to arg 2
  68. send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &e[SR.MOD]"
  69. else if arg 3 is "Mod" or "Mod":
  70. if player is not "Meloens":
  71. send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
  72. else:
  73. set {rank::%arg 2's uuid%} to "&e[MOD] &e"
  74. make console execute "/lp user %arg 2% parent set mod"
  75. send " " to arg 2
  76. send "&2&l* &aRank &8| &7Your rank has been updated to &e[MOD] &7by &a%player%" to arg 2
  77. send " " to arg 2
  78. send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &e[MOD]"
  79. else if arg 3 is "Jr.Mod" or "Jr.Mod":
  80. if player is not "Meloens":
  81. send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
  82. else:
  83. set {rank::%arg 2's uuid%} to "&e[JR.MOD] &e"
  84. make console execute "/lp user %arg 2% parent set jr.mod"
  85. send " " to arg 2
  86. send "&2&l* &aRank &8| &7Your rank has been updated to &e[JR.MOD] &7by &a%player%" to arg 2
  87. send " " to arg 2
  88. send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &e[JR.MOD]"
  89. else if arg 3 is "Builder" or "Builder":
  90. if player is not "Meloens":
  91. send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
  92. else:
  93. set {rank::%arg 2's uuid%} to "&d[BUILDER] &d"
  94. make console execute "/lp user %arg 2% parent set builder"
  95. send " " to arg 2
  96. send "&2&l* &aRank &8| &7Your rank has been updated to &d[BUILDER] &7by &a%player%" to arg 2
  97. send " " to arg 2
  98. send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &d[BUILDER]"
  99. else if arg 3 is "content" or "content":
  100. if player is not "Meloens":
  101. send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
  102. else:
  103. set {rank::%arg 2's uuid%} to "&3[CONTENT] &3"
  104. make console execute "/lp user %arg 2% parent set content"
  105. send " " to arg 2
  106. send "&2&l* &aRank &8| &7Your rank has been updated to &3[CONTENT] &7by &a%player%" to arg 2
  107. send " " to arg 2
  108. send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &3[CONTENT]"
  109. command /ranklist [<text>]:
  110. trigger:
  111. set {_staff::*} to all players where [input has the permission "is.staff"]
  112. size of {_staff::*} = 0:
  113. send "n/a"
  114. else:
  115. loop {_staff::*}:
  116. add loop-value to {_r::%loop-value's prefix%::*}
  117. loop {_r::&c [MANAGER]::*}:
  118. send "%loop-value%"
  119. loop {_r::&c [DEV]::*}:
  120. send "%loop-value%"
  121. loop {_r::&c [ADMIN]::*}:
  122. send "%loop-value%"
  123. loop {_r::&e [SR.MOD]::*}:
  124. send "%loop-value%"
  125. loop {_r::&e [MOD]::*}:
  126. send "%loop-value%"
  127. loop {_r::&e [JR.MOD]::*}:
  128. send "%loop-value%"
  129. loop {_r::&d [BUILDER]::*}:
  130. send "%loop-value%"
  131. loop {_r::&3 [CONTENT]::*}:
  132. send "%loop-value%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement