Oxalist

Untitled

Feb 26th, 2018
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.66 KB | None | 0 0
  1. command /balance [<offlineplayer>]:
  2. aliases: /money, /cash, /bal, /coins, /tokens, /bread
  3. trigger:
  4. if arg 1 is not set:
  5. send "&8» &7Balance: &e%balance of player%"
  6. if arg 1 is set:
  7. send "&8» &7Balance of %arg 1%: &e%balance of arg 1%"
  8.  
  9.  
  10. options:
  11. # CONFIG
  12. PermissionActivated: true #Do you want to use a permission? So set it to true or to false if you don't want it
  13. Permission: donator.signs # Here you can set the permission when this PermissionActivated is set to true
  14.  
  15. ColorReplacer: "&"
  16.  
  17. on sign change:
  18. if {@PermissionActivated} is true:
  19. if player has permission "{@Permission}":
  20. replace all {@ColorReplacer} with "§" in line 1 of event-block
  21. replace all {@ColorReplacer} with "§" in line 2 of event-block
  22. replace all {@ColorReplacer} with "§" in line 3 of event-block
  23. replace all {@ColorReplacer} with "§" in line 4 of event-block
  24. else:
  25. replace all {@ColorReplacer} with "§" in line 1 of event-block
  26. replace all {@ColorReplacer} with "§" in line 2 of event-block
  27. replace all {@ColorReplacer} with "§" in line 3 of event-block
  28. replace all {@ColorReplacer} with "§" in line 4 of event-block
  29.  
  30. every second:
  31. loop all players:
  32. set the loop-player's food level to 10
  33.  
  34. command /level [<text>] [<offlineplayer>] [<number>]:
  35. permission: level.admin
  36. permission message: &8» &cYou do not have the right permission to use that command!
  37. trigger:
  38. if arg 1 is not set:
  39. if arg 2 is not set:
  40. if arg 3 is not set:
  41. send "&8» &7Your level is &e%{level.%player%}%"
  42. if arg 2 is set:
  43. if arg 3 is not set:
  44. if arg 1 is "check":
  45. send "&8» &7%arg 2%'s level is &e%{level.%arg 2%}%"
  46. if arg 2 is set:
  47. if arg 3 is set:
  48. if arg 1 is "add":
  49. add arg 3 to {level.%arg 2%}
  50. send "&8» &e%player% &7has added &e%arg 3% &7to your level" to arg 2
  51. send "&8» &7You have added &e%arg 3% &7to &e%arg 2%'s &7level" to player
  52. if arg 2 is set:
  53. if arg 3 is set:
  54. if arg 1 is "set":
  55. set {level.%arg 2%} to arg 3
  56. send "&8» &e%player% &7has set &e%arg 3% &7to your level" to arg 2
  57. send "&8» &7You have set &e%arg 2%'s &7level to &e%arg 3%" to player
  58. if arg 2 is set:
  59. if arg 3 is set:
  60. if arg 1 is "remove":
  61. remove arg 3 from {level.%arg 2%}
  62. send "&8» &e%player% &7has removed &e%arg 3% &7from your level" to arg 2
  63. send "&8» &7You have removed &e%arg 3% &7from &e%arg 2%'s &7level" to player
  64. if arg 2 is set:
  65. if arg 1 is "reset":
  66. set {level.%arg 2%} to 1
  67. send "&8» &e%player% &7has reset your level" to arg 2
  68. send "&8» &7You have reset &e%arg 2%'s &7level" to player
  69.  
  70.  
  71. command /exp [<text>] [<offlineplayer>] [<number>]:
  72. permission: exp.admin
  73. permission message: &8» &cYou do not have the right permission to use that command!
  74. trigger:
  75. if arg 2 is set:
  76. if arg 3 is set:
  77. if arg 1 is "add":
  78. add arg 3 to {exp.%arg 2%}
  79. send "&8» &e%player% &7has added &e%arg 3% &7to your exp" to arg 2
  80. send "&8» &7You have added &e%arg 3% &7to &e%arg 2%'s &7exp" to player
  81. if arg 2 is set:
  82. if arg 3 is set:
  83. if arg 1 is "set":
  84. set {exp.%arg 2%} to arg 3
  85. send "&8» &e%player% &7has set &e%arg 3% &7to your exp" to arg 2
  86. send "&8» &7You have set &e%arg 2%'s &7exp to &e%arg 3%" to player
  87. if arg 2 is set:
  88. if arg 3 is set:
  89. if arg 1 is "remove":
  90. remove arg 3 from {exp.%arg 2%}
  91. send "&8» &e%player% &7has removed &e%arg 3% &7from your exp" to arg 2
  92. send "&8» &7You have removed &e%arg 3% &7from &e%arg 2%'s &7exp" to player
  93. if arg 2 is set:
  94. if arg 1 is "reset":
  95. set {exp.%arg 2%} to 1
  96. send "&8» &e%player% &7has reset your exp" to arg 2
  97. send "&8» &7You have reset &e%arg 2%'s &7exp" to player
  98.  
  99. command /withdraw [<int>]:
  100. trigger:
  101. if arg 1 is set:
  102. if {coins.%player%} is less than 5:
  103. send "&8[&6&l❂&8] &eThe least you can withdraw is &65 coins"
  104. stop
  105. if arg 1 is less than 5:
  106. send "&8[&6&l❂&8] &eThe least you can withdraw is &65 coins"
  107. else:
  108. if player has enough space for 1 emerald:
  109. remove arg 1 from {coins.%player%}
  110. give player 1 emerald named "%arg 1%" with lore "&8[&6&l❂&8] &eThis is a physical Coin. To claim it||&8[&6&l❂&8] &esimply &6right-click &eand claim the coinscoins!||||&8[&6&l❂&8] &eWithdrawed by: &6%player%||&8[&6&l❂&8] &eAmount: &6%arg 1% coins."
  111. set {_coin} to "%arg 1%"
  112. message "&8[&6&l❂&8] &eYou have just withdrawn &6%arg 1% &ecoins"
  113. stop
  114.  
  115. on right click holding emerald:
  116. if lore of player's held item contains "coin":
  117. set {_coin} to "%arg 1%"
  118. add {_coin} to {coins.%player%}
  119. remove held item from player
  120. send player title "&6&lCOINS" with subtitle "&e&l+%{_coin}%" for 2 seconds
  121. stop
  122.  
  123. options:
  124. Title: &7 &6&lDROP &7
  125.  
  126. # The lines, you can use %{rank.%loop-player%}% for the users group, %balance of loop-player% for their balance, and %player% for their name.
  127. Line1: &7
  128. Line2: &b &6&lLEVEL: &e%{level.%loop-player%}%✬
  129. Line3: &d &6&lCOINS: &e%{coins.%loop-player%}%⛃
  130. Line4: &3
  131. Line5: &d &6&lNAME: &e%loop-player%
  132. Line6: &d &6&lRANK: &e%colored loop-player's prefix%
  133. Line7: &0
  134. Line8: &6 &6&lTUTORIAL: &e%{tutorial.%loop-player%}%
  135. Line9: &8
  136.  
  137. #ScoreBoard (You can add lines)
  138. every second:
  139. loop all players:
  140. wipe loop-player's sidebar
  141. set name of sidebar of loop-player to "{@Title}"
  142. set score "{@Line1}" in sidebar of loop-player to 9
  143. set score "{@Line2}" in sidebar of loop-player to 8
  144. set score "{@Line3}" in sidebar of loop-player to 7
  145. set score "{@Line4}" in sidebar of loop-player to 6
  146. set score "{@Line5}" in sidebar of loop-player to 5
  147. set score "{@Line6}" in sidebar of loop-player to 4
  148. set score "{@Line7}" in sidebar of loop-player to 3
  149. set score "{@Line8}" in sidebar of loop-player to 2
  150. set score "{@Line9}" in sidebar of loop-player to 1
  151.  
  152. command /set [<text>] [<text>] [<number>]:
  153. trigger:
  154. if arg 1 is not set:
  155. if arg 2 is not set:
  156. send "&8[&6&l❂&8] &e/set <warp/tutorial> <name> [<number>]"
  157. if arg 1 is set:
  158. if arg 2 is not set:
  159. send "&8[&6&l❂&8] &e/set <warp/tutorial> <name> [<number>]"
  160. if arg 1 is "warp":
  161. if arg 2 is set:
  162. send "&8[&6&l❂&8] &eSet warp &6%arg 2%"
  163. set {%arg 2%} to location of the player
  164. if arg 1 is "tutorial":
  165. if arg 3 is set:
  166. send "&8[&6&l❂&8] &eSet tutorial location &6%arg 3%" to player
  167. set {tutorial%arg 3%} to location of the player
  168.  
  169. command /warp [<text>] [<player>]:
  170. trigger:
  171. if arg 1 is not set:
  172. if arg 2 is not set:
  173. send "&8[&6&l❂&8] &e/warp <warp> [<player>]"
  174. if arg 1 is set:
  175. if arg 2 is not set:
  176. teleport player to {%arg 1%}
  177. send "&8[&6&l❂&8] &eTeleported to warp &6%arg 1%"
  178. if arg 1 is set:
  179. if arg 2 is set:
  180. teleport arg 2 to {%arg 1%}
  181. send "&8[&6&l❂&8] &eYou teleported %arg 2% to warp &6%arg 1%"
  182. send "&8[&6&l❂&8] &6%player% &eteleported you to &6%arg 1%" to arg 2
  183.  
  184. command /warps:
  185. trigger:
  186. open chest with 3 rows named "&7 &0&nPlayer Warps" to player
  187. if player has permission "warp.mine":
  188. format slot 10 of player with emerald named "&6&lMINE &7(Click to warp)" with lore "||&8» &7Click to warp to the mine||&7||&8» &a&lUNLOCKED" to close then run [player command "warp mine"]
  189. if player does not have permission "warp.mine":
  190. format slot 10 of player with emerald named "&6&lMINE &7(Click to warp)" with lore "||&8» &7Click to warp to the mine||&7||&8» &c&lLOCKED" to be unstealable
  191. if player has permission "warp.spawn":
  192. format slot 11 of player with emerald named "&6&lSPAWN &7(Click to warp)" with lore "||&8» &7Click to warp to the spawn||&7||&8» &a&lUNLOCKED" to close then run [player command "warp spawn"]
  193. if player does not have permission "warp.spawn":
  194. format slot 11 of player with emerald named "&6&lSPAWN &7(Click to warp)" with lore "||&8» &7Click to warp to the spawn||&7||&8» &c&lLOCKED" to be unstealable
  195.  
  196. command /compressor:
  197. trigger:
  198. open chest with 3 rows named "&7 &0&nCompressor" to player
  199. format slot 10 of player with coal named "&8&lCOAL &7(Click to compress)" with lore "||&8» &7Click to compress your coal ||&7" to close then run [player command "compresscoal"]
  200. format slot 11 of player with iron ingot named "&f&lIRON &7(Click to compress)" with lore "||&8» &7Click to compress your iron ||&7" to close then run [player command "compressiron"]
  201.  
  202.  
  203. command /compresscoal:
  204. trigger:
  205. while amount of coal ore in player's inventory is less than 1:
  206. send "&8[&6&l❂&8] &eYou need to get some coal ore to compress" to player
  207. stop
  208. while amount of coal ore in player's inventory is bigger than 0:
  209. remove 1 coal ore from player's inventory
  210. add 1 to {coal}
  211. send player title "&6&lCOMPRESSED" with subtitle "&eSold for &6%{coal}%⛃" for 2 seconds
  212. add {coal} to {coins.%player%}
  213. set {coal} to 0
  214. stop
  215.  
  216. command /compressiron:
  217. trigger:
  218. while amount of iron ore in player's inventory is less than 1:
  219. send "&8[&6&l❂&8] &eYou need to get some iron ore to compress" to player
  220. stop
  221. while amount of iron ore in player's inventory is bigger than 0:
  222. remove 1 iron ore from player's inventory
  223. add 1 to {iron}
  224. send player title "&6&lCOMPRESSED" with subtitle "&eSold for &6%{iron}%⛃" for 2 seconds
  225. add {iron} to {coins.%player%}
  226. set {iron} to 0
  227. stop
  228.  
  229. command /bypass [<player>]:
  230. permission: admin.bypass
  231. permission message: &8[&6&l❂&8] &eNo permission
  232. trigger:
  233. if arg 1 is not set:
  234. if {bypass.%player%} is "False":
  235. set {bypass.%player%} to "True"
  236. send "&8[&6&l❂&8] &eYou have entered bypass mode"
  237. stop
  238. if {bypass.%player%} is "True":
  239. set {bypass.%player%} to "False"
  240. send "&8[&6&l❂&8] &eYou have left bypass mode"
  241. if arg 1 is set:
  242. if {bypass.%arg 1%} is "False":
  243. set {bypass.%arg 1%} to "True"
  244. send "&8[&6&l❂&8] &eYou have forced &6%arg 1% &eto enter bypass mode"
  245. send "&8[&6&l❂&8] &6%player% &eforced you to enter bypass mode" to arg 1
  246. stop
  247. if {bypass.%arg 1%} is "True":
  248. set {bypass.%arg 1%} to "False"
  249. send "&8[&6&l❂&8] &eYou have forced &6%arg 1% &eto leave bypass mode"
  250. send "&8[&6&l❂&8] &6%player% &eforced you to leave bypass mode" to arg 1
  251.  
  252. on break:
  253. if {bypass.%player%} is "False":
  254. if event-block is coal ore or iron ore:
  255. stop
  256. if event-block is not coal ore or iron ore:
  257. cancel event
  258. send "&8[&6&l❂&8] &eYou cant break this type of block"
  259.  
  260. on drop:
  261. if {bypass.%player%} is "False":
  262. cancel event
  263.  
  264. on damage:
  265. if {bypass.%attacker%} is "False":
  266. cancel event
  267. send "&8[&6&l❂&8] &eYou cant pvp in this area" to attacker
  268.  
  269. on break:
  270. if name of player's tool is "&6&lSTARTER PICKAXE":
  271. set the 1st line of lore of player's tool to "&7"
  272. set the 2nd line of lore of player's tool to "&8[&6&l❂&8] &eXP: %{exp.%player%}%"
  273. set the 3rd line of lore of player's tool to "&8[&6&l❂&8] &eLEVEL: %{level.%player%}%"
  274. set the 4th line of lore of player's tool to "&8[&6&l❂&8] &eCOINS: %balance of player%⛃"
  275.  
  276. on join:
  277. set {bypass.%player%} to "False"
  278. set {none.teleport.%player%} to "True"
  279. on first join:
  280. set slot 0 of player's inventory to diamond pickaxe named "&6&lSTARTER PICKAXE"
  281. set {bypass.%player%} to "False"
  282. set {Joined.%player%} to true
  283.  
  284. on break of coal ore:
  285. cancel event
  286. chance of 20%:
  287. give 1 coal ore to player
  288. set action bar of player to "&eYou got lucky and got an extra &6coal ore"
  289. set block to stone
  290. add 1 to {exp.%player%}
  291. give 1 coal ore to player
  292. wait 3 seconds
  293. set block to coal ore
  294.  
  295. on break of iron ore:
  296. cancel event
  297. chance of 20%:
  298. give 1 iron ore to player
  299. set action bar of player to "&eYou got lucky and got an extra &6iron ore"
  300. set block to stone
  301. add 2 to {exp.%player%}
  302. give 1 iron ore to player
  303. wait 3 seconds
  304. set block to iron ore
  305.  
  306. on rightclick with compass:
  307. if {druglore.teleport.%player%} is "True":
  308. teleport player to {druglore}
  309. send "&8[&6&l❂&8] &eTeleported you to the &6Drug Lord Bob"
  310. if {miner.teleport.%player%} is "True":
  311. teleport player to {miner}
  312. send "&8[&6&l❂&8] &eTeleported you to &6Miner Mike"
  313.  
  314. on leftclick with compass:
  315. if {none.teleport.%player%} is "True":
  316. set {druglord.teleport.%player%} to "True"
  317. set {none.teleport.%player%} to "False"
  318. send "&8[&6&l❂&8] &eCompass changed to the &6Drug Lord Bob"
  319. if {druglord.teleport.%player%} is "True":
  320. set {druglord.teleport.%player%} to "False"
  321. set {miner.teleport.%player%} to "True"
  322. send "&8[&6&l❂&8] &eCompass changed to the &6Miner Mike"
  323. if {miner.teleport.%player%} is "True":
  324. set {miner.teleport.%player%} to "False"
  325. set {none.teleport.%player%} to "True"
  326. send "&8[&6&l❂&8] &eCompass changed to &6Nothing"
  327.  
  328. command /resetcompass:
  329. trigger:
  330. set {none.teleport.%player%} to "True"
Advertisement
Add Comment
Please, Sign In to add comment