Guest User

Untitled

a guest
Jun 26th, 2017
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.91 KB | None | 0 0
  1. script options:
  2. $ use permissions
  3.  
  4. on join:
  5. if {notify.enabled.%player%} is true:
  6. set {notify.enabled.%player%} to false
  7.  
  8. command /permission <text> <text> <text>:
  9. trigger:
  10. if arg 1 is "owner":
  11. if arg 2 is "add":
  12. if arg 3 is set:
  13. add arg 3 to {rank.owner}
  14. message "&7%arg 3% has been added to Group: %arg 1%"
  15.  
  16. command /rank <offline player> <text>:
  17. permission: "rank.set"
  18. permission message: &c&l!! &7This command is only available to &c[ADMIN]&7.
  19. trigger:
  20. if arg 1 is set:
  21. if arg 2 is "helper":
  22. set {rank.helper.%uuid of arg 1%} to true
  23. set {rank.moderator.%uuid of arg 1%} to false
  24. set {rank.admin.%uuid of arg 1%} to false
  25. set {rank.developer.%uuid of arg 1%} to false
  26. set {rank.owner.%uuid of arg 1%} to false
  27. set {rank.default.%uuid of arg 1%} to false
  28. set {rank.builder.%uuid of arg 1%} to false
  29. set {rank.headbuilder.%uuid of arg 1%} to false
  30. message "&b&l!! &7%arg 1%'s rank has been set to &d[HELPER]&7."
  31. message "&b&l!! &7Your rank has been set to &d[HELPER]&7." to arg 1
  32.  
  33. if arg 2 is "moderator":
  34. set {rank.helper.%uuid of arg 1%} to false
  35. set {rank.moderator.%uuid of arg 1%} to true
  36. set {rank.admin.%uuid of arg 1%} to false
  37. set {rank.developer.%uuid of arg 1%} to false
  38. set {rank.owner.%uuid of arg 1%} to false
  39. set {rank.default.%uuid of arg 1%} to false
  40. set {rank.builder.%uuid of arg 1%} to false
  41. set {rank.headbuilder.%uuid of arg 1%} to false
  42. message "&b&l!! &7%arg 1%'s rank has been set to &9[MODERATOR]&7."
  43. message "&b&l!! &7Your rank has been set to &9[MODERATOR]&7." to arg 1
  44.  
  45.  
  46. if arg 2 is "admin":
  47. set {rank.helper.%uuid of arg 1%} to false
  48. set {rank.moderator.%uuid of arg 1%} to false
  49. set {rank.admin.%uuid of arg 1%} to true
  50. set {rank.developer.%uuid of arg 1%} to false
  51. set {rank.owner.%uuid of arg 1%} to false
  52. set {rank.default.%uuid of arg 1%} to false
  53. set {rank.builder.%uuid of arg 1%} to false
  54. set {rank.headbuilder.%uuid of arg 1%} to false
  55. message "&b&l!! &7%arg 1%'s rank has been set to &c[ADMIN]&7."
  56. message "&b&l!! &7Your rank has been set to &c[ADMIN]&7." to arg 1
  57.  
  58. if arg 2 is "developer":
  59. set {rank.helper.%uuid of arg 1%} to false
  60. set {rank.moderator.%uuid of arg 1%} to false
  61. set {rank.admin.%uuid of arg 1%} to false
  62. set {rank.developer.%uuid of arg 1%} to true
  63. set {rank.owner.%uuid of arg 1%} to false
  64. set {rank.default.%uuid of arg 1%} to false
  65. set {rank.builder.%uuid of arg 1%} to false
  66. set {rank.headbuilder.%uuid of arg 1%} to false
  67. message "&b&l!! &7%arg 1%'s rank has been set to &3[DEVELOPER]&7."
  68. message "&b&l!! &7Your rank has been set to &3[DEVELOPER]&7." to arg 1
  69.  
  70. if arg 2 is "owner":
  71. set {rank.helper.%uuid of arg 1%} to false
  72. set {rank.moderator.%uuid of arg 1%} to false
  73. set {rank.admin.%uuid of arg 1%} to false
  74. set {rank.developer.%uuid of arg 1%} to false
  75. set {rank.owner.%uuid of arg 1%} to true
  76. set {rank.default.%uuid of arg 1%} to false
  77. set {rank.builder.%uuid of arg 1%} to false
  78. set {rank.headbuilder.%uuid of arg 1%} to false
  79. message "&b&l!! &7%arg 1%'s rank has been set to &a[OWNER]&7."
  80. message "&b&l!! &7Your rank has been set to &a[OWNER]&7." to arg 1
  81.  
  82. if arg 2 is "member":
  83. set {rank.helper.%uuid of arg 1%} to false
  84. set {rank.moderator.%uuid of arg 1%} to false
  85. set {rank.admin.%uuid of arg 1%} to false
  86. set {rank.developer.%uuid of arg 1%} to false
  87. set {rank.owner.%uuid of arg 1%} to false
  88. set {rank.default.%uuid of arg 1%} to true
  89. set {rank.builder.%uuid of arg 1%} to false
  90. set {rank.headbuilder.%uuid of arg 1%} to false
  91. message "&b&l!! &7%arg 1%'s rank has been set to &8[MEMBER]&7."
  92. message "&b&l!! &7Your rank has been set to &8[MEMBER]&7." to arg 1
  93.  
  94. if arg 2 is "builder":
  95. set {rank.helper.%uuid of arg 1%} to false
  96. set {rank.moderator.%uuid of arg 1%} to false
  97. set {rank.admin.%uuid of arg 1%} to false
  98. set {rank.developer.%uuid of arg 1%} to false
  99. set {rank.owner.%uuid of arg 1%} to false
  100. set {rank.default.%uuid of arg 1%} to false
  101. set {rank.builder.%uuid of arg 1%} to true
  102. set {rank.headbuilder.%uuid of arg 1%} to false
  103. message "&b&l!! &7%arg 1%'s rank has been set to &b[BUILDER]&7."
  104. message "&b&l!! &7Your rank has been set to &b[BUILDER]&7." to arg 1
  105.  
  106. if arg 2 is "headbuilder":
  107. set {rank.helper.%uuid of arg 1%} to false
  108. set {rank.moderator.%uuid of arg 1%} to false
  109. set {rank.admin.%uuid of arg 1%} to false
  110. set {rank.developer.%uuid of arg 1%} to false
  111. set {rank.owner.%uuid of arg 1%} to false
  112. set {rank.default.%uuid of arg 1%} to false
  113. set {rank.builder.%uuid of arg 1%} to false
  114. set {rank.headbuilder.%uuid of arg 1%} to true
  115. message "&b&l!! &7%arg 1%'s rank has been set to &b[HEADBUILDER]&7."
  116. message "&b&l!! &7Your rank has been set to &b[HEADBUILDER]&7." to arg 1
  117.  
  118.  
  119. on chat:
  120. if {rank.helper.%uuid of player%} is true:
  121. cancel event
  122. broadcast "&d[HELPER] &f%player% &f&l» &f%message%"
  123. if {rank.moderator.%uuid of player%} is true:
  124. cancel event
  125. broadcast "&9[MODERATOR] &f%player% &7&l» &f%message%"
  126. if {rank.admin.%uuid of player%} is true:
  127. cancel event
  128. broadcast "&c[ADMIN] &f%player% &7&l» &f%message%"
  129. if {rank.developer.%uuid of player%} is true:
  130. cancel event
  131. broadcast "&3[DEVELOPER] &f%player% &7&l» &f%message%"
  132. if {rank.owner.%uuid of player%} is true:
  133. cancel event
  134. broadcast "&a[OWNER] &f%player% &7&l» &f%message%"
  135. if {rank.builder.%uuid of player%} is true:
  136. cancel event
  137. broadcast "&b[BUILDER] &f%player% &7&l» &f%message%"
  138. if {rank.headbuilder.%uuid of player%} is true:
  139. cancel event
  140. broadcast "&b[HEADBUILDER] &f%player% &7&l» &f%message%"
  141. if {rank.default.%uuid of player%} is true:
  142. cancel event
  143. broadcast "&8[MEMBER] &f%player% &7&l» &f%message%"
Advertisement
Add Comment
Please, Sign In to add comment