Advertisement
AurasPrivate

Untitled

Sep 21st, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.64 KB | None | 0 0
  1. command /rank [<offline player>] [<text>]:
  2. permission: server.rank
  3. permission message: &cYou don't have permission to execute this command!
  4. trigger:
  5. if arg-1 is set:
  6. if arg-2 isn't set:
  7. open chest with 5 rows named "&8Rank Selection (&n%arg-1%)" to player
  8.  
  9. format slot 4 of player with arg-1's skull named "&3&lModifying %arg-1%" with lore "||&bCurrent Rank||&r &r● &r%{shortrank.%arg-1's uuid%}%" to be unstealable
  10.  
  11. format slot 19 of player with book and quill named "&3&lRanks" with lore "" to be unstealable
  12. format slot 19 of player with book named "&4Owner" with lore "||&rRemove all permissions and change||&rrank to owner." to close then run [make player execute "¶rank %arg-1% owner"]
  13. format slot 20 of player with book named "&4Developer" with lore "||&rRemove all permissions and change||&rrank to developer." to close then run [make player execute "¶rank %arg-1% developer"]
  14. format slot 21 of player with book named "&cAdmin" with lore "||&rRemove all permissions and change||&rrank to administrator." to close then run [make player execute "¶rank %arg-1% admin"]
  15. format slot 22 of player with book named "&3Mod+" with lore "||&rRemove all permissions and change||&rrank to moderator plus." to close then run [make player execute "¶rank %arg-1% mod+"]
  16. format slot 23 of player with book named "&dMod" with lore "||&rRemove all permissions and change||&rrank to moderator." to close then run [make player execute "¶rank %arg-1% mod"]
  17. format slot 24 of player with book named "&dTrial Mod" with lore "||&rRemove all permissions and change||&rrank to trial moderator." to close then run [make player execute "¶rank %arg-1% tmod"]
  18. format slot 25 of player with book named "&bBuilder" with lore "||&rRemove all permissions and change||&rrank to builder." to close then run [make player execute "¶rank %arg-1% builder"]
  19. format slot 40 of player with book named "&7User" with lore "||&rRemove all permissions and change||&rrank to user." to close then run [make player execute "¶rank %player% user"]
  20.  
  21. if arg-2 is set:
  22. if arg-2 is "owner":
  23. make player execute "¶rank %arg-1% owner"
  24. if arg-2 is "developer" or "dev":
  25. make player execute "¶rank %arg-1% developer"
  26. if arg-2 is "admin":
  27. make player execute "¶rank %arg-1% admin"
  28. if arg-2 is "mod+", "modplus" or "modp":
  29. make player execute "¶rank %arg-1% mod+"
  30. if arg-2 is "mod":
  31. make player execute "¶rank %arg-1% mod"
  32. if arg-2 is "trialmod", "trial-mod" or "tmod":
  33. make player execute "¶rank %arg-1% tmod"
  34. if arg-2 is "buildteam","bt" or "builder":
  35. make player execute "¶rank %arg-1% builder"
  36. if arg-2 is "user", "member", "none" or "reset":
  37. make player execute "¶rank %arg-1% user"
  38.  
  39.  
  40. else if arg-1 isn't set:
  41. message "&cIncorrect Usage Format: <Required> [Optional]"
  42. message "&cIncorrect usage, &n/rank <player> [rank]"
  43.  
  44. on first join:
  45. set {balance.%player's uuid%} to 100
  46. make console execute "¶rank %player% user"
  47.  
  48. on chat:
  49. cancel event
  50. set tab list name of player to "%{rank.%player's uuid%}%%player%"
  51. broadcast "%{rank.%player's uuid%}%%player% &7%message%"
  52.  
  53. command /server:sidebar:
  54. trigger:
  55. stop
  56.  
  57. command /¶rank [<offline player>] [<text>]:
  58. permission: server.rank
  59. permission message: &cYou don't have permission to execute this command!
  60. trigger:
  61. if arg-1 is set:
  62. if arg-2 is set:
  63. if arg-2 is "admin":
  64. set {displayrank.%arg-1's uuid%} to "&rAdmin"
  65. set {rank.%arg-1's uuid%} to "&7[&cAdmin&7] &c"
  66. set {staffuser.%arg-1's uuid%} to true
  67. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  68. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rAdministrator" to player
  69. message "&7[&b&l*&7] Rank updated to &rAdministrator" to arg-1
  70. make arg-1 execute "server:sidebar"
  71. if arg-2 is "developer":
  72. set {displayrank.%arg-1's uuid%} to "&rDeveloper"
  73. set {rank.%arg-1's uuid%} to "&7[&4Developer&7] &4"
  74. set {staffuser.%arg-1's uuid%} to true
  75. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  76. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rDeveloper" to player
  77. message "&7[&b&l*&7] Rank updated to &rDeveloper" to arg-1
  78. make arg-1 execute "server:sidebar"
  79. if arg-2 is "owner":
  80. set {displayrank.%arg-1's uuid%} to "&rOwner"
  81. set {rank.%arg-1's uuid%} to "&7[&4Owner&7] &4"
  82. set {staffuser.%arg-1's uuid%} to true
  83. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  84. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rOwner" to player
  85. message "&7[&b&l*&7] Rank updated to &rOwner" to arg-1
  86. make arg-1 execute "server:sidebar"
  87. if arg-2 is "mod+":
  88. set {displayrank.%arg-1's uuid%} to "&rMod+"
  89. set {rank.%arg-1's uuid%} to "&7[&3Mod+&7] &3"
  90. set {staffuser.%arg-1's uuid%} to true
  91. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  92. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rMod Plus" to player
  93. message "&7[&b&l*&7] Rank updated to &rMod Plus" to arg-1
  94. make arg-1 execute "server:sidebar"
  95. if arg-2 is "mod":
  96. set {displayrank.%arg-1's uuid%} to "&rMod"
  97. set {rank.%arg-1's uuid%} to "&7[&5Mod&7] &5"
  98. set {staffuser.%arg-1's uuid%} to true
  99. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  100. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rMod" to player
  101. message "&7[&b&l*&7] Rank updated to &rMod" to arg-1
  102. make arg-1 execute "server:sidebar"
  103. if arg-2 is "tmod":
  104. set {displayrank.%arg-1's uuid%} to "&rTrial Mod"
  105. set {rank.%arg-1's uuid%} to "&7[&dTrial-Mod&7] &d"
  106. set {staffuser.%arg-1's uuid%} to true
  107. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  108. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rTrial Mod" to player
  109. message "&7[&b&l*&7] Rank updated to &rTrial Mod" to arg-1
  110. make arg-1 execute "server:sidebar"
  111. if arg-2 is "builder":
  112. set {displayrank.%arg-1's uuid%} to "&rBuilder"
  113. set {rank.%arg-1's uuid%} to "&7[&bBuilder&7] &b"
  114. set {staffuser.%arg-1's uuid%} to true
  115. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  116. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rBuilder" to player
  117. message "&7[&b&l*&7] Rank updated to &rBuilder" to arg-1
  118. make arg-1 execute "server:sidebar"
  119. if arg-2 is "warden":
  120. set {displayrank.%arg-1's uuid%} to "&rWarden"
  121. set {rank.%arg-1's uuid%} to "&7[&3Warden&7] &3"
  122. set {staffuser.%arg-1's uuid%} to false
  123. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  124. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rWarden" to player
  125. message "&7[&b&l*&7] Rank updated to &rWarden" to arg-1
  126. make arg-1 execute "server:sidebar"
  127. if arg-2 is "user":
  128. set {displayrank.%arg-1's uuid%} to "&rNone"
  129. set {rank.%arg-1's uuid%} to "&7"
  130. set {staffuser.%arg-1's uuid%} to false
  131. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  132. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rUser" to player
  133. message "&7[&b&l*&7] Rank updated to &rUser" to arg-1
  134. make arg-1 execute "server:sidebar"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement