Oxalist

Untitled

Feb 26th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.53 KB | None | 0 0
  1. variables:
  2. {donator.used.%player%} = "False"
  3.  
  4. command /donator <player>:
  5. permission message: &8» &cYou do not have the right permission for that
  6. permission: donatorrank.give
  7. trigger:
  8. if arg 1 is set:
  9. Give arg 1 book named "&8» &6&lDONATOR &e[RIGHT CLICK]"
  10.  
  11. command /resetdonator:
  12. trigger:
  13. set {donator.used.%player%} to "False"
  14.  
  15.  
  16. on rightclick:
  17. if {donator.used.%player%} is "False":
  18. player is holding a book named "&8» &6&lDONATOR &e[RIGHT CLICK]"
  19. execute console command "/rank %player% donator"
  20. send "&8» &7You have just applied the &6&lDONATOR &7rank" to player
  21. remove 1 book named "&8» &6&lDONATOR &e[RIGHT CLICK]" from player
  22. set {donator.used.%player%} to "True"
  23. on rightclick:
  24. if {donator.used.%player%} is "True":
  25. player is holding a book named "&8» &6&lDONATOR &e[RIGHT CLICK]"
  26. cancel event
  27. send player title "&cError!" with subtitle "&8» &7You have already unlocked this rank" for 4 second
  28.  
  29. command /tablistrank [<text>] [<player>] [<text>]:
  30. permission message:&8» &cYou do not have permission for this command
  31. permission: tablist.rank
  32. trigger:
  33. if arg 1 is not set:
  34. if arg 2 is not set:
  35. if arg 3 is not set:
  36. message " &e&lTABLIST RANKS"
  37. message "&8• &e/tablistrank clear <player> &8» &7Clears a tablist rank"
  38. message "&8• &e/tablistrank clear <player> &8» &7Clears a tablist rank"
  39. message "&8• &e/tablistrank help &8» &7Shows this message"
  40. if arg 1 is "help":
  41. message " &e&lTABLIST RANKS"
  42. message "&8• &e/tablistrank clear <player> &8» &7Clears a tablist rank"
  43. message "&8• &e/tablistrank clear <player> &8» &7Clears a tablist rank"
  44. message "&8• &e/tablistrank help &8» &7Shows this message"
  45. if arg 1 is "set":
  46. if arg 2 is not set:
  47. message "&cSpecify a player!"
  48. if arg 2 is set:
  49. if arg 3 is not set:
  50. message "&cSpecify a rank"
  51. if arg 3 is set:
  52. message "&b&lSK &8» &fChanged &a%arg 2%'s &frank to &a%arg 3%"
  53. set {%arg 2%.rank} to "%arg 3%"
  54. if arg 1 is "clear":
  55. if arg 2 is not set:
  56. message "&cSpecify a player!"
  57. if arg 2 is set:
  58. set {%arg 2%.rank} to "default"
  59. message "&b&lSK &8» &fRemoved &a%arg 2%'s &frank!"
  60.  
  61. every second:
  62. loop all players:
  63. if {%loop-player%.rank} is "admin":
  64. set the loop-player's tablist name to "&8[&c&lADMIN&8] &f%name of loop-player% &8» &7Money: &e%balance of loop-player%"
  65. if {%loop-player%.rank} is "mod":
  66. set the loop-player's tablist name to "&e[MOD] &e%name of loop-player% &8» &7Money: &e%balance of loop-player%"
  67. if {%loop-player%.rank} is "jr.mod":
  68. set the loop-player's tablist name to "&e[JR.MOD] &e%name of loop-player% &8» &7Money: &e%balance of loop-player%"
  69. if {%loop-player%.rank} is "sr.mod":
  70. set the loop-player's tablist name to "&e[SR.MOD] &e%name of loop-player% &8» &7Money: &e%balance of loop-player%"
  71. if {%loop-player%.rank} is "builder":
  72. set the loop-player's tablist name to "&d[BUILDER] &d%name of loop-player% &8» &7Money: &e%balance of loop-player%"
  73. if {%loop-player%.rank} is "owner":
  74. set the loop-player's tablist name to "&a(%{level.%loop-player%}%✬) &c(&c&lOWNER&c) &c%name of loop-player%"
  75. if {%loop-player%.rank} is "manager":
  76. set the loop-player's tablist name to "&d[MANAGER] &D%name of loop-player% &8» &7Money: &e%balance of loop-player%"
  77. if {%loop-player%.rank} is "donator":
  78. set the loop-player's tablist name to "&6[DONATOR] &6%name of loop-player% &8» &7Money: &e%balance of loop-player%"
  79. if {%loop-player%.rank} is "default":
  80. set the loop-player's tablist name to "&a(%{level.%loop-player%}%✬) &7%name of loop-player%"
  81. if {%loop-player%.rank} is not set:
  82. set the loop-player's tablist name to "&a(%{level.%loop-player%}%✬) &7%name of loop-player%"
  83. wait 5 ticks
  84.  
  85. options:
  86. permission-ex: false
  87. group-manager: true
  88.  
  89. command /rank [<offlineplayer>] [<text>]:
  90. permission: rank.set
  91. permission message:&8» &cYou do not have permission for this command
  92. trigger:
  93. if arg-1 is not set:
  94. message "&8» &7Use &e/rank <player> <rank>"
  95. stop
  96. if arg-2 is not set:
  97. message "&8» &7Please specify a rank!"
  98. stop
  99. if arg-2 is set:
  100. if {@permission-ex} is true:
  101. execute console command "pex user %arg-1% group set %arg-2%"
  102. message "&8» &7Your rank has been updated to &e%arg-2%" to arg-1
  103. stop
  104. if {@group-manager} is true:
  105. execute console command "manuadd %arg-1% %arg-2%"
  106. execute console command "tablistrank set %arg-1% %arg-2%"
  107. message "&8» &7Your rank has been updated to &e%arg-2%!" to arg-1
  108. stop
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117. command /store:
  118. aliases: /buy, /shop, /webstore, /purchase, /ranks
  119. trigger:
  120. open chest with 3 row named "&8» &a&lDrop Store" to player
  121. play "block_note_pling" to player
  122. format slot 0 of player with gray glass pane named "" to be unstealable
  123. format slot 1 of player with gray glass pane named "" to be unstealable
  124. format slot 2 of player with gray glass pane named "" to be unstealable
  125. format slot 3 of player with gray glass pane named "" to be unstealable
  126. format slot 4 of player with gray glass pane named "" to be unstealable
  127. format slot 13 of player with chest named "&6&lDONATOR RANK &e(£5) &7(Click to purchase)" with lore "||&6Donator Perks:||&7||&8• &e/horse &8» &7With speed boost on the horse||&8• &e/vault &8» &7Access to more than 1 vault||&8• &e/daily &8» &7Daily rewards (1 day cooldown)||&8• &e/fly &8» &7Fly around spawn||&8• &eGlow &8» &7When you join you get the glow effect||&7||&6Donator Chat:||&7||&8• &eChat &8» &7Custom coloured prefix||&8• &eTablist &8» &7Display's rank on tablist||&7||&6Donator Planned Features:||&7||&8• &e[item] &8» &7Item your tools into chat||&8• &eCustom join message &8» &7Custom join message in chat||&8• &eMore free items on join &8» &7Self explanitory||&7" to close then run [player command "donatorpurchase"]
  128. format slot 5 of player with gray glass pane named "" to be unstealable
  129. format slot 6 of player with gray glass pane named "" to be unstealable
  130. format slot 7 of player with gray glass pane named "" to be unstealable
  131. format slot 8 of player with gray glass pane named "" to be unstealable
  132. format slot 18 of player with gray glass pane named "" to be unstealable
  133. format slot 19 of player with gray glass pane named "" to be unstealable
  134. format slot 20 of player with gray glass pane named "" to be unstealable
  135. format slot 21 of player with gray glass pane named "" to be unstealable
  136. format slot 22 of player with gray glass pane named "" to be unstealable
  137. format slot 23 of player with gray glass pane named "" to be unstealable
  138. format slot 24 of player with gray glass pane named "" to be unstealable
  139. format slot 25 of player with gray glass pane named "" to be unstealable
  140. format slot 26 of player with gray glass pane named "" to be unstealable
  141.  
  142. command /donatorpurchase:
  143. trigger:
  144. send ""
  145. json("%player%","&6&lCLICK THIS MESSAGE TO PURCHASE||url:www.paypal.me/nerosixteen/5||ttp:&8» &7Click this message to purchase the donator rank")
  146. send ""
  147. send "&8» &cDo not forget to:"
  148. send ""
  149. send "&8» &7Add a note"
  150. send "&8» &7And simply put your ingame name in the note section"
  151. send ""
  152. send "&4REFUNDS ARE NOT PERMITTED, AND YOUR ACCOUNT WILL BE BANNED"
Add Comment
Please, Sign In to add comment