Advertisement
AurasPrivate

Protect | HC PvP

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