Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.65 KB | None | 0 0
  1. variables:
  2. {totaljoins} = 1
  3.  
  4. options:
  5. name: &6Gravestone &7»
  6.  
  7. #CHAT FORMATTING--------------------------------
  8.  
  9. on chat:
  10. if {rank::%player's uuid%} is not "&5[VIP]" or "[DEFAULT]":
  11. set chat format to "%{rank::%player's uuid%}% &7%player% &7» &f%message%"
  12. if {rank::%player's uuid%} is "&5[VIP]":
  13. set chat format to "%{rank::%player's uuid%}% &7%player% &7» &7%message%"
  14. if {rank::%player's uuid%} is "[DEFAULT]":
  15. set chat format to "&7%player% &7» &7%message%"
  16. if {rank::%player's uuid%} is "&C[ADMIN]":
  17. set chat format to "%{rank::%player's uuid%}% &7%player% &7» &f%colored message%"
  18. if {rank::%player's uuid%} is "&3[BUILDER]":
  19. set chat format to "%{rank::%player's uuid%}% &7%player% &7» &f%message%"
  20. if {rank::%player's uuid%} is "&6[SR.MOD]":
  21. set chat format to "%{rank::%player's uuid%}% &7%player% &7» &f%message%"
  22. if {rank::%player's uuid%} is "&6[MOD]":
  23. set chat format to "%{rank::%player's uuid%}% &7%player% &7» &f%message%"
  24. if {rank::%player's uuid%} is "&6[JR.MOD]":
  25. set chat format to "%{rank::%player's uuid%}% &7%player% &7» &f%message%"
  26. if {rank::%player's uuid%} is "&D[BETA]":
  27. set chat format to "%{rank::%player's uuid%}% &7%player% &7» &7%message%"
  28. if {rank::%player's uuid%} is "&C[DEV]":
  29. set chat format to "%{rank::%player's uuid%}% &7%player% &7» &f%message%"
  30. if {rank::%player's uuid%} is "&9[MH]":
  31. set chat format to "%{rank::%player's uuid%}% &7%player% &7» &7%message%"
  32.  
  33. ################################################################################################################
  34. variables:
  35. {totaljoins} = 1
  36.  
  37. options:
  38. name: &6Gravestone &7»
  39.  
  40. #RANKS----------------------------------------------------------------------------------------------------------------------------------
  41.  
  42. command /rank [<offline player>] [<text>]:
  43. trigger:
  44. if sender is "McThistle2" or "DependencyJr" or "xMuel" or "Pndq":
  45. if arg 1 is set:
  46. if arg 2 is "admin":
  47. set {rank::%arg 1's uuid%} to "&C[ADMIN]"
  48. execute console command "pex user %arg-1% group set admin"
  49. send "{@name} &3You have set %arg 1%&3's rank to &c[ADMIN]&3!" to player
  50. send "{@name} &3Your rank has been set to &c[ADMIN] &3by &3%player%&3!" to arg 1
  51. set arg 1's tablist name to "%{rank::%arg 1's uuid%}% &7%arg-1%"
  52. if arg 2 is "dev" or "developer":
  53. set {rank::%arg 1's uuid%} to "&c[DEV]"
  54. execute console command "pex user %arg-1% group set dev"
  55. send "{@name} &3You have set %arg 1%&3's rank to &C[DEV]&3!" to player
  56. send "{@name} &3Your rank has been set to &C[DEV] &3by &3%player%&3!" to arg 1
  57. set arg 1's tablist name to "%{rank::%arg 1's uuid%}% &7%arg-1%"
  58. if arg 2 is "builder":
  59. set {rank::%arg 1's uuid%} to "&3[BUILDER]"
  60. execute console command "pex user %arg-1% group set builder"
  61. send "{@name} &3You have set %arg 1%&3's rank to &3[BUILDER]&3!" to player
  62. send "{@name} &3Your rank has been set to &3[BUILDER] &3by &3%player%&3!" to arg 1
  63. set arg 1's tablist name to "%{rank::%arg 1's uuid%}% &7%arg-1%"
  64. if arg 2 is "srmod" or "senior mod" or "seniormod" or "sr.mod":
  65. set {rank::%arg 1's uuid%} to "&6[SR.MOD]"
  66. execute console command "pex user %arg-1% group set srmod"
  67. send "{@name} &3You have set %arg 1%&3's rank to &6[SR.MOD]&3!" to player
  68. send "{@name} &3Your rank has been set to &6[SR.MOD] &3by &3%player%&3!" to arg 1
  69. set arg 1's tablist name to "%{rank::%arg 1's uuid%}% &7%arg-1%"
  70. if arg 2 is "mod" or "moderator":
  71. set {rank::%arg 1's uuid%} to "&6[MOD]"
  72. execute console command "pex user %arg-1% group set mod"
  73. send "{@name} &3You have set %arg 1%&3's rank to &6[MOD]&3!" to player
  74. send "{@name} &3Your rank has been set to &6[MOD] &3by &3%player%&3!" to arg 1
  75. set arg 1's tablist name to "%{rank::%arg 1's uuid%}% &7%arg-1%"
  76. if arg 2 is "jrmod":
  77. set {rank::%arg 1's uuid%} to "&6[JR.MOD]"
  78. execute console command "pex user %arg-1% group set jrmod"
  79. send "{@name} &3You have set %arg 1%&3's rank to &6[JR.MOD]&3!" to player
  80. send "{@name} &3Your rank has been set to &6[JR.MOD]&3 by &3%player%&3!" to arg 1
  81. set arg 1's tablist name to "%{rank::%arg 1's uuid%}% &7%arg-1%"
  82. if arg 2 is "mh" or "minehut":
  83. set {rank::%arg 1's uuid%} to "&9[MH]"
  84. execute console command "pex user %arg-1% group set minehut"
  85. send "{@name} &3You have set %arg 1%&3's rank to &9[MH]&3!" to player
  86. send "{@name} &3Your rank has been set to &9[MH] &3by &3%player%&3!" to arg 1
  87. set arg 1's tablist name to "%{rank::%arg 1's uuid%}% &7%arg-1%"
  88. if arg 2 is "vip":
  89. set {rank::%arg 1's uuid%} to "&A[VIP]"
  90. execute console command "pex user %arg-1% group set vip"
  91. send "{@name} &3You have set %arg 1%&3's rank to &A[VIP]&3!" to player
  92. send "{@name} &3Your rank has been set to &A[VIP] &3by &3%player%&3!" to arg 1
  93. set arg 1's tablist name to "%{rank::%arg 1's uuid%}% &7%arg-1%"
  94. if arg 2 is "beta":
  95. set {rank::%arg 1's uuid%} to "&d[BETA]"
  96. execute console command "pex user %arg-1% group set beta"
  97. send "{@name} &3You have set %arg 1%&3's rank to &d[BETA]&3!" to player
  98. send "{@name} &3Your rank has been set to &d[BETA] &3by &3%player%&3!" to arg 1
  99. set arg 1's tablist name to "%{rank::%arg 1's uuid%}% &7%arg-1%"
  100. if arg 2 is "default" or "regular":
  101. set {rank::%arg 1's uuid%} to "[DEFAULT]"
  102. execute console command "pex user %arg-1% group set default"
  103. send "{@name} &3You have set %arg 1%&3's rank to default&3!" to player
  104. send "{@name} &3Your rank has been set to default &3by &3%player%!" to arg 1
  105. set arg 1's tablist name to "&7%arg-1%"
  106. if arg 2 is not "default" or "regular" or "beta" or "vip" or "mh" or "minehut" or "jrmod" or "Junior" or "Jr.Mod" or "mod" or "moderator" or "srmod" or "senior mod" or "seniormod" or "sr.mod" or "builder" or "dev" or "developer" or "admin":
  107. send "&cPlease select a valid rank!"
  108. else:
  109. send "&cPlease select a player!"
  110.  
  111. else:
  112. send "&cError! You don't have permission to use this command!"
  113. on join:
  114. wait 3 ticks
  115. if {rank::%player's uuid%} is not set:
  116. set {rank::%player's uuid%} to "[DEFAULT]"
  117. set player's tablist name to "&7%player%"
  118. if {rank::%player's uuid%} is "&C[ADMIN]":
  119. set player's tablist name to "%{rank::%player's uuid%}% &7%player%"
  120. if {rank::%player's uuid%} is "&C[DEV]":
  121. set player's tablist name to "%{rank::%player's uuid%}% &7%player%"
  122. if {rank::%player's uuid%} is "&6[SR.MOD]":
  123. set player's tablist name to "%{rank::%player's uuid%}% &7%player%"
  124. if {rank::%player's uuid%} is "&6[MOD]":
  125. set player's tablist name to "%{rank::%player's uuid%}% &7%player%"
  126. if {rank::%player's uuid%} is "&3[BUILDER]":
  127. set player's tablist name to "%{rank::%player's uuid%}% &7%player%"
  128. if {rank::%player's uuid%} is "&6[JR.MOD]":
  129. set player's tablist name to "%{rank::%player's uuid%}% &7%player%"
  130. if {rank::%player's uuid%} is "&A[VIP]":
  131. set player's tablist name to "%{rank::%player's uuid%}% &7%player%"
  132. if {rank::%player's uuid%} is "&9[MH]":
  133. set player's tablist name to "%{rank::%player's uuid%}% &7%player%"
  134. if {rank::%player's uuid%} is "&d[BETA]":
  135. set player's tablist name to "%{rank::%player's uuid%}% &7%player%"
  136. if {rank::%player's uuid%} is "[DEFAULT]":
  137. set player's tablist name to "&7%player%"
  138.  
  139. on chat:
  140. if message contains "@everyone" or "@here" or "@moderator" or "@administrator" or "@developer" or "@senior moderator" or "@junior moderator" or "@builder" or "@building manager" or "@staff manager" or "@community manager":
  141. cancel event
  142. send "&cPlease don't ping people!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement