Advertisement
AurasPrivate

Untitled

Sep 9th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.26 KB | None | 0 0
  1. command /rank [<offline player>] [<text>]:
  2. permission: avierns.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 "&4Manager" with lore "||&rRemove all permissions and change||&rrank to manager." to close then run [make player execute "¶rank %arg-1% manager"]
  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 "&aBuild Team" 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 "manager":
  25. make player execute "¶rank %arg-1% manager"
  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 {rating.%player's uuid%} to 0
  46. set {kills.%player's uuid%} to 0
  47. set {deaths.%player's uuid%} to 0
  48. set {coins.%player's uuid%} to 100
  49. set {faction.%player's uuid%} to "&c*"
  50. make console execute "¶rank %player% user"
  51.  
  52. on chat:
  53. cancel event
  54. set tab list name of player to "%{rank.%player's uuid%}%%player%"
  55. broadcast "&7[%{faction.%player's uuid%}%&7] %{rank.%player's uuid%}%%player% &7%message%"
  56.  
  57. command /avierns:sidebar:
  58. trigger:
  59. stop
  60.  
  61. command /¶rank [<offline player>] [<text>]:
  62. permission: avierns.rank
  63. permission message: &cYou don't have permission to execute this command!
  64. trigger:
  65. if arg-1 is set:
  66. if arg-2 is set:
  67. if arg-2 is "admin":
  68. set {displayrank.%arg-1's uuid%} to "&rAdmin"
  69. set {rank.%arg-1's uuid%} to "&7[&cAdmin&7] &c"
  70. set {staffuser.%arg-1's uuid%} to true
  71. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  72. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rAdministrator" to player
  73. message "&7[&b&l*&7] Rank updated to &rAdministrator" to arg-1
  74. make arg-1 execute "avierns:sidebar"
  75. if arg-2 is "manager":
  76. set {displayrank.%arg-1's uuid%} to "&rManager"
  77. set {rank.%arg-1's uuid%} to "&7[&4Manager&7] &4"
  78. set {staffuser.%arg-1's uuid%} to true
  79. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  80. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rManager" to player
  81. message "&7[&b&l*&7] Rank updated to &rManager" to arg-1
  82. make arg-1 execute "avierns:sidebar"
  83. if arg-2 is "owner":
  84. set {displayrank.%arg-1's uuid%} to "&rOwner"
  85. set {rank.%arg-1's uuid%} to "&7[&4Owner&7] &4"
  86. set {staffuser.%arg-1's uuid%} to true
  87. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  88. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rOwner" to player
  89. message "&7[&b&l*&7] Rank updated to &rOwner" to arg-1
  90. make arg-1 execute "avierns:sidebar"
  91. if arg-2 is "mod+":
  92. set {displayrank.%arg-1's uuid%} to "&rMod+"
  93. set {rank.%arg-1's uuid%} to "&7[&63Mod+&7] &3"
  94. set {staffuser.%arg-1's uuid%} to true
  95. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  96. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rSenior Mod" to player
  97. message "&7[&b&l*&7] Rank updated to &rSenior Mod" to arg-1
  98. make arg-1 execute "avierns:sidebar"
  99. if arg-2 is "mod":
  100. set {displayrank.%arg-1's uuid%} to "&rMod"
  101. set {rank.%arg-1's uuid%} to "&7[&5Mod&7] &e"
  102. set {staffuser.%arg-1's uuid%} to true
  103. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  104. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rMod" to player
  105. message "&7[&b&l*&7] Rank updated to &rMod" to arg-1
  106. make arg-1 execute "avierns:sidebar"
  107. if arg-2 is "tmod":
  108. set {displayrank.%arg-1's uuid%} to "&rTrial Mod"
  109. set {rank.%arg-1's uuid%} to "&7[&dTrial-Mod&7] &d"
  110. set {staffuser.%arg-1's uuid%} to true
  111. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  112. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rTrial Mod" to player
  113. message "&7[&b&l*&7] Rank updated to &rTrial Mod" to arg-1
  114. make arg-1 execute "avierns:sidebar"
  115. if arg-2 is "builder":
  116. set {displayrank.%arg-1's uuid%} to "&rBuilder"
  117. set {rank.%arg-1's uuid%} to "&7[&bBuilder&7] &b"
  118. set {staffuser.%arg-1's uuid%} to true
  119. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  120. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rBuilder" to player
  121. message "&7[&b&l*&7] Rank updated to &rBuilder" to arg-1
  122. make arg-1 execute "avierns:sidebar"
  123. if arg-2 is "user":
  124. set {displayrank.%arg-1's uuid%} to "&rNone"
  125. set {rank.%arg-1's uuid%} to "&7"
  126. set {staffuser.%arg-1's uuid%} to true
  127. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  128. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rUser" to player
  129. message "&7[&b&l*&7] Rank updated to &rUser" to arg-1
  130. make arg-1 execute "avierns:sidebar"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement