Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 199.61 KB | None | 0 0
  1. options:
  2. prefix: %{sw+.config::prefix}%
  3. coins_by_kill: 4
  4. coins_by_win: 25
  5. JoinItem: diamond sword
  6. JoinItemName: &aLet's play a Game! &7(Right-Click)
  7. AbilitiesItem: book
  8. AbilitiesItemName: &eSkyWars Abilities! &7(Right-Click)
  9. StatsItem: paper
  10. StatsItemName: &cSkyWars Stats! &7(Right-Click)
  11. KitsItem: book
  12. KitsItemName: %{sw+.config::kits_item_name}%
  13. KitsVIPItem: enchanted book
  14. KitsVIPItemName: %{sw+.config::vipkits_item_name}%
  15. LeaveItem: redstone
  16. LeaveItemName: %{sw+.config::leave_item_name}%
  17.  
  18. on join:
  19. clear {skywars::pos::%uuid of player%::1}
  20. clear {skywars::pos::%uuid of player%::2}
  21. set {sw::%player%::lobby} to false
  22. set {sw::%player%::ingame} to false
  23. set {spectator::%player%} to false
  24. clear {joinquit::%player%}
  25. remove player from {sw.players.%{sw.%player%.arena}%::*}
  26. if {sw::kills::%player%} is not set:
  27. set {sw::kills::%player%} to 0
  28. if {sw::deaths::%player%} is not set:
  29. set {sw::deaths::%player%} to 0
  30. if {sw::playedgames::%player%} is not set:
  31. set {sw::playedgames::%player%} to 0
  32. if {sw::wins::%player%} is not set:
  33. set {sw::wins::%player%} to 0
  34. if {sw.coins::%player%} is not set:
  35. set {sw.coins::%player%} to 0
  36.  
  37. on quit:
  38. remove player from {sw.players.%{sw.%player%.arena}%::*}
  39.  
  40. on join:
  41. if {SkyWars+.player.%uuid of player%.swords.level} is not set:
  42. set {SkyWars+.player.%uuid of player%.swords.level} to 0
  43. if {SkyWars+.player.%uuid of player%.vampire.level} is not set:
  44. set {SkyWars+.player.%uuid of player%.vampire.level} to 0
  45. if {SkyWars+.player.%uuid of player%.protection.level} is not set:
  46. set {SkyWars+.player.%uuid of player%.protection.level} to 0
  47. if {SkyWars+.player.%uuid of player%.triple.level} is not set:
  48. set {SkyWars+.player.%uuid of player%.triple.level} to 0
  49. if {SkyWars+.player.%uuid of player%.mining.level} is not set:
  50. set {SkyWars+.player.%uuid of player%.mining.level} to 0
  51. if {SkyWars+.player.%uuid of player%.adrenaline.level} is not set:
  52. set {SkyWars+.player.%uuid of player%.adrenaline.level} to 0
  53.  
  54. on join:
  55. wait 1 tick
  56. clear player's inventory
  57. set slot 0 of player's inventory to {@JoinItem} named "{@JoinItemName}"
  58. set slot 1 of player's inventory to {@AbilitiesItem} named "{@AbilitiesItemName}"
  59. set slot 8 of player's inventory to {@StatsItem} named "{@StatsItemName}"
  60.  
  61. on load:
  62. send "&6" to console
  63. send "&9&l---------------------------" to console
  64. send "&c&lSkyWars&6&l+&7:" to console
  65. send "&a&lPlugin SkyWars &bcreated by SrFox3999" to console
  66. send "&9&l---------------------------" to console
  67. send "&6" to console
  68.  
  69. on load:
  70. if folder "plugins/SkyWars+" doesn't exists:
  71. create folder "plugins/SkyWars+"
  72. if file "plugins/SkyWars+/config.yml" doesn't exists:
  73. create file "plugins/SkyWars+/config.yml"
  74. wf " " to "plugins/SkyWars+/config.yml"
  75. wf " ## SkyWars+ - Config (Lobby Included) ##" to "plugins/SkyWars+/config.yml"
  76. wf " " to "plugins/SkyWars+/config.yml"
  77. wf "prefix: '&a&lSKYWARS &9&l>'" to "plugins/SkyWars+/config.yml"
  78. wf "bedrock-teleporter-ingame: true" to "plugins/Chat+/config.yml"
  79. wf "join_matches_lobby_item_name: '&aLet's play a Game! &7(Right-Click)'" to "plugins/SkyWars+/config.yml"
  80. wf "abilities_lobby_item_name: '&eSkyWars Abilities! &7(Right-Click)'" to "plugins/SkyWars+/config.yml"
  81. wf "stats_lobby_item_name: &cSkyWars Stats! &7(Right-Click)" to "plugins/SkyWars+/config.yml"
  82. wf " " to "plugins/SkyWars+/config.yml"
  83. wf " ## SkyWars+ - InGame Config ##" to "plugins/SkyWars+/config.yml"
  84. wf " " to "plugins/SkyWars+/config.yml"
  85. wf "kits_item_name: '&6&lKits'" to "plugins/SkyWars+/config.yml"
  86. wf "vipkits_item_name: '&5&lVIP &6&lKits'" to "plugins/SkyWars+/config.yml"
  87. wf "leave_item_name: '&4&lLeave'" to "plugins/SkyWars+/config.yml"
  88. set {sw+.config::prefix} to coloured value "prefix" get of "plugins/SkyWars+/config.yml"
  89. set {sw+.config::coins_by_kill} to coloured value "coins_by_kill" get of "plugins/SkyWars+/config.yml"
  90. set {sw+.config::coins_by_win} to coloured value "coins_by_win" get of "plugins/SkyWars+/config.yml"
  91. set {sw+.config::coins_by_win} to coloured value "coins_by_win" get of "plugins/SkyWars+/config.yml"
  92. set {sw+.config::kits_item_name} to coloured value "kits_item_name" get of "plugins/SkyWars+/config.yml"
  93. set {sw+.config::vipkits_item_name} to coloured value "vipkits_item_name" get of "plugins/SkyWars+/config.yml"
  94. set {sw+.config::leave_item_name} to coloured value "leave_item_name" get of "plugins/SkyWars+/config.yml"
  95. set {sw+.config::jmlin} to coloured value "join_matches_lobby_item_name" get of "plugins/SkyWars+/config.yml"
  96. set {sw+.config::alin} to coloured value "abilities_lobby_item_name" get of "plugins/SkyWars+/config.yml"
  97. set {sw+.config::slin} to coloured value "stats_lobby_item_name" get of "plugins/SkyWars+/config.yml"
  98. set {sw+.config::btp} to coloured value "bedrock-teleporter-ingame" get of "plugins/Chat+/config.yml"
  99.  
  100. on load:
  101. if file "plugins/SkyWars+/chestitems.yml" doesn't exists:
  102. create file "plugins/SkyWars+/chestitems.yml"
  103. wf "##Middle chests is trapped chest item!" to "plugins/SkyWars+/chestitems.yml"
  104. set "tier1.5 5" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  105. set "tier1.2 cobweb" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  106. set "tier1.1 arrow" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  107. set "tier1.1 apple" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  108. set "tier2.3 snowball" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  109. set "tier2.1 bow" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  110. set "tier2.1 steak" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  111. set "tier2.1 stone axe" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  112. set "tier3.1 iron ingot" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  113. set "tier3.3 arrow" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  114. set "tier3.1 bow" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  115. set "tier3.1 lava bucket" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  116. set "tier4.1 golden apple" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  117. set "tier4.1 iron axe" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  118. set "tier4.2 diamond" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  119. set "tier4.1 diamond sword" to "*" in yaml file "plugins/SkyWars+/chestitems.yml"
  120.  
  121.  
  122. command /skywars [<text>] [<text>] [<text>] [<number>]:
  123. aliases: /sw, /osw, /SkyWars+
  124. trigger:
  125. if arg 1 is "create":
  126. if player has permission "SkyWars+.admin":
  127. if arg 2 is set:
  128. if {sw.arena::%arg 2%} is not set:
  129. if {skywars::pos::%uuid of player%::1} is set:
  130. if {skywars::pos::%uuid of player%::2} is set:
  131. set {skywars::arena::%arg 2%::pos1} to {skywars::pos::%uuid of player%::1}
  132. set {skywars::arena::%arg 2%::pos2} to {skywars::pos::%uuid of player%::2}
  133. set {sw.arena::%arg 2%} to true
  134. set {start.arena::%arg 2%} to true
  135. set {skywars::arena::%arg 2%} to 0
  136. add arg 2 to {skywars::liste::*}
  137. set {maxarena::%arg 2%} to 2
  138. set {min.arena::%arg 2%} to 2
  139. send "{@prefix}&7 Arena created:&6 %arg 2%" #
  140. clear {pos.%uuid of player%.1}
  141. clear {pos.%uuid of player%.2}
  142. wait 1 seconds
  143. set {sw.status::%arg 2%} to "&aWaiting..."
  144. invoke "schematic-guarad" from arg-2
  145. clear {pos.%uuid of player%.1}
  146. clear {pos.%uuid of player%.2}
  147. else:
  148. send "{@prefix}&c Please select the arena./sw wand" #
  149. else:
  150. send "{@prefix}&c Please select the arena. /sw wand" #
  151. else:
  152. send "{@prefix}&c There is already such an arena." #
  153. else:
  154. send "{@prefix}&c Please put the name of the arena." #
  155. else:
  156. send "{@prefix}&c You don't have permission to do this!" #
  157. else if arg 1 is "debug":
  158. if arg 2 is set:
  159. set {sw.status::%arg 2%} to "&aWaiting..."
  160. clear {sw.players.%arg 2%::*}
  161. set {start.arena::%arg 2%} to true
  162. send "{@prefix} &aArena %arg 2% restarted!"
  163. else if arg 1 is "reload":
  164. if player has permission "SkyWars+.admin":
  165. send "{@prefix} &eReloading SkyWars.sk..."
  166. make console execute command "/sk reload SkyWars"
  167. send "{@prefix} &aServer Reloaded"
  168. else if arg 1 is "top":
  169. set {_1st.point} to 0
  170. set {_2nd.point} to 0
  171. set {_3rd.point} to 0
  172. set {_4th.point} to 0
  173. set {_5th.point} to 0
  174. loop {sw::wins::*}:
  175. if loop-value is more than {_1st.point}:
  176. set {_5th} to {_4tlmg}
  177. set {_5th.point} to {_4th.point}
  178. set {_4tlmg} to {_3rd}
  179. set {_4th.point} to {_3rd.point}
  180. set {_3rd} to {_2nd}
  181. set {_3rd.point} to {_2nd.point}
  182. set {_2nd} to {_1st}
  183. set {_2nd.point} to {_1st.point}
  184. set {_1st} to loop-index
  185. set {_1st.point} to loop-value
  186. else if loop-value is more than {_2nd.point}:
  187. set {_5th} to {_4tlmg}
  188. set {_5th.point} to {_4th.point}
  189. set {_4tlmg} to {_3rd}
  190. set {_4th.point} to {_3rd.point}
  191. set {_3rd} to {_2nd}
  192. set {_3rd.point} to {_2nd.point}
  193. set {_2nd} to loop-index
  194. set {_2nd.point} to loop-value
  195. else if loop-value is more than {_3rd.point}:
  196. set {_5th} to {_4tlmg}
  197. set {_5th.point} to {_4th.point}
  198. set {_4tlmg} to {_3rd}
  199. set {_4th.point} to {_3rd.point}
  200. set {_3rd} to loop-index
  201. set {_3rd.point} to loop-value
  202. else if loop-value is more than {_4th.point}:
  203. set {_5th} to {_4tlmg}
  204. set {_5th.point} to {_4th.point}
  205. set {_4tlmg} to loop-index
  206. set {_4th.point} to loop-value
  207. else if loop-value is more than {_5th.point}:
  208. set {_5th} to loop-index
  209. set {_5th.point} to loop-value
  210. open chest with 1 rows named "&3&lSkyWars Top Wins" to player
  211. wait 0.2 seconds
  212. play raw sound "random.pop" at player with pitch 1 volume 0.1
  213. format slot 0 of player with emerald named "&2&lTOP 1" with lore "&a&l%{_1st}%:&7&l %{_1st.point}%" to close
  214. format slot 2 of player with diamond named "&3&lTOP 2" with lore "&a&l%{_2nd}%:&7&l %{_2nd.point}% " to close
  215. format slot 4 of player with gold ingot named "&e&lTOP 3" with lore "&a&l%{_3rd}%:&7&l %{_3rd.point}%" to close
  216. format slot 6 of player with iron ingot named "&7&lTOP 4" with lore "&a&l%{_4tlmg}%:&7&l %{_4th.point}%" to close
  217. format slot 8 of player with coal:0 named "&7&lTOP 5" with lore "&a&l%{_5th}%:&7&l %{_5th.point}%" to close
  218. else if arg 1 is "kitremove":
  219. if player has permission "SkyWars+.admin":
  220. if arg 2 is set:
  221. if {kit::c::%arg 2%} is true:
  222. remove arg 2 from {kits::liste::*}
  223. clear {kit::c::%arg 2%}
  224. send "{@prefix} &2You have deleted the kit &6&l%arg 2%&2 successfully." #
  225. else:
  226. send "{@prefix}&c this kit does not exist" #
  227. else:
  228. send "{@prefix}&c Put name of the kit you want to delete" #
  229. else:
  230. send "{@prefix}&c You don't have permission to do this!" #
  231. else if arg 1 is "kitvipremove":
  232. if player has permission "SkyWars+.admin":
  233. if arg 2 is set:
  234. if {kit::c::%arg 2%} is true:
  235. remove arg 2 from {kitsvip::liste::*}
  236. clear {kit::c::%arg 2%}
  237. send "{@prefix} &2You have deleted the kit &6&l%arg 2%&2 successfully." #
  238. else:
  239. send "{@prefix}&c this kit does not exist" #
  240. else:
  241. send "{@prefix}&c Put name of the kit you want to delete" #
  242. else:
  243. send "{@prefix}&c You don't have permission to do this!" #
  244. else if arg 1 is "setspawnguardian":
  245. if player has permission "SkyWars+.admin":
  246. if arg 2 is set:
  247. if {sw.arena::%arg 2%} is true:
  248. set {sw.zombie::%arg 2%} to location of player
  249. send "{@prefix}&7 You have placed the guardian spawn of the arena %arg 2%"
  250. else:
  251. send "{@prefix}&c There is already such an arena." #
  252. else:
  253. send "{@prefix}&c Please put the name of the arena." #
  254. else:
  255. send "{@prefix}&c You don't have permission to do this!" #
  256. else if arg 1 is "kitcreate":
  257. if player has permission "SkyWars+.admin":
  258. if arg 2 is set:
  259. if {kit::c::%arg 2%} is not set:
  260. set {kit.helm::%arg 2%} to helmet of player
  261. set {kit.chest::%arg 2%} to chestplate of player
  262. set {kit.legs::%arg 2%} to leggings of player
  263. set {kit.boots::%arg 2%} to boots of player
  264. set {kit.items::%arg 2%} to serialized inventory of player
  265. set {kit::c::%arg 2%} to true
  266. add arg 2 to {kits::liste::*}
  267. wait 0.5 seconds
  268. clear player's inventory
  269. play raw sound "random.pop" at player with pitch 1 volume 0.1
  270. send "{@prefix} &2&lYou have created the kit &6&l%arg 2%&2&l successfully." #
  271. else:
  272. send "{@prefix}&c %arg 2%, it already existss!" #
  273. else:
  274. send "{@prefix}&c Put name of the kit you want to create!" #
  275. else:
  276. send "{@prefix}&c You don't have permission to do this!" #
  277. else if arg 1 is "kitvipcreate":
  278. if player has permission "SkyWars+.admin":
  279. if arg 2 is set:
  280. if {kit::c::%arg 2%} is not set:
  281. set {kit.helm::%arg 2%} to helmet of player
  282. set {kit.chest::%arg 2%} to chestplate of player
  283. set {kit.legs::%arg 2%} to leggings of player
  284. set {kit.boots::%arg 2%} to boots of player
  285. set {kit.items::%arg 2%} to serialized inventory of player
  286. set {kit::c::%arg 2%} to true
  287. add arg 2 to {kitsvip::liste::*}
  288. wait 0.5 seconds
  289. clear player's inventory
  290. play raw sound "random.pop" at player with pitch 1 volume 0.1
  291. send "{@prefix} &2&lYou have created the kit&5&l vip &6&l%arg 2%&2&l successfully." #
  292. else:
  293. send "{@prefix}&c %arg 2%, it already existss!" #
  294. else:
  295. send "{@prefix}&c Put name of the kit you want to create!" #
  296. else:
  297. send "{@prefix}&c You don't have permission to do this!" #
  298. else if arg 1 is "kits":
  299. if {sw::%player%::lobby} is true:
  300. wait 2 ticks
  301. open chest with 2 rows named "&3&LSkyWars &2&lKits" to player
  302. set {_x} to 0
  303. loop {kits::liste::*}:
  304. format slot {_x} of player with paper named "&6&l%loop-value%" with lore "&a&lclick to select" to close then run "swconsoliokit vip %player% %uncolored loop-value%"
  305. add 1 to {_x}
  306. else:
  307. send "{@prefix}&c You have to be in the lobby of a game to do that." #
  308. else if arg 1 is "shop":
  309. if {sw::%player%::ingame} is true:
  310. if player has permission "SkyWars+.shop":
  311. wait 2 ticks
  312. open chest with 1 rows named "&3&LSkyWars &2&lShop" to player
  313. format slot 0 of player with golden apple:0 named "&6Golden apple" with lore "&7&lPrice:&2&l 25 coins||&eClick to buy" to close then run [make player execute command "/wfshop1 1"]
  314. format slot 1 of player with diamond named "&3Diamond" with lore "&7&lPrice:&2&l 45 coins||&eClick to buy" to close then run [make player execute command "/wfshop1 2"]
  315. format slot 2 of player with leather helmet named "&7Leather Helmet" with lore "&7&lPrice:&2&l 20 coins||&eClick to buy" to close then run [make player execute command "/wfshop1 3"]
  316. format slot 3 of player with leather chestplate named "&7Leather Chestplate" with lore "&7&lPrice:&2&l 25 coins||&eClick to buy" to close then run [make player execute command "/wfshop1 4"]
  317. format slot 4 of player with leather leggings named "&7Leather Leggings" with lore "&7&lPrice:&2&l 25 coins||&eClick to buy" to close then run [make player execute command "/wfshop1 5"]
  318. format slot 5 of player with leather boots named "&7Leather Boots" with lore "&7&lPrice:&2&l 20 coins||&eClick to buy" to close then run [make player execute command "/wfshop1 6"]
  319. format slot 6 of player with tnt named "&cTNT" with lore "&7&lPrice:&2&l 30 coins||&eClick to buy" to close then run [make player execute command "/wfshop1 7"]
  320. format slot 7 of player with ender pearl named "&5Ender Pearl" with lore "&7&lPrice:&2&l 35 coins||&eClick to buy" to close then run [make player execute command "/wfshop1 8"]
  321. format slot 8 of player with diamond helmet named "&3Diamond Helmet" with lore "&7&lPrice:&2&l 55 coins||&eClick to buy" to close then run [make player execute command "/wfshop1 9"]
  322. else:
  323. send "{@prefix}&c You don't have permission to do this"
  324. else:
  325. send "{@prefix}&c You have to be within a game."
  326. else if arg 1 is "kitsvip":
  327. if {sw::%player%::lobby} is true:
  328. if player has permission "SkyWars+.kitsvip":
  329. wait 2 ticks
  330. open chest with 2 rows named "&3&LSkyWars &2&lKits&5&l VIP" to player
  331. set {_x} to 0
  332. loop {kitsvip::liste::*}:
  333. format slot {_x} of player with paper named "&6&l%loop-value%" with lore "&a&lclick to select" to close then run "swconsoliokit vip %player% %uncolored loop-value%"
  334. add 1 to {_x}
  335. else:
  336. send "{@prefix}&c No tienes permiso para los kits vip"
  337. else:
  338. send "{@prefix}&c You have to be in the lobby of a game to do that." #
  339. else if arg 1 is "stats":
  340. open chest with 1 rows named "&2&lSkyWars Stats" to player
  341. wait 0.2 seconds
  342. play raw sound "random.pop" at player with pitch 1 volume 0.1
  343. format slot 2 of player with diamond sword named "&2&lKills:&7&l %{sw::kills::%player%}%" to be unstealable
  344. format slot 6 of player with redstone named "&c&lDeaths:&7&l %{sw::deaths::%player%}%" to be unstealable
  345. format slot 4 of player with paper named "&e&lPlayed Games:&7&l %{sw::playedgames::%player%}%" to be unstealable
  346. format slot 0 of player with Diamond named "&6&lWins:&7&l %{sw::wins::%player%}%" to be unstealable
  347. format slot 8 of player with gold ingot named "&6&lCoins:&7&l %{sw.coins::%player%}%" to be unstealable
  348.  
  349. else if arg 1 is "wand":
  350. if player has permission "SkyWars+.admin":
  351. give 1 golden hoe named "&a&lSkyWars Wand" to player
  352. play raw sound "note.pling" at player with pitch 1 volume 0.1
  353. else:
  354. send "{@prefix}&c You don't have permission to do this!" #
  355. stop
  356. else if arg 1 is "list" or "arenas":
  357. wait 2 ticks
  358. play raw sound "note.pling" at player with pitch 1 volume 0.1
  359. open chest with 4 rows named "&2&LSkyWars Arenas" to player
  360. set {_x} to 0
  361. loop {skywars::liste::*}:
  362. format slot {_x} of player with bow named "&6&l%loop-value%" with lore "&a&lPlayers: &6&l%{skywars::arena::%loop-value%}%/%{maxarena::%loop-value%}%||||&a&lStatus: %{sw.status::%loop-value%}%||||&e&l>>Click to join " to close then run "swconsolio %player% %uncolored loop-value%"
  363. add 1 to {_x}
  364. else if arg 1 is "remove":
  365. if player has permission "SkyWars+.admin":
  366. if arg 2 is set:
  367. if {sw.arena::%arg 2%} is true:
  368. clear {sw.arena::%arg 2%}
  369. remove arg 2 from {skywars::liste::*}
  370. clear {sw.spawn.arena::%arg 2%}
  371. clear {skywars::arena::%arg 2%}
  372. clear {sw.lobby.arena::%arg 2%}
  373. send "{@prefix}&7 Arena removed:&a %arg 2%" #
  374. else:
  375. send "{@prefix}&c Please enter a correct argument: &6%arg 2%" #
  376. else:
  377. send "{@prefix}&c Please enter a correct argument" #
  378. else:
  379. send "{@prefix}&c You don't have permission to do this!" #
  380. else if arg 1 is "setmainlobby":
  381. if player has permission "SkyWars+.admin":
  382. if arg 2 is not set:
  383. set {sw.mainlobby} to location of player
  384. send "{@prefix}&7 Main lobby has been set." #
  385. else:
  386. send "{@prefix}&c Unknown command!" #
  387. else:
  388. send "{@prefix}&c You don't have permission to do this!" #
  389. else if arg 1 is "setlobby":
  390. if player has permission "SkyWars+.admin":
  391. if arg 2 is set:
  392. if {sw.arena::%arg 2%} is true:
  393. set {sw.lobby.arena::%arg 2%} to location of player
  394. send "{@prefix}&7 Lobby of arena &6%arg 2%&7 has been set!" #
  395. else:
  396. send "{@prefix}&c Please enter a correct argument: &6%arg 2%" #
  397. else:
  398. send "{@prefix}&c Please enter a correct argument" #
  399. else:
  400. send "{@prefix}&c You don't have permission to do this!" #
  401. else if arg 1 is "setminplayers":
  402. if player has permission "SkyWars+.admin":
  403. if arg 3 is set:
  404. if {sw.arena::%arg 2%} is true:
  405. set {min.arena::%arg 2%} to arg 3
  406. send "{@prefix}&7 Min players of &6%arg 2% &7has been set:&6 %arg 3%" #
  407. else:
  408. send "{@prefix}&c Please enter a correct argument: &6%arg 2%" #
  409. else:
  410. send "{@prefix}&c put the max players for arena:&6 %arg 2%" #
  411. else:
  412. send "{@prefix}&c You don't have permission to do this!" #
  413. else if arg 1 is "setmaxplayers":
  414. if player has permission "SkyWars+.admin":
  415. if arg 3 is set:
  416. if {sw.arena::%arg 2%} is true:
  417. set {maxarena::%arg 2%} to arg 3
  418. send "{@prefix}&7 Max players of &6%arg 2%&7 has been set:&6 %arg 3%" #
  419. else:
  420. send "{@prefix}&c Please enter a correct argument: &6%arg 2%" #
  421. else:
  422. send "{@prefix}&c put the max players for arena:&6 %arg 2%" #
  423. else:
  424. send "{@prefix}&c You don't have permission to do this!" #
  425. else if arg 1 is "setspawn":
  426. if player has permission "SkyWars+.admin":
  427. if arg 2 is set:
  428. if {sw.arena::%arg 2%} is true:
  429. if arg 3 is set:
  430. set {sw.spawn.arena::%arg 2%::%arg 3%} to location of player
  431. send "{@prefix}&7 &6Spawnpoint %arg 3%&7 of arena &6%arg 2%&7 has been set!" #
  432. else:
  433. send "{@prefix}&c put: /sw setspawn (arena) (1/2/3/4...)" #
  434. else:
  435. send "{@prefix}&c Please enter a correct argument: &6%arg 2%" #
  436. else:
  437. send "{@prefix}&c Please enter a correct argument" #
  438. else:
  439. send "{@prefix}&c You don't have permission to do this!" #
  440. else if arg 1 is "holo":
  441. if player has permission "skywars+.admin":
  442. if arg 2 is "create":
  443. if arg 3 is "stats":
  444. if {sw::%player%::lobby} and {sw::%player%::ingame} and {sw.spectator::%player%} is false:
  445. set {_loc:%player%} to the location 3 meters above the player
  446. create hologram "&eYour &b&lSKYWARS &aStats;&aWins: &6%{sw::wins::%player%}%;&aKills: &6%{sw::kills::%player%}%;&aDeaths: &6%{sw::deaths::%player%}%;&aGames Played: &6%{sw::games::%player%}%;&aArrows Shot: &6%{sw::arrows::%player%}%;&aBlocks Broken: &6%{sw::break::%player%}%;&aBlocks Placed: &6%{sw::place::%player%}%;&aDistance Walked: &6%{sw::walk::%player%}%" at {_loc:%player%} for 5 seconds
  447. send "{@prefix} &aHologram succesfully added!"
  448. else:
  449. send "{@prefix} &cYou need to be in the main lobby to execute that command!"
  450. else:
  451. send "{@prefix} &cYou only can create an hologram with that name: stats!"
  452. else if arg 2 is "remove" or "delete":
  453. if arg 3 is set:
  454. if {sw::%player%::lobby} and {sw::%player%::ingame} and {sw.spectator::%player%} is false:
  455. delete {hg.statsname}
  456. send "{@prefix} &aHologram succesfully removed!"
  457. else:
  458. send "{@prefix} &cYou need to put a name of an hologram to remove it!"
  459. else:
  460. send "{@prefix}&c You don't have permission to do this!" #
  461. else if arg 1 is "join":
  462. if arg 2 is set:
  463. if {sw::%player%::lobby} and {sw::%player%::ingame} is false:
  464. if {sw.arena::%arg 2%} is true:
  465. if {sw.status::%arg 2%} is "&aWaiting..." or "&3Starting":
  466. if (size of {sw.players.%arg 2%::*}) < {maxarena::%arg 2%}:
  467. if {joinquit::%player%} is not set:
  468. add player to {sw.players.%arg 2%::*}
  469. set {sw::%player%::lobby} to true
  470. set player's hunger to 20
  471. invoke "joinquitsw" from player
  472. set player's health to 20
  473. set player's gamemode to survival
  474. add 1 to {skywars::arena::%arg 2%}
  475. invoke "save-inv" from player
  476. set {sw::%player%::ingame} to false
  477. set {sw.%player%.arena} to arg 2
  478. clear player's inventory
  479. send "{@prefix} &2%player%&7 has joined the game. &6(%{skywars::arena::%{sw.%player%.arena}%}%/%{maxarena::%{sw.%player%.arena}%}%)" to {sw.players.%{sw.%player%.arena}%::*} #
  480. send "{@prefix}&c To start the game you need &6&l%{min.arena::%{sw.%player%.arena}%}%&c players" to {sw.players.%{sw.%player%.arena}%::*} #
  481. teleport player to {sw.lobby.arena::%arg 2%}
  482. invoke "sign-status" from arg-2
  483. send "{@prefix}&7 You have joined the game successfully!" #
  484. loop {sw.players.%{sw.%player%.arena}%::*}:
  485. wait 0.7 seconds
  486. set slot 0 of loop-value's inventory to {@KitsItem} named "{@KitsItemName}"
  487. set slot 1 of loop-value's inventory to {@KitsVIPItem} named "{@KitsVIPItemName}"
  488. set slot 8 of loop-value's inventory to {@LeaveItem} named "{@LeaveItemName}"
  489. if (size of {sw.players.%arg 2%::*}) is greater or equal to {min.arena::%arg 2%}:
  490. if player is online:
  491. set {sw.status::%{sw.%player%.arena}%} to "&3Starting"
  492. invoke "sign-status" from arg-2
  493. set {start.arena::%arg 2%} to false
  494. invoke "tiempo-arena" from player
  495. loop 10 times:
  496. if (size of {sw.players.%arg 2%::*}) >= {min.arena::%arg 2%}:
  497. wait 1 seconds
  498. else:
  499. stop
  500. if (size of {sw.players.%{sw.%player%.arena}%::*}) >= {min.arena::%{sw.%player%.arena}%}:
  501. set {sw.status::%arg 2%} to "&cInGame"
  502. delete all dropped items
  503. invoke "sign-status" from {sw.%player%.arena}
  504. invoke "kit-give" from {sw.players.%{sw.%player%.arena}%::*}
  505. set {_n} to 1
  506. loop {sw.players.%{sw.%player%.arena}%::*}:
  507. apply potion of resistance of tier 10 to loop-value for 4 seconds
  508. set {_p} to "%loop-value%" parsed as player
  509. teleport {_p} to {sw.spawn.arena::%arg 2%::%{_n}%}
  510. display board named "" to loop-value
  511. add 1 to {_n}
  512. loop {sw.players.%{sw.%player%.arena}%::*}:
  513. add 1 to {sw::playedgames::%loop-value%}
  514. clear loop-value's inventory
  515. set {sw::%loop-value%::lobby} to false
  516. set {sw::%loop-value%::ingame} to true
  517. send "{@prefix}&2 The game has already started!!!" to {sw.players.%{sw.%player%.arena}%::*} #
  518. wait 3 seconds
  519. loop 2 times:
  520. invoke "zombie-spawn" from arg-2
  521. wait 0.5 seconds
  522. stop
  523. else:
  524. send "{@prefix}&7 When you left a game, you need to wait for 2 seconds to join another game!"
  525. else:
  526. send "{@prefix}&c the arena is full" #
  527. else:
  528. send "{@prefix}&c The arena is at stake" #
  529. else:
  530. send "{@prefix} &6%arg 2%&c does not exist" #
  531. else:
  532. send "{@prefix}&c&l You are already in game." #
  533. else:
  534. send "{@prefix}&c&l Unknown command." #
  535. else if arg 1 is "leave":
  536. if {spectator::%player%} is false:
  537. if {sw::%player%::lobby} or {sw::%player%::ingame} is true:
  538. if arg 2 is not set:
  539. if {joinquit::%player%} is not set:
  540. teleport player to {sw.mainlobby}
  541. display board named "" to player
  542. clear player's inventory
  543. set player's hunger to 20
  544. invoke "joinquitsw" from player
  545. set player's health to 20
  546. clear {tkit::%player%}
  547. remove 1 from {skywars::arena::%{sw.%player%.arena}%}
  548. set {sw::%player%::lobby} to false
  549. set {sw::%player%::ingame} to false
  550. send "{@prefix}&7 You have left the arena!" #
  551. remove player from {sw.players.%{sw.%player%.arena}%::*}
  552. invoke "give-inv" from player
  553. invoke "sign-status" from {sw.%player%.arena}
  554. send "{@prefix}&c &2%player%&7 has left the game &6(%{skywars::arena::%{sw.%player%.arena}%}%/%{maxarena::%{sw.%player%.arena}%}%)" to {sw.players.%{sw.%player%.arena}%::*} #
  555. if (size of {sw.players.%{sw.%player%.arena}%::*}) = 1:
  556. if {sw.status::%{sw.%player%.arena}%} is "&3Starting":
  557. set {sw.status::%{sw.%player%.arena}%} to "&aWaiting..."
  558. invoke "sign-status" from {sw.%player%.arena}
  559. if (size of {sw.players.%{sw.%player%.arena}%::*}) = 1:
  560. if {sw.status::%{sw.%player%.arena}%} is "&cInGame":
  561. loop {sw.players.%{sw.%player%.arena}%::*}:
  562. set {sw::%loop-value%::lobby} to true
  563. broadcast "{@prefix}&6&l %{sw.players.%{sw.%player%.arena}%::*}%&7 has won on the map %{sw.%player%.arena}%"
  564. send "{@prefix}&3&l you receive &5&l{@coins_by_win} coins" to {sw.players.%{sw.%player%.arena}%::*}
  565. loop 10 times:
  566. launch Ball firework colored green or blue or red at {sw.players.%{sw.%player%.arena}%::*} timed 1.2
  567. launch Ball firework colored green or blue or red at {sw.players.%{sw.%player%.arena}%::*} timed 1.2
  568. wait 10 ticks
  569. clear {sw.players.%{sw.%player%.arena}%::*}'s inventory
  570. teleport {sw.players.%{sw.%player%.arena}%::*} to {sw.mainlobby}
  571. wait 0.7 seconds
  572. loop {sw.players.%{sw.%player%.arena}%::*}:
  573. clear loop-value's inventory
  574. add 1 to {sw::wins::%loop-value%}
  575. set {sw::%loop-value%::lobby} to false
  576. set {sw::%loop-value%::ingame} to false
  577. add {@coins_by_win} to {sw.coins::%loop-value%}
  578. display board named "" to loop-value
  579. set loop-value's health to 20
  580. clear {sw.player::%loop-value%::*}
  581. invoke "give-inv" from {sw.players.%{sw.%player%.arena}%::*}
  582. remove {sw.players.%{sw.%player%.arena}%::*} from {sw.players.%{sw.%player%.arena}%::*}
  583. set {start.arena::%{sw.%player%.arena}%} to true
  584. set {skywars::arena::%{sw.%player%.arena}%} to 0
  585. invoke "sign-status" from {sw.%player%.arena}
  586. loop all zombies in radius 50 around location of {sw.zombie::%{sw.%player%.arena}%}:
  587. kill loop-zombie
  588. invoke "schematic-liberar" from {sw.%player%.arena}
  589. stop
  590. else:
  591. send "{@prefix}&7 When you leave a game, you need to wait for 2 seconds to join the game!"
  592. else:
  593. send "{@prefix}&c Unknown command." #
  594. else:
  595. send "{@prefix}&c You are not in game now!" #
  596. else:
  597. invoke "spect-quit" from player
  598. else:
  599. message "&r"
  600. message "&9&l[--------------------------------------------]"
  601. message "&r"
  602. message " &cCommands of {@prefix}:"
  603. message "&r"
  604. message " &eUser commands:"
  605. message " &a/sw join <arena> &5&l| &7skywars+.join &6(Join an arena)"
  606. message " &a/sw leave &5&l| &7skywars+.leave &6(Leave an arena)"
  607. message " &a/sw arenas &5&l| &7skywars+.arenas &6(See all the arenas)"
  608. message " &a/sw stats &5&l| &7skywars+.stats &6(See your stats)"
  609. message " &a/sw kits &5&l| &7skywars+.kits &6(Select a kit)"
  610. message " &a/sw shop &5&l| &7skywars+.shop &6(Open the shop)"
  611. message " &a/sw top &5&l| &7skywars+.top &6(See the top players)"
  612. message "&r"
  613. message "&9&l[--------------------------------------------]"
  614. message "&r"
  615. if player has permission "skywars+.admin":
  616. message "&r"
  617. message "&9&l[--------------------------------------------]"
  618. message "&r"
  619. message " &cAdmin commands:"
  620. message " &a/sw setmainlobby &5&l| §7skywars+.setmainlobby"
  621. message " &6(Set mainlobby of the game)"
  622. message " &a/sw wand &5&l| §7skywars+.wand"
  623. message " &6(Select an arena with the wand)"
  624. message " &a/sw create <arena> &2(It can not be a number) &5&l|"
  625. message " &7skywars+.admin &6 (Create an arena)"
  626. message " &a/sw setlobby <arena> &5&l| §7skywars+.admin"
  627. message " &6(Set the waiting lobby of an arena)"
  628. message " &a/sw setminplayers <arena> <number> &5&l| §7skywars+.admin"
  629. message " &6(Set Min Players of an arena)"
  630. message " &a/sw setmaxplayers <arena> <number> &5&l| §7skywars+.admin"
  631. message " &6(Set Max Players of an arena)"
  632. message " &a/sw setspawn <arena> <number> &5&l| §7skywars+.admin"
  633. message " &6(Set Spawns of an arena)"
  634. message " &a/sw setspawnguardian <arena> <number> &5&l| §7skywars+.admin"
  635. message " &6(Set the Spawn of the Guardian of the arena)"
  636. message " &a/sw remove <arena> &5&l| §7skywars+.admin"
  637. message " &6(Remove an arena)"
  638. message " &a/sw kitcreate <namekit> &5&l| §7skywars+.admin"
  639. message " &6(Create a kit)"
  640. message " &a/sw kitremove <namekit> &5&l| §7skywars+.admin"
  641. message " &6(Remove a kit)"
  642. message " &a/sw kitvipcreate <namekit> &5&l| §7skywars+.admin"
  643. message " &6(Create a VIP kit)"
  644. message " &a/sw kitvipremove <namekit> &5&l| §7skywars+.admin"
  645. message " &6(Remove a VIP kit)"
  646. message " &a/sw reload &5&l| §7skywars+.admin"
  647. message " &6(Reload the plugin)"
  648. message "&r"
  649. message "&9&l[--------------------------------------------]"
  650. message "&r"
  651.  
  652.  
  653.  
  654. on jump:
  655. if {sw::%player%::ingame} is true:
  656. if {sw+.config::btp} is "true":
  657. loop blocks upwards:
  658. if block under player is bedrock:
  659. if loop-block-1 is bedrock:
  660. if block above loop-block-1 is air:
  661. teleport player to block above loop-block-1
  662. play raw sound "mob.endermen.portal" at player with pitch 1 volume 1
  663. create an animated ball effect at location of player with id "6" with particle portal
  664. wait 2 seconds
  665. delete effect "6"
  666.  
  667. on sneak toggle:
  668. if {sw::%player%::ingame} is true:
  669. if {sw+.config::btp} is "true":
  670. if block under player is bedrock:
  671. loop blocks downwards:
  672. if loop-block-1 is not block under player:
  673. if loop-block-1 is bedrock:
  674. if block above loop-block-1 is air:
  675. teleport player to block above loop-block-1
  676. play raw sound "mob.endermen.portal" at player with pitch 1 volume 1
  677. create an animated ball effect at location of player with id "7" with particle portal
  678. wait 2 seconds
  679. delete effect "7"
  680.  
  681. command /true:
  682. trigger:
  683. set {sw::%player%::ingame} to true
  684. send "Hola" to player
  685.  
  686. on death of player:
  687. if {sw::%victim%::ingame} is true:
  688. set victim's health to 20
  689. invoke "spect" from victim
  690. add {@coins_by_kill} to {sw.coins::%attacker%}
  691. send "{@prefix}&3&l you receive &5&l{@coins_by_kill} coins" to attacker
  692. clear {sw.player::%victim%::*}
  693. clear {tkit::%victim%}
  694. apply potion of resistance of tier 10 to victim for 6 seconds
  695. wait 0.3 seconds
  696. if {sw::%attacker%::ingame} is true:
  697. add 1 to {sw::kills::%attacker%}
  698. add 1 to {sw::deaths::%victim%}
  699. display "&6&lTo exit: &2&l/sw leave" on bossbar with 100 percent by 6 seconds for victim
  700. if {sw::%attacker%::ingame} is true:
  701. send "{@prefix} &2%victim%&7 is dead by &2&l%attacker%" to {sw.players.%{sw.%player%.arena}%::*} #
  702. else:
  703. send "{@prefix} &2%victim%&7 is dead" to {sw.players.%{sw.%player%.arena}%::*} #
  704. invoke "give-inv" from victim
  705. set {sw::%victim%::lobby} to false
  706. display board named "" to victim
  707. set {sw::%victim%::ingame} to false
  708. remove victim from {sw.players.%{sw.%victim%.arena}%::*}
  709. remove 1 from {skywars::arena::%{sw.%victim%.arena}%}
  710. invoke "sign-status" from {sw.%victim%.arena}
  711. if (size of {sw.players.%{sw.%victim%.arena}%::*}) = 1:
  712. wait 1 seconds
  713. loop {sw.players.%{sw.%victim%.arena}%::*}:
  714. set {sw::%loop-value%::lobby} to true
  715. broadcast "{@prefix}&6&l %{sw.players.%{sw.%victim%.arena}%::*}%&7 has won on the map %{sw.%victim%.arena}%"
  716. send "{@prefix}&3&l you receive &5&l{@coins_by_win} coins" to {sw.players.%{sw.%player%.arena}%::*}
  717. invoke "sign-status" from {sw.%victim%.arena}
  718. loop 10 times:
  719. launch Ball firework colored green or blue or red at {sw.players.%{sw.%player%.arena}%::*} timed 1.2
  720. launch Ball firework colored green or blue or red at {sw.players.%{sw.%player%.arena}%::*} timed 1.2
  721. wait 10 ticks
  722. clear {sw.players.%{sw.%victim%.arena}%::*}'s inventory
  723. teleport {sw.players.%{sw.%victim%.arena}%::*} to {sw.mainlobby}
  724. loop {spec::arena::%{sw.%victim%.arena}%::*}:
  725. make loop-value execute command "/skywars leave"
  726. wait 0.7 seconds
  727. loop {sw.players.%{sw.%victim%.arena}%::*}:
  728. clear loop-value's inventory
  729. clear {tkit::%loop-value%}
  730. add 1 to {sw::wins::%loop-value%}
  731. add {@coins_by_win} to {sw.coins::%loop-value%}
  732. set {sw::%loop-value%::lobby} to false
  733. set {sw::%loop-value%::ingame} to false
  734. display board named "" to loop-value
  735. clear {sw.player::%loop-value%::*}
  736. set loop-value's health to 20
  737. invoke "give-inv" from {sw.players.%{sw.%player%.arena}%::*}
  738. remove {sw.players.%{sw.%player%.arena}%::*} from {sw.players.%{sw.%player%.arena}%::*}
  739. set {start.arena::%{sw.%victim%.arena}%} to true
  740. set {skywars::arena::%{sw.%victim%.arena}%} to 0
  741. invoke "sign-status" from {sw.%victim%.arena}
  742. loop all zombies in radius 50 around location of {sw.zombie::%{sw.%victim%.arena}%}:
  743. kill loop-zombie
  744. invoke "schematic-liberar" from {sw.%victim%.arena}
  745. stop
  746. command /swconsolio [<text>] [<text>]:
  747. executable by: console
  748. trigger:
  749. set {_p} to "%arg 1%" parsed as player
  750. make {_p} execute command "/sw join %arg 2%"
  751. command /swconsoliokit [<text>] [<text>] [<text>]:
  752. executable by: console
  753. trigger:
  754. if arg 1 is "normal":
  755. set {_p} to "%arg 2%" parsed as player
  756. make {_p} execute command "/37528 %arg 3%"
  757. else if arg 1 is "vip":
  758. set {_p} to "%arg 2%" parsed as player
  759. make {_p} execute command "/37528897 %arg 3%"
  760. on sign change:
  761. if player has permission "SkyWars+.admin":
  762. if line 1 is "[skywars]" or "[sw]":
  763. if line 2 is "join" or "Join":
  764. if {sw.arena::%uncolored line 3%} is true:
  765. set line 1 to "&6&lSkyWars"
  766. set line 2 to "%{sw.status::%uncolored line 3%}%"
  767. set line 3 to "%uncolored line 3%"
  768. set line 4 to "&8%{skywars::arena::%uncolored line 3%}%/%{maxarena::%uncolored line 3%}%"
  769. set {sw.sign-loc::%line 3%} to event-block
  770. invoke "sign-status" from line 3
  771. send "{@prefix} &7Sign successfully placed!" to player
  772. else:
  773. set line 1 to "&4SkyWars"
  774. set line 2 to "&cError"
  775. send "&cThis game does not exist!"
  776. else if line 2 is "kit":
  777. if {kit::c::%line 3%} is true:
  778. set line 1 to "&6&lSkyWars"
  779. set line 2 to "&lKit:"
  780. set line 3 to "%uncolored line 3%"
  781. set line 4 to ""
  782.  
  783. on break a sign or wall sign:
  784. if {sw.sign-loc::%line 3%} is set:
  785. if player is op:
  786. delete {sw.sign-loc::%line 3%}
  787. send "{@prefix} &cSign Removed!" to player
  788. else:
  789. cancel event
  790. on rightclick on sign:
  791. if line 1 of clicked block is "&6&lSkyWars":
  792. if line 2 of clicked block is "&lKit:":
  793. set {tkit::%player%} to "%line 3%"
  794. send "{@prefix}&7 You have selected the kit:&6&l %line 3%" to player
  795. play raw sound "random.pop" at player with pitch 1 volume 0.1
  796. on rightclick on sign:
  797. if {sw.sign-loc::%line 3%} is set:
  798. make player execute command "/skywars join %uncolored line 3%"
  799. on damage of player:
  800. if {sw::%victim%::lobby} is true:
  801. cancel event
  802. on drop:
  803. if {sw::%player%::lobby} is true:
  804. cancel event
  805. on hunger meter change:
  806. if {sw::%player%::lobby} is true:
  807. cancel event
  808. on inventory click:
  809. if {sw::%player%::lobby} is true:
  810. cancel event
  811. on break:
  812. if {sw::%player%::lobby} is true:
  813. cancel event
  814. on command:
  815. if {sw::%player%::lobby} or {sw::%player%::ingame} or {spectator::%player%} is true:
  816. command isn't equal to "sw" or "37528" or "skywars" or "login" or "37528897" or "wfshop1"
  817. cancel event
  818. send "{@prefix}&c You can't do that within heading"
  819. on place:
  820. if {sw::%player%::lobby} is true:
  821. cancel event
  822. on chat:
  823. if {sw::%player%::ingame} is true:
  824. cancel event
  825. send "&a%player% &8&l» &f%message%" to {sw.players.%{sw.%player%.arena}%::*} and {spec::arena::%{sw.%player%.arena}%::*}
  826. stop
  827. if {spectator::%player%} is true:
  828. cancel event
  829. send "&7[&eSPECTATOR&7]&a%player% &8&l» &f%message%" to {sw.players.%{sw.%player%.arena}%::*} and {spec::arena::%{sw.%player%.arena}%::*}
  830. stop
  831. sub "joinquitsw":
  832. set {_p} to parameter 1
  833. set {joinquit::%{_p}%} to true
  834. wait 3 seconds
  835. clear {joinquit::%{_p}%}
  836. sub "spect":
  837. set {_value} to parameter 1
  838. set {_value}'s gamemode to spectator
  839. set {spectator::%{_value}%} to true
  840. add {_value} to {spec::arena::%{sw.%{_value}%.arena}%::*}
  841. wait 3 ticks
  842. teleport {_value} to {sw.spawn.arena::%{sw.%{_value}%.arena}%::1}
  843. sub "spect-quit":
  844. set {_value} to parameter 1
  845. set {_value}'s gamemode to survival
  846. set {spectator::%{_value}%} to false
  847. teleport {spec::arena::%{sw.%{_value}%.arena}%::*} to {sw.mainlobby}
  848. display board named "" to {_value}
  849. remove {_value} from {spec::arena::%{sw.%{_value}%.arena}%::*}
  850. sub "sign-status":
  851. set {_line3} to "%parameter 1%"
  852. set line 1 of block at {sw.sign-loc::%{_line3}%} to "&6&lSkyWars"
  853. set line 2 of block at {sw.sign-loc::%{_line3}%} to "%{sw.status::%{_line3}%}%"
  854. set line 3 of block at {sw.sign-loc::%{_line3}%} to "%{_line3}%"
  855. set line 4 of block at {sw.sign-loc::%{_line3}%} to "&8%{skywars::arena::%{_line3}%}%/%{maxarena::%{_line3}%}%"
  856. if {sw.status::%{_line3}%} is "&aWaiting...":
  857. set block 1 behind the block at {sw.sign-loc::%{_line3}%} to glass:5
  858. if {sw.status::%{_line3}%} is "&cInGame":
  859. set block 1 behind the block at {sw.sign-loc::%{_line3}%} to glass:14
  860. if {sw.status::%{_line3}%} is "&eRebuilding":
  861. set block 1 behind the block at {sw.sign-loc::%{_line3}%} to glass:4
  862. if {sw.status::%{_line3}%} is "&3Starting":
  863. set block 1 behind the block at {sw.sign-loc::%{_line3}%} to glass:9
  864. sub "kit-give":
  865. set {_ps} to parameter 1
  866. loop {sw.players.%{sw.%{_ps}%.arena}%::*}:
  867. set {_p} to loop-value
  868. set {_pUUID} to "%uuid of {_p}%"
  869. wait 0.7 seconds
  870. play raw sound "random.pop" at {_p} with pitch 1 volume 0.1
  871. give {kit.helm::%{tkit::%{_p}%}%} to helmet of {_p}
  872. give {kit.chest::%{tkit::%{_p}%}%} to chestplate of {_p}
  873. give {kit.legs::%{tkit::%{_p}%}%} to leggings of {_p}
  874. give {kit.boots::%{tkit::%{_p}%}%} to boots of {_p}
  875. restore inventory of {_p} from {kit.items::%{tkit::%{_p}%}%}
  876. sub "save-inv":
  877. set {_value} to parameter 1
  878. set {_uuid} to "%uuid of {_value}%"
  879. set {_count} to 0
  880. loop 36 times:
  881. set {inv.%{_uuid}%.%{_count}%.main} to slot {_count} of {_value}'s inventory
  882. add 1 to {_count}
  883. set {inv.%{_uuid}%.helmet.main} to {_value}'s helmet
  884. set {inv.%{_uuid}%.chest.main} to {_value}'s chestplate
  885. set {inv.%{_uuid}%.legs.main} to {_value}'s leggings
  886. set {inv.%{_uuid}%.feet.main} to {_value}'s boots
  887. sub "give-inv":
  888. set {_value} to parameter 1
  889. set {_uuid} to "%uuid of {_value}%"
  890. set {_count} to 0
  891. loop 36 times:
  892. set slot {_count} of {_value}'s inventory to {inv.%{_uuid}%.%{_count}%.main}
  893. add 1 to {_count}
  894. set the helmet of {_value} to {inv.%{_uuid}%.helmet.main}
  895. set the chestplate of {_value} to {inv.%{_uuid}%.chest.main}
  896. set the leggings of {_value} to {inv.%{_uuid}%.legs.main}
  897. set the boots of {_value} to {inv.%{_uuid}%.feet.main}
  898. command /37528 [<text>]:
  899. trigger:
  900. if {sw::%player%::lobby} is true:
  901. set {tkit::%player%} to "%uncolored arg 1%"
  902. send "{@prefix}&7 You have selected the kit:&6&l %arg 1%" #
  903. play raw sound "random.pop" at player with pitch 1 volume 0.1
  904. command /wfshop1 [<text>]:
  905. trigger:
  906. if {sw::%player%::ingame} is true:
  907. if player has permission "SkyWars+.shop":
  908. if arg 1 is "1":
  909. if {sw.coins::%player%} >= 25:
  910. give player 1 golden apple:0
  911. remove 25 from {sw.coins::%player%}
  912. send "{@prefix}&a You bought a golden apple.&7 Now you have &6{sw.coins::%player%}&7 coins"
  913. else:
  914. send "{@prefix}&c You don't have enough coins"
  915. if arg 1 is "2":
  916. if {sw.coins::%player%} >= 45:
  917. give player 1 Diamond
  918. remove 45 from {sw.coins::%player%}
  919. send "{@prefix}&a You bought a diamond.&7 Now you have &6%{sw.coins::%player%}%&7 coins"
  920. else:
  921. send "{@prefix}&c You don't have enough coins"
  922. if arg 1 is "3":
  923. if {sw.coins::%player%} >= 20:
  924. give player 1 leather helmet
  925. remove 20 from {sw.coins::%player%}
  926. send "{@prefix}&a You bought a leather helmet.&7 Now you have &6%{sw.coins::%player%}%&7 coins"
  927. else:
  928. send "{@prefix}&c You don't have enough coins"
  929. if arg 1 is "4":
  930. if {sw.coins::%player%} >= 25:
  931. give player 1 leather chestplate
  932. remove 25 from {sw.coins::%player%}
  933. send "{@prefix}&a You bought a leather chestplate.&7 Now you have &6%{sw.coins::%player%}%&7 coins"
  934. else:
  935. send "{@prefix}&c You don't have enough coins"
  936. if arg 1 is "5":
  937. if {sw.coins::%player%} >= 25:
  938. give player 1 leather leggings
  939. remove 25 from {sw.coins::%player%}
  940. send "{@prefix}&a You bought a leather leggings.&7 Now you have &6%{sw.coins::%player%}%&7 coins"
  941. else:
  942. send "{@prefix}&c You don't have enough coins"
  943. if arg 1 is "6":
  944. if {sw.coins::%player%} >= 20:
  945. give player 1 leather boots
  946. remove 20 from {sw.coins::%player%}
  947. send "{@prefix}&a You bought a leather boots.&7 Now you have &6%{sw.coins::%player%}%&7 coins"
  948. else:
  949. send "{@prefix}&c You don't have enough coins"
  950. if arg 1 is "7":
  951. if {sw.coins::%player%} >= 30:
  952. give player 1 tnt
  953. remove 30 from {sw.coins::%player%}
  954. send "{@prefix}&a You bought a TNT.&7 Now you have &6%{sw.coins::%player%}%&7 coins"
  955. else:
  956. send "{@prefix}&c You don't have enough coins"
  957. if arg 1 is "8":
  958. if {sw.coins::%player%} >= 35:
  959. give player 1 ender pearl
  960. remove 35 from {sw.coins::%player%}
  961. send "{@prefix}&a You bought a Ender Pearl.&7 Now you have &6%{sw.coins::%player%}%&7 coins"
  962. else:
  963. send "{@prefix}&c You don't have enough coins"
  964. if arg 1 is "9":
  965. if {sw.coins::%player%} >= 55:
  966. give player 1 diamond helmet
  967. remove 55 from {sw.coins::%player%}
  968. send "{@prefix}&a You bought a Diamond Helmet.&7 Now you have &6%{sw.coins::%player%}%&7 coins"
  969. else:
  970. send "{@prefix}&c You don't have enough coins"
  971. else:
  972. send "{@prefix}&c You don't have permission to do this"
  973. command /37528897 [<text>]:
  974. trigger:
  975. if {sw::%player%::lobby} is true:
  976. if player has permission "SkyWars+.kitsvip":
  977. set {tkit::%player%} to "%uncolored arg 1%"
  978. send "{@prefix}&7 You have selected the kit:&6&l %arg 1%" #
  979. play raw sound "random.pop" at player with pitch 1 volume 0.1
  980. on right click with {@LeaveItem}:
  981. if {sw::%player%::lobby} is true:
  982. player is holding a {@LeaveItem} named "{@LeaveItemName}"
  983. cancel event
  984. make player execute command "/sw leave"
  985. on right click with {@JoinItem}:
  986. if {sw::%player%::lobby} is false:
  987. player is holding a {@JoinItem} named "{@JoinItemName}"
  988. cancel event
  989. make player execute command "/sw list"
  990. on drop:
  991. if {sw::%player%::lobby} is false:
  992. player is holding a {@JoinItem} named "{@JoinItemName}"
  993. cancel event
  994. on inventory click:
  995. if {sw::%player%::lobby} is false:
  996. player is holding a {@JoinItem} named "{@JoinItemName}"
  997. cancel event
  998. on right click with {@AbilitiesItem}:
  999. if {sw::%player%::lobby} is false:
  1000. player is holding a {@AbilitiesItem} named "{@AbilitiesItemName}"
  1001. cancel event
  1002. make player execute command "/abilities"
  1003. on drop:
  1004. if {sw::%player%::lobby} is false:
  1005. player is holding a {@AbilitiesItem} named "{@AbilitiesItemName}"
  1006. cancel event
  1007. on inventory click:
  1008. if {sw::%player%::lobby} is false:
  1009. player is holding a {@AbilitiesItem} named "{@AbilitiesItemName}"
  1010. cancel event
  1011. on right click with {@StatsItem}:
  1012. if {sw::%player%::lobby} is false:
  1013. player is holding {@StatsItem} named "{@StatsItemName}"
  1014. cancel event
  1015. make player execute command "/sw stats"
  1016. on drop:
  1017. if {sw::%player%::lobby} is false:
  1018. player is holding a {@StatsItem} named "{@StatsItemName}"
  1019. cancel event
  1020. on inventory click:
  1021. if {sw::%player%::lobby} is false:
  1022. player is holding a {@StatsItem} named "{@StatsItemName}"
  1023. cancel event
  1024. on right click with {@KitsItem} or enchanted book:
  1025. if {sw::%player%::lobby} is true:
  1026. if player is holding a {@KitsItem} named "{@KitsItemName}":
  1027. cancel event
  1028. make player execute command "/sw kits"
  1029. else if player is holding a {@KitsVIPItem} named "{@KitsVIPItemName}":
  1030. cancel event
  1031. make player execute command "/sw kitsvip"
  1032. on death of zombie:
  1033. clear drops
  1034. if {sw::%attacker%::ingame} is true:
  1035. wait 10 seconds
  1036. invoke "zombie-spawn" from {sw.%attacker%.arena}
  1037. every 3 seconds:
  1038. invoke "sw-top-wins"
  1039. invoke "sw-top-kills"
  1040. loop all players:
  1041. invoke "score_sw" from loop-player
  1042. sub "zombie-spawn":
  1043. set {_arena} to "%parameter 1%"
  1044. if {sw.zombie::%{_arena}%} is set:
  1045. spawn 1 zombie at {sw.zombie::%{_arena}%}
  1046. set name of last spawned zombie to "&6&lGuard"
  1047. equip last spawned zombie with diamond helmet
  1048. equip last spawned zombie with diamond chestplate
  1049. equip last spawned zombie with diamond leggings
  1050. equip last spawned zombie with diamond boots
  1051. set last spawned zombie's tool to diamond sword
  1052. sub "tiempo-arena":
  1053. set {_a} to "%parameter 1%"
  1054. set {_seg} to 10
  1055. loop 10 times:
  1056. if (size of {sw.players.%{sw.%{_a}%.arena}%::*}) >= {min.arena::%{sw.%{_a}%.arena}%}:
  1057. send "{@prefix}&7 It starts at %{_seg}%" to {sw.players.%{sw.%{_a}%.arena}%::*} #
  1058. play raw sound "note.pling" at {sw.players.%{sw.%{_a}%.arena}%::*} with pitch 1 volume 0.1
  1059. set level of {sw.players.%{sw.%{_a}%.arena}%::*} to {_seg}
  1060. remove 1 from {_seg}
  1061. wait 1 seconds
  1062. else:
  1063. send "{@prefix}&c Not enough players!" to {sw.players.%{sw.%{_a}%.arena}%::*} #
  1064. set {start.arena::%{sw.%{_a}%.arena}%} to true
  1065. stop
  1066. sub "score_sw":
  1067. set {_p} to "%parameter 1%" parsed as player
  1068. if {sw::%{_p}%::lobby} is true:
  1069. if {sw::%{_p}%::ingame} is false:
  1070. display board named " &6&lSkyWars " to {_p}
  1071. make score "&c " in board of {_p} to 6
  1072. make score "&7Players:" in board of {_p} to 5
  1073. make score "&6 %{skywars::arena::%{sw.%{_p}%.arena}%}%" in board of {_p} to 4
  1074. make score "&7Arena:" in board of {_p} to 3
  1075. make score "&6 %{sw.%{_p}%.arena}%" in board of {_p} to 2
  1076. make score "&7Status:" in board of {_p} to 1
  1077. make score "%{sw.status::%{sw.%{_p}%.arena}%}%" in board of {_p} to 0
  1078. move display of {_p} to SIDEBAR
  1079. stop
  1080. if {sw::%{_p}%::ingame} or {spectator::%{_p}%} is true:
  1081. display board named " &6&lSkyWars " to {_p}
  1082. make score "&c " in board of {_p} to 6
  1083. make score "&7Alive:" in board of {_p} to 5
  1084. make score "&6 %{skywars::arena::%{sw.%{_p}%.arena}%}%" in board of {_p} to 4
  1085. make score "&7Arena:" in board of {_p} to 3
  1086. make score "&6 %{sw.%{_p}%.arena}%" in board of {_p} to 2
  1087. make score "&7Status:" in board of {_p} to 1
  1088. make score "%{sw.status::%{sw.%{_p}%.arena}%}%" in board of {_p} to 0
  1089. move display of {_p} to SIDEBAR
  1090. stop
  1091. sub "schematic-guarad":
  1092. set {_arena} to parameter 1
  1093. set {_x} to 0
  1094. loop blocks within {skywars::arena::%{_arena}%::pos1} to {skywars::arena::%{_arena}%::pos2}:
  1095. if loop-block is not air:
  1096. add 1 to {_x}
  1097. set {skywars::arena::%{_arena}%::blocklar::%location of loop-block%} to type of block at loop-block
  1098. if {_x} is 100:
  1099. wait 1 ticks
  1100. set {_x} to 0
  1101. sub "schematic-liberar":
  1102. set {_arena} to parameter 1
  1103. invoke "sign-status" from {_arena}
  1104. set {_x} to 0
  1105. set {_y} to 0
  1106. set {sw.status::%{_arena}%} to "&eRebuilding"
  1107. invoke "sign-status" from {_arena}
  1108. wait 0.2 seconds
  1109. loop blocks within {skywars::arena::%{_arena}%::pos1} to {skywars::arena::%{_arena}%::pos2}:
  1110. if {skywars::arena::%{_arena}%::blocklar::%location of loop-block%} is set:
  1111. if type of loop-block is not {skywars::arena::%{_arena}%::blocklar::%location of loop-block%}:
  1112. add 1 to {_x}
  1113. set block at loop-block to {skywars::arena::%{_arena}%::blocklar::%location of loop-block%}
  1114. if {_x} is 100:
  1115. wait 1 ticks
  1116. set {_x} to 0
  1117. else:
  1118. if loop-block is not air:
  1119. set block at loop-block to air
  1120. if {_y} is 100:
  1121. wait 1 ticks
  1122. set {_y} to 0
  1123. set {sw.status::%{_arena}%} to "&aWaiting..."
  1124. invoke "sign-status" from {_arena}
  1125. sub "sw-top-kills":
  1126. set {_1st.point} to 0
  1127. set {_2nd.point} to 0
  1128. set {_3rd.point} to 0
  1129. set {_4th.point} to 0
  1130. set {_5th.point} to 0
  1131. loop {sw::kills::*}:
  1132. if loop-value is more than {_1st.point}:
  1133. set {_5th} to {_4tlmg}
  1134. set {_5th.point} to {_4th.point}
  1135. set {_4tlmg} to {_3rd}
  1136. set {_4th.point} to {_3rd.point}
  1137. set {_3rd} to {_2nd}
  1138. set {_3rd.point} to {_2nd.point}
  1139. set {_2nd} to {_1st}
  1140. set {_2nd.point} to {_1st.point}
  1141. set {_1st} to loop-index
  1142. set {_1st.point} to loop-value
  1143. else if loop-value is more than {_2nd.point}:
  1144. set {_5th} to {_4tlmg}
  1145. set {_5th.point} to {_4th.point}
  1146. set {_4tlmg} to {_3rd}
  1147. set {_4th.point} to {_3rd.point}
  1148. set {_3rd} to {_2nd}
  1149. set {_3rd.point} to {_2nd.point}
  1150. set {_2nd} to loop-index
  1151. set {_2nd.point} to loop-value
  1152. else if loop-value is more than {_3rd.point}:
  1153. set {_5th} to {_4tlmg}
  1154. set {_5th.point} to {_4th.point}
  1155. set {_4tlmg} to {_3rd}
  1156. set {_4th.point} to {_3rd.point}
  1157. set {_3rd} to loop-index
  1158. set {_3rd.point} to loop-value
  1159. else if loop-value is more than {_4th.point}:
  1160. set {_5th} to {_4tlmg}
  1161. set {_5th.point} to {_4th.point}
  1162. set {_4tlmg} to loop-index
  1163. set {_4th.point} to loop-value
  1164. else if loop-value is more than {_5th.point}:
  1165. set {_5th} to loop-index
  1166. set {_5th.point} to loop-value
  1167. if line 1 of {kills.top::1} is "&3&LSkyWars":
  1168. set line 2 of {kills.top::1} to "&6&l%{_1st}%"
  1169. set line 3 of {kills.top::1} to "&a%{_1st.point}% kills"
  1170. if line 1 of {kills.top::2} is "&3&LSkyWars":
  1171. set line 2 of {kills.top::2} to "&6&l%{_2nd}%"
  1172. set line 3 of {kills.top::2} to "&a%{_2nd.point}% kills"
  1173. if line 1 of {kills.top::3} is "&3&LSkyWars":
  1174. set line 2 of {kills.top::3} to "&6&l%{_3rd}%"
  1175. set line 3 of {kills.top::3} to "&a%{_3rd.point}% kills"
  1176. if line 1 of {kills.top::4} is "&3&LSkyWars":
  1177. set line 2 of {kills.top::4} to "&6&l%{_4tlmg}%"
  1178. set line 3 of {kills.top::4} to "&a%{_4th.point}% kills"
  1179. if line 1 of {kills.top::5} is "&3&LSkyWars":
  1180. set line 2 of {kills.top::5} to "&6&l%{_5th}%"
  1181. set line 3 of {kills.top::5} to "&a%{_5th.point}% kills"
  1182. sub "sw-top-wins":
  1183. set {_1st.point} to 0
  1184. set {_2nd.point} to 0
  1185. set {_3rd.point} to 0
  1186. set {_4th.point} to 0
  1187. set {_5th.point} to 0
  1188. loop {sw::wins::*}:
  1189. if loop-value is more than {_1st.point}:
  1190. set {_5th} to {_4tlmg}
  1191. set {_5th.point} to {_4th.point}
  1192. set {_4tlmg} to {_3rd}
  1193. set {_4th.point} to {_3rd.point}
  1194. set {_3rd} to {_2nd}
  1195. set {_3rd.point} to {_2nd.point}
  1196. set {_2nd} to {_1st}
  1197. set {_2nd.point} to {_1st.point}
  1198. set {_1st} to loop-index
  1199. set {_1st.point} to loop-value
  1200. else if loop-value is more than {_2nd.point}:
  1201. set {_5th} to {_4tlmg}
  1202. set {_5th.point} to {_4th.point}
  1203. set {_4tlmg} to {_3rd}
  1204. set {_4th.point} to {_3rd.point}
  1205. set {_3rd} to {_2nd}
  1206. set {_3rd.point} to {_2nd.point}
  1207. set {_2nd} to loop-index
  1208. set {_2nd.point} to loop-value
  1209. else if loop-value is more than {_3rd.point}:
  1210. set {_5th} to {_4tlmg}
  1211. set {_5th.point} to {_4th.point}
  1212. set {_4tlmg} to {_3rd}
  1213. set {_4th.point} to {_3rd.point}
  1214. set {_3rd} to loop-index
  1215. set {_3rd.point} to loop-value
  1216. else if loop-value is more than {_4th.point}:
  1217. set {_5th} to {_4tlmg}
  1218. set {_5th.point} to {_4th.point}
  1219. set {_4tlmg} to loop-index
  1220. set {_4th.point} to loop-value
  1221. else if loop-value is more than {_5th.point}:
  1222. set {_5th} to loop-index
  1223. set {_5th.point} to loop-value
  1224. if line 1 of {wins.top::1} is "&3&LSkyWars":
  1225. set line 2 of {wins.top::1} to "&6&l%{_1st}%"
  1226. set line 3 of {wins.top::1} to "&a%{_1st.point}% wins"
  1227. if line 1 of {wins.top::2} is "&3&LSkyWars":
  1228. set line 2 of {wins.top::2} to "&6&l%{_2nd}%"
  1229. set line 3 of {wins.top::2} to "&a%{_2nd.point}% wins"
  1230. if line 1 of {wins.top::3} is "&3&LSkyWars":
  1231. set line 2 of {wins.top::3} to "&6&l%{_3rd}%"
  1232. set line 3 of {wins.top::3} to "&a%{_3rd.point}% wins"
  1233. if line 1 of {wins.top::4} is "&3&LSkyWars":
  1234. set line 2 of {wins.top::4} to "&6&l%{_4tlmg}%"
  1235. set line 3 of {wins.top::4} to "&a%{_4th.point}% wins"
  1236. if line 1 of {wins.top::5} is "&3&LSkyWars":
  1237. set line 2 of {wins.top::5} to "&6&l%{_5th}%"
  1238. set line 3 of {wins.top::5} to "&a%{_5th.point}% wins"
  1239. on sign change:
  1240. line 1 is "[swtopwins]":
  1241. player has permission "SkyWars+.admin"
  1242. if line 2 is "1" or "2" or "3" or "4" or "5":
  1243. set line 1 to "&3&LSkyWars"
  1244. set line 2 to "%line 2%"
  1245. set line 3 to ""
  1246. set line 4 to "&LTOP %line 2%"
  1247. set {wins.top::%line 2%} to block
  1248. wait 0.5 seconds
  1249. invoke "sw-top-wins"
  1250. else:
  1251. set line 2 to "&4ERROR"
  1252. send "{@prefix}&4&l You can only put top 1/2/3/4/5" to player
  1253. on sign change:
  1254. line 1 is "[swtopkills]":
  1255. player has permission "SkyWars+.admin"
  1256. if line 2 is "1" or "2" or "3" or "4" or "5":
  1257. set line 1 to "&3&LSkyWars"
  1258. set line 2 to "%line 2%"
  1259. set line 3 to ""
  1260. set line 4 to "&LTOP %line 2%"
  1261. set {kills.top::%line 2%} to block
  1262. wait 0.5 seconds
  1263. invoke "sw-top-kills"
  1264. else:
  1265. set line 2 to "&4ERROR"
  1266. send "{@prefix}&4&l You can only put top 1/2/3/4/5" to player
  1267. on left click with golden hoe:
  1268. if player has permission "SkyWars+.admin":
  1269. if name of player's tool is "&a&lSkyWars Wand":
  1270. clicked block is set
  1271. clear {skywars::pos::%uuid of player%::1}
  1272. cancel event
  1273. message "&6&l➤ Pos 1"
  1274. set {skywars::pos::%uuid of player%::1} to location of clicked block
  1275. on right click with golden hoe:
  1276. if player has permission "SkyWars+.admin":
  1277. if name of player's tool is "&a&lSkyWars Wand":
  1278. clear {skywars::pos::%uuid of player%::2}
  1279. clicked block is set
  1280. cancel event
  1281. message "&6&l➤ Pos 2"
  1282. set {skywars::pos::%uuid of player%::2} to location of clicked block
  1283. on rightclick on chest:
  1284. if {sw::%player%::ingame} is true:
  1285. if {sw.player::%player%::%location of event-block%} is not set:
  1286. set {sw.player::%player%::%location of event-block%} to true
  1287. clear the inventory of event-block
  1288. set {_tier1::*} to configuration section "tier1" get of "plugins/SkyWars+/chestitems.yml"
  1289. set {_tier2::*} to configuration section "tier2" get of "plugins/SkyWars+/chestitems.yml"
  1290. set {_tier3::*} to configuration section "tier3" get of "plugins/SkyWars+/chestitems.yml"
  1291. set {_tier4::*} to configuration section "tier4" get of "plugins/SkyWars+/chestitems.yml"
  1292. loop 10 times:
  1293. chance of 50%:
  1294. set {_item} to "%random element out of {_tier1::*}%" parsed as material
  1295. add {_item} to inventory of event-block
  1296. chance of 32%:
  1297. set {_item} to "%random element out of {_tier2::*}%" parsed as material
  1298. add {_item} to inventory of event-block
  1299. chance of 26%:
  1300. set {_item} to "%random element out of {_tier3::*}%" parsed as material
  1301. add {_item} to inventory of event-block
  1302. chance of 15%:
  1303. set {_item} to "%random element out of {_tier4::*}%" parsed as material
  1304. add {_item} to inventory of event-block
  1305. on break of chest:
  1306. if {sw::%player%::ingame} is true:
  1307. if {sw.player::%player%::%location of event-block%} is not set:
  1308. set {sw.player::%player%::%location of event-block%} to true
  1309. clear the inventory of event-block
  1310. set {_tier1::*} to configuration section "tier1" get of "plugins/SkyWars+/chestitems.yml"
  1311. set {_tier2::*} to configuration section "tier2" get of "plugins/SkyWars+/chestitems.yml"
  1312. set {_tier3::*} to configuration section "tier3" get of "plugins/SkyWars+/chestitems.yml"
  1313. set {_tier4::*} to configuration section "tier4" get of "plugins/SkyWars+/chestitems.yml"
  1314. loop 10 times:
  1315. chance of 50%:
  1316. set {_item} to "%random element out of {_tier1::*}%" parsed as material
  1317. add {_item} to inventory of event-block
  1318. chance of 32%:
  1319. set {_item} to "%random element out of {_tier2::*}%" parsed as material
  1320. add {_item} to inventory of event-block
  1321. chance of 26%:
  1322. set {_item} to "%random element out of {_tier3::*}%" parsed as material
  1323. add {_item} to inventory of event-block
  1324. chance of 15%:
  1325. set {_item} to "%random element out of {_tier4::*}%" parsed as material
  1326. add {_item} to inventory of event-block
  1327. on place of chest:
  1328. if {sw::%player%::ingame} is true:
  1329. set {sw.player::%player%::%location of event-block%} to true
  1330. on quit:
  1331. if {sw::%player%::lobby} or {sw::%player%::ingame} is true:
  1332. clear {joinquit::%player%}
  1333. make player execute command "/sw leave"
  1334. if {spectator::%player%} is true:
  1335. invoke "spect-quit" from player
  1336.  
  1337. command /abilities [<text>]:
  1338. executable by: players
  1339. aliases: abilitie
  1340. trigger:
  1341. if text arg 1 is not set:
  1342. open chest with 6 rows named "SkyWars+ Abilities" to player
  1343. play raw sound "random.pop" at player with pitch 1 volume 25
  1344. format slot 0 of player with stone sword named "&e&lLegendary Swords" with lore "&7Add a chance for critical hits with swords​" to be unstealable
  1345. format slot 9 of player with blaze powder named "&e&lVampire" with lore "&7Regain health on a kill a player" to be unstealable
  1346. format slot 18 of player with iron chestplate named "&e&lProtection" with lore "&7Cancels the damage from arrow hits" to be unstealable
  1347. format slot 27 of player with arrow named "&e&lTriple Arrow" with lore "&7One shoot, three arrows! Gives a chance for triple arrow" to be unstealable
  1348. format slot 36 of player with diamond pickaxe named "&e&lMining Luck" with lore "&7Mining skill is increased so you can get more each ore.​" to be unstealable
  1349. format slot 45 of player with potion:8194 named "&e&lAdrenaline" with lore "&7When you get hurt have that chance to get a speed boost.​" to be unstealable
  1350. if {SkyWars+.player.%uuid of player%.swords.level} is set:
  1351. if {SkyWars+.player.%uuid of player%.swords.level} is 0:
  1352. format slot 1 of player with locked chest:4 named "&e&lLegendary Swords &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to close then run [make player execute the command "abilities swords"]
  1353. format slot 2 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1354. format slot 3 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1355. format slot 4 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1356. format slot 5 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1357. format slot 6 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1358. format slot 7 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1359. format slot 8 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1360. if {SkyWars+.player.%uuid of player%.swords.level} is 1:
  1361. format slot 1 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1362. format slot 2 of player with locked chest:4 named "&e&lLegendary Swords &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to close then run [make player execute the command "abilities swords"]
  1363. format slot 3 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1364. format slot 4 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1365. format slot 5 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1366. format slot 6 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1367. format slot 7 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1368. format slot 8 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1369. if {SkyWars+.player.%uuid of player%.swords.level} is 2:
  1370. format slot 1 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1371. format slot 2 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1372. format slot 3 of player with locked chest:4 named "&e&lLegendary Swords &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to close then run [make player execute the command "abilities swords"]
  1373. format slot 4 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1374. format slot 5 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1375. format slot 6 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1376. format slot 7 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1377. format slot 8 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1378. if {SkyWars+.player.%uuid of player%.swords.level} is 3:
  1379. format slot 1 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1380. format slot 2 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1381. format slot 3 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1382. format slot 4 of player with locked chest:4 named "&e&lLegendary Swords &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to close then run [make player execute the command "abilities swords"]
  1383. format slot 5 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1384. format slot 6 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1385. format slot 7 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1386. format slot 8 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1387. if {SkyWars+.player.%uuid of player%.swords.level} is 4:
  1388. format slot 1 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1389. format slot 2 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1390. format slot 3 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1391. format slot 4 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1392. format slot 5 of player with locked chest:4 named "&e&lLegendary Swords &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to close then run [make player execute the command "abilities swords"]
  1393. format slot 6 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1394. format slot 7 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1395. format slot 8 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1396. if {SkyWars+.player.%uuid of player%.swords.level} is 5:
  1397. format slot 1 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1398. format slot 2 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1399. format slot 3 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1400. format slot 4 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1401. format slot 5 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1402. format slot 6 of player with locked chest:4 named "&e&lLegendary Swords &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to close then run [make player execute the command "abilities swords"]
  1403. format slot 7 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1404. format slot 8 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1405. if {SkyWars+.player.%uuid of player%.swords.level} is 6:
  1406. format slot 1 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1407. format slot 2 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1408. format slot 3 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1409. format slot 4 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1410. format slot 5 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1411. format slot 6 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1412. format slot 7 of player with locked chest:4 named "&e&lLegendary Swords &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to close then run [make player execute the command "abilities swords"]
  1413. format slot 8 of player with locked chest:14 named "&e&lLegendary Swords &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1414. if {SkyWars+.player.%uuid of player%.swords.level} is 7:
  1415. format slot 1 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1416. format slot 2 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1417. format slot 3 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1418. format slot 4 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1419. format slot 5 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1420. format slot 6 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1421. format slot 7 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1422. format slot 8 of player with locked chest:4 named "&e&lLegendary Swords &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to close then run [make player execute the command "abilities swords"]
  1423. if {SkyWars+.player.%uuid of player%.swords.level} is 8:
  1424. format slot 1 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1425. format slot 2 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1426. format slot 3 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1427. format slot 4 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1428. format slot 5 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1429. format slot 6 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1430. format slot 7 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1431. format slot 8 of player with locked chest:5 named "&e&lLegendary Swords &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1432. if {SkyWars+.player.%uuid of player%.vampire.level} is set:
  1433. if {SkyWars+.player.%uuid of player%.vampire.level} is 0:
  1434. format slot 10 of player with locked chest:4 named "&e&lVampire &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to close then run [make player execute the command "abilities vampire"]
  1435. format slot 11 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1436. format slot 12 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1437. format slot 13 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1438. format slot 14 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1439. format slot 15 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1440. format slot 16 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1441. format slot 17 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1442. if {SkyWars+.player.%uuid of player%.vampire.level} is 1:
  1443. format slot 10 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1444. format slot 11 of player with locked chest:4 named "&e&lVampire &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to close then run [make player execute the command "abilities vampire"]
  1445. format slot 12 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1446. format slot 13 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1447. format slot 14 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1448. format slot 15 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1449. format slot 16 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1450. format slot 17 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1451. if {SkyWars+.player.%uuid of player%.vampire.level} is 2:
  1452. format slot 10 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1453. format slot 11 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1454. format slot 12 of player with locked chest:4 named "&e&lVampire &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to close then run [make player execute the command "abilities vampire"]
  1455. format slot 13 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1456. format slot 14 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1457. format slot 15 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1458. format slot 16 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1459. format slot 17 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1460. if {SkyWars+.player.%uuid of player%.vampire.level} is 3:
  1461. format slot 10 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1462. format slot 11 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1463. format slot 12 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1464. format slot 13 of player with locked chest:4 named "&e&lVampire &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to close then run [make player execute the command "abilities vampire"]
  1465. format slot 14 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1466. format slot 15 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1467. format slot 16 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1468. format slot 17 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1469. if {SkyWars+.player.%uuid of player%.vampire.level} is 4:
  1470. format slot 10 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1471. format slot 11 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1472. format slot 12 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1473. format slot 13 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1474. format slot 14 of player with locked chest:4 named "&e&lVampire &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to close then run [make player execute the command "abilities vampire"]
  1475. format slot 15 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1476. format slot 16 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1477. format slot 17 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1478. if {SkyWars+.player.%uuid of player%.vampire.level} is 5:
  1479. format slot 10 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1480. format slot 11 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1481. format slot 12 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1482. format slot 13 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1483. format slot 14 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1484. format slot 15 of player with locked chest:4 named "&e&lVampire &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to close then run [make player execute the command "abilities vampire"]
  1485. format slot 16 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1486. format slot 17 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1487. if {SkyWars+.player.%uuid of player%.vampire.level} is 6:
  1488. format slot 10 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1489. format slot 11 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1490. format slot 12 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1491. format slot 13 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1492. format slot 14 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1493. format slot 15 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1494. format slot 16 of player with locked chest:4 named "&e&lVampire &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to close then run [make player execute the command "abilities vampire"]
  1495. format slot 17 of player with locked chest:14 named "&e&lVampire &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1496. if {SkyWars+.player.%uuid of player%.vampire.level} is 7:
  1497. format slot 10 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1498. format slot 11 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1499. format slot 12 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1500. format slot 13 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1501. format slot 14 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1502. format slot 15 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1503. format slot 16 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1504. format slot 17 of player with locked chest:4 named "&e&lVampire &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to close then run [make player execute the command "abilities vampire"]
  1505. if {SkyWars+.player.%uuid of player%.vampire.level} is 8:
  1506. format slot 10 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1507. format slot 11 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1508. format slot 12 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1509. format slot 13 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1510. format slot 14 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1511. format slot 15 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1512. format slot 16 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1513. format slot 17 of player with locked chest:5 named "&e&lVampire &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1514. if {SkyWars+.player.%uuid of player%.protection.level} is set:
  1515. if {SkyWars+.player.%uuid of player%.protection.level} is 0:
  1516. format slot 19 of player with locked chest:4 named "&e&lProtection &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to close then run [make player execute the command "abilities protection"]
  1517. format slot 20 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1518. format slot 21 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1519. format slot 22 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1520. format slot 23 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1521. format slot 24 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1522. format slot 25 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1523. format slot 26 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1524. if {SkyWars+.player.%uuid of player%.protection.level} is 1:
  1525. format slot 19 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1526. format slot 20 of player with locked chest:4 named "&e&lProtection &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to close then run [make player execute the command "abilities protection"]
  1527. format slot 21 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1528. format slot 22 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1529. format slot 23 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1530. format slot 24 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1531. format slot 25 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1532. format slot 26 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1533. if {SkyWars+.player.%uuid of player%.protection.level} is 2:
  1534. format slot 19 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1535. format slot 20 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1536. format slot 21 of player with locked chest:4 named "&e&lProtection &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to close then run [make player execute the command "abilities protection"]
  1537. format slot 22 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1538. format slot 23 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1539. format slot 24 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1540. format slot 25 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1541. format slot 26 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1542. if {SkyWars+.player.%uuid of player%.protection.level} is 3:
  1543. format slot 19 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1544. format slot 20 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1545. format slot 21 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1546. format slot 22 of player with locked chest:4 named "&e&lProtection &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to close then run [make player execute the command "abilities protection"]
  1547. format slot 23 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1548. format slot 24 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1549. format slot 25 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1550. format slot 26 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1551. if {SkyWars+.player.%uuid of player%.protection.level} is 4:
  1552. format slot 19 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1553. format slot 20 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1554. format slot 21 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1555. format slot 22 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1556. format slot 23 of player with locked chest:4 named "&e&lProtection &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to close then run [make player execute the command "abilities protection"]
  1557. format slot 24 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1558. format slot 25 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1559. format slot 26 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1560. if {SkyWars+.player.%uuid of player%.protection.level} is 5:
  1561. format slot 19 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1562. format slot 20 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1563. format slot 21 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1564. format slot 22 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1565. format slot 23 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1566. format slot 24 of player with locked chest:4 named "&e&lProtection &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to close then run [make player execute the command "abilities protection"]
  1567. format slot 25 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1568. format slot 26 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1569. if {SkyWars+.player.%uuid of player%.protection.level} is 6:
  1570. format slot 19 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1571. format slot 20 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1572. format slot 21 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1573. format slot 22 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1574. format slot 23 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1575. format slot 24 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1576. format slot 25 of player with locked chest:4 named "&e&lProtection &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to close then run [make player execute the command "abilities protection"]
  1577. format slot 26 of player with locked chest:14 named "&e&lProtection &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1578. if {SkyWars+.player.%uuid of player%.protection.level} is 7:
  1579. format slot 19 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1580. format slot 20 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1581. format slot 21 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1582. format slot 22 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1583. format slot 23 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1584. format slot 24 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1585. format slot 25 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1586. format slot 26 of player with locked chest:4 named "&e&lProtection &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to close then run [make player execute the command "abilities protection"]
  1587. if {SkyWars+.player.%uuid of player%.protection.level} is 8:
  1588. format slot 19 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1589. format slot 20 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1590. format slot 21 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1591. format slot 22 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1592. format slot 23 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1593. format slot 24 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1594. format slot 25 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1595. format slot 26 of player with locked chest:5 named "&e&lProtection &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1596. if {SkyWars+.player.%uuid of player%.triple.level} is set:
  1597. if {SkyWars+.player.%uuid of player%.triple.level} is 0:
  1598. format slot 28 of player with locked chest:4 named "&e&lTriple Arrow &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to close then run [make player execute the command "abilities triple"]
  1599. format slot 29 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1600. format slot 30 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1601. format slot 31 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1602. format slot 32 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1603. format slot 33 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1604. format slot 34 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1605. format slot 35 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1606. if {SkyWars+.player.%uuid of player%.triple.level} is 1:
  1607. format slot 28 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1608. format slot 29 of player with locked chest:4 named "&e&lTriple Arrow &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to close then run [make player execute the command "abilities triple"]
  1609. format slot 30 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1610. format slot 31 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1611. format slot 32 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1612. format slot 33 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1613. format slot 34 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1614. format slot 35 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1615. if {SkyWars+.player.%uuid of player%.triple.level} is 2:
  1616. format slot 28 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1617. format slot 29 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1618. format slot 30 of player with locked chest:4 named "&e&lTriple Arrow &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to close then run [make player execute the command "abilities triple"]
  1619. format slot 31 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1620. format slot 32 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1621. format slot 33 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1622. format slot 34 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1623. format slot 35 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1624. if {SkyWars+.player.%uuid of player%.triple.level} is 3:
  1625. format slot 28 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1626. format slot 29 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1627. format slot 30 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1628. format slot 31 of player with locked chest:4 named "&e&lTriple Arrow &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to close then run [make player execute the command "abilities triple"]
  1629. format slot 32 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1630. format slot 33 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1631. format slot 34 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1632. format slot 35 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1633. if {SkyWars+.player.%uuid of player%.triple.level} is 4:
  1634. format slot 28 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1635. format slot 29 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1636. format slot 30 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1637. format slot 31 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1638. format slot 32 of player with locked chest:4 named "&e&lTriple Arrow &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to close then run [make player execute the command "abilities triple"]
  1639. format slot 33 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1640. format slot 34 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1641. format slot 35 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1642. if {SkyWars+.player.%uuid of player%.triple.level} is 5:
  1643. format slot 28 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1644. format slot 29 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1645. format slot 30 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1646. format slot 31 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1647. format slot 32 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1648. format slot 33 of player with locked chest:4 named "&e&lTriple Arrow &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to close then run [make player execute the command "abilities triple"]
  1649. format slot 34 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1650. format slot 35 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1651. if {SkyWars+.player.%uuid of player%.triple.level} is 6:
  1652. format slot 28 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1653. format slot 29 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1654. format slot 30 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1655. format slot 31 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1656. format slot 32 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1657. format slot 33 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1658. format slot 34 of player with locked chest:4 named "&e&lTriple Arrow &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to close then run [make player execute the command "abilities triple"]
  1659. format slot 35 of player with locked chest:14 named "&e&lTriple Arrow &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1660. if {SkyWars+.player.%uuid of player%.triple.level} is 7:
  1661. format slot 28 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1662. format slot 29 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1663. format slot 30 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1664. format slot 31 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1665. format slot 32 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1666. format slot 33 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1667. format slot 34 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1668. format slot 35 of player with locked chest:4 named "&e&lTriple Arrow &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to close then run [make player execute the command "abilities triple"]
  1669. if {SkyWars+.player.%uuid of player%.triple.level} is 8:
  1670. format slot 28 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1671. format slot 29 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1672. format slot 30 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1673. format slot 31 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1674. format slot 32 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1675. format slot 33 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1676. format slot 34 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1677. format slot 35 of player with locked chest:5 named "&e&lTriple Arrow &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1678. if {SkyWars+.player.%uuid of player%.mining.level} is set:
  1679. if {SkyWars+.player.%uuid of player%.mining.level} is 0:
  1680. format slot 37 of player with locked chest:4 named "&e&lMining Luck &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1681. format slot 38 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1682. format slot 39 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1683. format slot 40 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1684. format slot 41 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1685. format slot 42 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1686. format slot 43 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1687. format slot 44 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1688. if {SkyWars+.player.%uuid of player%.mining.level} is 1:
  1689. format slot 37 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1690. format slot 38 of player with locked chest:4 named "&e&lMining Luck &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1691. format slot 39 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1692. format slot 40 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1693. format slot 41 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1694. format slot 42 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1695. format slot 43 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1696. format slot 44 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1697. if {SkyWars+.player.%uuid of player%.mining.level} is 2:
  1698. format slot 37 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1699. format slot 38 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1700. format slot 39 of player with locked chest:4 named "&e&lMining Luck &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1701. format slot 40 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1702. format slot 41 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1703. format slot 42 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1704. format slot 43 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1705. format slot 44 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1706. if {SkyWars+.player.%uuid of player%.mining.level} is 3:
  1707. format slot 37 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1708. format slot 38 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1709. format slot 39 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1710. format slot 40 of player with locked chest:4 named "&e&lMining Luck &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1711. format slot 41 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1712. format slot 42 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1713. format slot 43 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1714. format slot 44 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1715. if {SkyWars+.player.%uuid of player%.mining.level} is 4:
  1716. format slot 37 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1717. format slot 38 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1718. format slot 39 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1719. format slot 40 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1720. format slot 41 of player with locked chest:4 named "&e&lMining Luck &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1721. format slot 42 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1722. format slot 43 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1723. format slot 44 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1724. if {SkyWars+.player.%uuid of player%.mining.level} is 5:
  1725. format slot 37 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1726. format slot 38 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1727. format slot 39 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1728. format slot 40 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1729. format slot 41 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1730. format slot 42 of player with locked chest:4 named "&e&lMining Luck &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1731. format slot 43 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1732. format slot 44 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1733. if {SkyWars+.player.%uuid of player%.mining.level} is 6:
  1734. format slot 37 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1735. format slot 38 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1736. format slot 39 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1737. format slot 40 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1738. format slot 41 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1739. format slot 42 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1740. format slot 43 of player with locked chest:4 named "&e&lMining Luck &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1741. format slot 44 of player with locked chest:14 named "&e&lMining Luck &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1742. if {SkyWars+.player.%uuid of player%.mining.level} is 7:
  1743. format slot 37 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1744. format slot 38 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1745. format slot 39 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1746. format slot 40 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1747. format slot 41 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1748. format slot 42 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1749. format slot 43 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1750. format slot 44 of player with locked chest:4 named "&e&lMining Luck &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1751. if {SkyWars+.player.%uuid of player%.mining.level} is 8:
  1752. format slot 37 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1753. format slot 38 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1754. format slot 39 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1755. format slot 40 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1756. format slot 41 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1757. format slot 42 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1758. format slot 43 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1759. format slot 44 of player with locked chest:5 named "&e&lMining Luck &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1760. if {SkyWars+.player.%uuid of player%.adrenaline.level} is set:
  1761. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 0:
  1762. format slot 46 of player with locked chest:4 named "&e&lAdrenaline &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1763. format slot 47 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1764. format slot 48 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1765. format slot 49 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1766. format slot 50 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1767. format slot 51 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1768. format slot 52 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1769. format slot 53 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1770. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 1:
  1771. format slot 46 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1772. format slot 47 of player with locked chest:4 named "&e&lAdrenaline &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1773. format slot 48 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1774. format slot 49 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1775. format slot 50 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1776. format slot 51 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1777. format slot 52 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1778. format slot 53 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1779. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 2:
  1780. format slot 46 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1781. format slot 47 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1782. format slot 48 of player with locked chest:4 named "&e&lAdrenaline &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1783. format slot 49 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1784. format slot 50 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1785. format slot 51 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1786. format slot 52 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1787. format slot 53 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1788. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 3:
  1789. format slot 46 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1790. format slot 47 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1791. format slot 48 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1792. format slot 49 of player with locked chest:4 named "&e&lAdrenaline &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1793. format slot 50 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1794. format slot 51 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1795. format slot 52 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1796. format slot 53 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1797. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 4:
  1798. format slot 46 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1799. format slot 47 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1800. format slot 38 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1801. format slot 49 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1802. format slot 50 of player with locked chest:4 named "&e&lAdrenaline &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1803. format slot 51 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1804. format slot 52 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1805. format slot 53 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1806. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 5:
  1807. format slot 46 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1808. format slot 47 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1809. format slot 48 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1810. format slot 49 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1811. format slot 50 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1812. format slot 51 of player with locked chest:4 named "&e&lAdrenaline &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1813. format slot 52 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1814. format slot 53 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1815. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 6:
  1816. format slot 46 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1817. format slot 47 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1818. format slot 48 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1819. format slot 49 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1820. format slot 50 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1821. format slot 51 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1822. format slot 52 of player with locked chest:4 named "&e&lAdrenaline &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1823. format slot 53 of player with locked chest:14 named "&e&lAdrenaline &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1824. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 7:
  1825. format slot 46 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1826. format slot 47 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1827. format slot 48 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1828. format slot 49 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1829. format slot 50 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1830. format slot 51 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1831. format slot 52 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1832. format slot 53 of player with locked chest:4 named "&e&lAdrenaline &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to close then run [make player execute the command "abilities mining"]
  1833. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 8:
  1834. format slot 46 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 1&8)" with lore "&7&l------------------------||&6Price: &a25 coins||&7&l------------------------" to be unstealable
  1835. format slot 47 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 2&8)" with lore "&7&l------------------------||&6Price: &a50 coins||&7&l------------------------" to be unstealable
  1836. format slot 48 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 3&8)" with lore "&7&l------------------------||&6Price: &a75 coins||&7&l------------------------" to be unstealable
  1837. format slot 49 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 4&8)" with lore "&7&l------------------------||&6Price: &a100 coins||&7&l------------------------" to be unstealable
  1838. format slot 50 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 5&8)" with lore "&7&l------------------------||&6Price: &a125 coins||&7&l------------------------" to be unstealable
  1839. format slot 51 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 6&8)" with lore "&7&l------------------------||&6Price: &a150 coins||&7&l------------------------" to be unstealable
  1840. format slot 52 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 7&8)" with lore "&7&l------------------------||&6Price: &a175 coins||&7&l------------------------" to be unstealable
  1841. format slot 53 of player with locked chest:5 named "&e&lAdrenaline &8(&e&lLevel 8&8)" with lore "&7&l------------------------||&6Price: &a200 coins||&7&l------------------------" to be unstealable
  1842. if text arg 1 is "help":
  1843. play raw sound "random.pop" at player with pitch 1 volume 25
  1844. send "&7&l----------------&7[ {@prefix} &7]&l----------------"
  1845. send "&6/abilities &8» &aOpen the menu!"
  1846. send "&6/abilities help &8» &aList of commands"
  1847. send "&6/abilities reset &8» &aReset your levels to 0"
  1848. send "&6/abilities swords &8» &aUpgrade Legendary Swords abilitie"
  1849. send "&6/abilities vampire &8» &aUpgrade Vampire abilitie"
  1850. send "&6/abilities protection &8» &aUpgrade Protection abilitie"
  1851. send "&6/abilities triple &8» &aUpgrade Triple Arrow abilitie"
  1852. send "&6/abilities mining &8» &aUpgrade Mining Luck abilitie"
  1853. send "&6/abilities adrenaline &8» &aUpgrade Adrenaline abilitie"
  1854. send "&7&l---------------------------------------------"
  1855. stop
  1856. if text arg 1 is not "help" or "reset" or "swords" or "vampire" or "protection" or "triple" or "mining":
  1857. make player execute the command "abilities help"
  1858. stop
  1859. if text arg 1 is "reset":
  1860. set {SkyWars+.player.%uuid of player%.swords.level} to 0
  1861. set {SkyWars+.player.%uuid of player%.vampire.level} to 0
  1862. set {SkyWars+.player.%uuid of player%.protection.level} to 0
  1863. set {SkyWars+.player.%uuid of player%.triple.level} to 0
  1864. set {SkyWars+.player.%uuid of player%.mining.level} to 0
  1865. set {SkyWars+.player.%uuid of player%.adrenaline.level} to 0
  1866. send "&cSetted all your levels to 0!"
  1867. stop
  1868. if text arg 1 is "swords":
  1869. if {SkyWars+.player.%uuid of player%.swords.level} is set:
  1870. if {SkyWars+.player.%uuid of player%.swords.level} is 0:
  1871. if {sw.coins::%player%} >= 25:
  1872. remove 25 from {sw.coins::%player%}
  1873. add 1 to {SkyWars+.player.%uuid of player%.swords.level}
  1874. send player title "&e&lLegendary Swords" with subtitle "&aLevel 1 unlocked!" for 3 seconds
  1875. send "&aSuccesfully purchased!"
  1876. launch ball large firework colored red at player timed 0.1
  1877. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  1878. stop
  1879. else:
  1880. send "&cYou can't afford this!"
  1881. stop
  1882. if {SkyWars+.player.%uuid of player%.swords.level} is 1:
  1883. if {sw.coins::%player%} >= 50:
  1884. remove 50 from {sw.coins::%player%}
  1885. add 1 to {SkyWars+.player.%uuid of player%.swords.level}
  1886. send player title "&e&lLegendary Swords" with subtitle "&aLevel 2 unlocked!" for 3 seconds
  1887. send "&aSuccesfully purchased!"
  1888. launch ball large firework colored blue at player timed 0.1
  1889. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  1890. stop
  1891. else:
  1892. send "&cYou can't afford this!"
  1893. stop
  1894. if {SkyWars+.player.%uuid of player%.swords.level} is 2:
  1895. if {sw.coins::%player%} >= 75:
  1896. remove 75 from {sw.coins::%player%}
  1897. add 1 to {SkyWars+.player.%uuid of player%.swords.level}
  1898. send player title "&e&lLegendary Swords" with subtitle "&aLevel 3 unlocked!" for 3 seconds
  1899. send "&aSuccesfully purchased!"
  1900. launch ball large firework colored yellow at player timed 0.1
  1901. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  1902. stop
  1903. else:
  1904. send "&cYou can't afford this!"
  1905. stop
  1906. if {SkyWars+.player.%uuid of player%.swords.level} is 3:
  1907. if {sw.coins::%player%} >= 100:
  1908. remove 100 from {sw.coins::%player%}
  1909. add 1 to {SkyWars+.player.%uuid of player%.swords.level}
  1910. send player title "&e&lLegendary Swords" with subtitle "&aLevel 4 unlocked!" for 3 seconds
  1911. send "&aSuccesfully purchased!"
  1912. launch ball large firework colored orange at player timed 0.1
  1913. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  1914. stop
  1915. else:
  1916. send "&cYou can't afford this!"
  1917. stop
  1918. if {SkyWars+.player.%uuid of player%.swords.level} is 4:
  1919. if {sw.coins::%player%} >= 125:
  1920. remove 125 from {sw.coins::%player%}
  1921. add 1 to {SkyWars+.player.%uuid of player%.swords.level}
  1922. send player title "&e&lLegendary Swords" with subtitle "&aLevel 5 unlocked!" for 3 seconds
  1923. send "&aSuccesfully purchased!"
  1924. launch ball large firework colored green at player timed 0.1
  1925. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  1926. stop
  1927. else:
  1928. send "&cYou can't afford this!"
  1929. stop
  1930. if {SkyWars+.player.%uuid of player%.swords.level} is 5:
  1931. if {sw.coins::%player%} >= 150:
  1932. remove 150 from {sw.coins::%player%}
  1933. add 1 to {SkyWars+.player.%uuid of player%.swords.level}
  1934. send player title "&e&lLegendary Swords" with subtitle "&aLevel 6 unlocked!" for 3 seconds
  1935. send "&aSuccesfully purchased!"
  1936. launch ball large firework colored white at player timed 0.1
  1937. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  1938. stop
  1939. else:
  1940. send "&cYou can't afford this!"
  1941. stop
  1942. if {SkyWars+.player.%uuid of player%.swords.level} is 6:
  1943. if {sw.coins::%player%} >= 175:
  1944. remove 175 from {sw.coins::%player%}
  1945. add 1 to {SkyWars+.player.%uuid of player%.swords.level}
  1946. send player title "&e&lLegendary Swords" with subtitle "&aLevel 7 unlocked!" for 3 seconds
  1947. send "&aSuccesfully purchased!"
  1948. launch ball large firework colored purple at player timed 0.1
  1949. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  1950. stop
  1951. else:
  1952. send "&cYou can't afford this!"
  1953. stop
  1954. if {SkyWars+.player.%uuid of player%.swords.level} is 7:
  1955. if {sw.coins::%player%} >= 200:
  1956. remove 200 from {sw.coins::%player%}
  1957. add 1 to {SkyWars+.player.%uuid of player%.swords.level}
  1958. send player title "&e&lLegendary Swords" with subtitle "&aLevel 8 unlocked!" for 3 seconds
  1959. send "&aSuccesfully purchased!"
  1960. launch ball large firework colored pink at player timed 0.1
  1961. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  1962. wait 2.5 seconds
  1963. send player title "&e&lLegendary Swords" with subtitle "&cMax level reached!" for 3 seconds
  1964. stop
  1965. else:
  1966. send "&cYou can't afford this!"
  1967. stop
  1968. else:
  1969. send "&cYou reached the max level of this abilitie!"
  1970. stop
  1971. if text arg 1 is "vampire":
  1972. if {SkyWars+.player.%uuid of player%.vampire.level} is set:
  1973. if {SkyWars+.player.%uuid of player%.vampire.level} is 0:
  1974. if {sw.coins::%player%} >= 25:
  1975. remove 25 from {sw.coins::%player%}
  1976. add 1 to {SkyWars+.player.%uuid of player%.vampire.level}
  1977. send player title "&e&lVampire" with subtitle "&aLevel 1 unlocked!" for 3 seconds
  1978. send "&aSuccesfully purchased!"
  1979. launch ball large firework colored red at player timed 0.1
  1980. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  1981. stop
  1982. else:
  1983. send "&cYou can't afford this!"
  1984. stop
  1985. if {SkyWars+.player.%uuid of player%.vampire.level} is 1:
  1986. if {sw.coins::%player%} >= 50:
  1987. remove 50 from {sw.coins::%player%}
  1988. add 1 to {SkyWars+.player.%uuid of player%.vampire.level}
  1989. send player title "&e&lVampire" with subtitle "&aLevel 2 unlocked!" for 3 seconds
  1990. send "&aSuccesfully purchased!"
  1991. launch ball large firework colored blue at player timed 0.1
  1992. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  1993. stop
  1994. else:
  1995. send "&cYou can't afford this!"
  1996. stop
  1997. if {SkyWars+.player.%uuid of player%.vampire.level} is 2:
  1998. if {sw.coins::%player%} >= 75:
  1999. remove 75 from {sw.coins::%player%}
  2000. add 1 to {SkyWars+.player.%uuid of player%.vampire.level}
  2001. send player title "&e&lVampire" with subtitle "&aLevel 3 unlocked!" for 3 seconds
  2002. send "&aSuccesfully purchased!"
  2003. launch ball large firework colored yellow at player timed 0.1
  2004. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2005. stop
  2006. else:
  2007. send "&cYou can't afford this!"
  2008. stop
  2009. if {SkyWars+.player.%uuid of player%.vampire.level} is 3:
  2010. if {sw.coins::%player%} >= 100:
  2011. remove 100 from {sw.coins::%player%}
  2012. add 1 to {SkyWars+.player.%uuid of player%.vampire.level}
  2013. send player title "&e&lVampire" with subtitle "&aLevel 4 unlocked!" for 3 seconds
  2014. send "&aSuccesfully purchased!"
  2015. launch ball large firework colored orange at player timed 0.1
  2016. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2017. stop
  2018. else:
  2019. send "&cYou can't afford this!"
  2020. stop
  2021. if {SkyWars+.player.%uuid of player%.vampire.level} is 4:
  2022. if {sw.coins::%player%} >= 125:
  2023. remove 125 from {sw.coins::%player%}
  2024. add 1 to {SkyWars+.player.%uuid of player%.vampire.level}
  2025. send player title "&e&lVampire" with subtitle "&aLevel 5 unlocked!" for 3 seconds
  2026. send "&aSuccesfully purchased!"
  2027. launch ball large firework colored green at player timed 0.1
  2028. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2029. stop
  2030. else:
  2031. send "&cYou can't afford this!"
  2032. stop
  2033. if {SkyWars+.player.%uuid of player%.vampire.level} is 5:
  2034. if {sw.coins::%player%} >= 150:
  2035. remove 150 from {sw.coins::%player%}
  2036. add 1 to {SkyWars+.player.%uuid of player%.vampire.level}
  2037. send player title "&e&lVampire" with subtitle "&aLevel 6 unlocked!" for 3 seconds
  2038. send "&aSuccesfully purchased!"
  2039. launch ball large firework colored white at player timed 0.1
  2040. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2041. stop
  2042. else:
  2043. send "&cYou can't afford this!"
  2044. stop
  2045. if {SkyWars+.player.%uuid of player%.vampire.level} is 6:
  2046. if {sw.coins::%player%} >= 175:
  2047. remove 175 from {sw.coins::%player%}
  2048. add 1 to {SkyWars+.player.%uuid of player%.vampire.level}
  2049. send player title "&e&lVampire" with subtitle "&aLevel 7 unlocked!" for 3 seconds
  2050. send "&aSuccesfully purchased!"
  2051. launch ball large firework colored purple at player timed 0.1
  2052. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2053. stop
  2054. else:
  2055. send "&cYou can't afford this!"
  2056. stop
  2057. if {SkyWars+.player.%uuid of player%.vampire.level} is 7:
  2058. if {sw.coins::%player%} >= 200:
  2059. remove 200 from {sw.coins::%player%}
  2060. add 1 to {SkyWars+.player.%uuid of player%.vampire.level}
  2061. send player title "&e&lVampire" with subtitle "&aLevel 8 unlocked!" for 3 seconds
  2062. send "&aSuccesfully purchased!"
  2063. launch ball large firework colored pink at player timed 0.1
  2064. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2065. wait 2.5 seconds
  2066. send player title "&e&lVampire" with subtitle "&cMax level reached!" for 3 seconds
  2067. stop
  2068. else:
  2069. send "&cYou can't afford this!"
  2070. stop
  2071. else:
  2072. send "&cYou reached the max level of this abilitie!"
  2073. stop
  2074. if text arg 1 is "protection":
  2075. if {SkyWars+.player.%uuid of player%.protection.level} is set:
  2076. if {SkyWars+.player.%uuid of player%.protection.level} is 0:
  2077. if {sw.coins::%player%} >= 25:
  2078. remove 25 from {sw.coins::%player%}
  2079. add 1 to {SkyWars+.player.%uuid of player%.protection.level}
  2080. send player title "&e&lProtection" with subtitle "&aLevel 1 unlocked!" for 3 seconds
  2081. send "&aSuccesfully purchased!"
  2082. launch ball large firework colored red at player timed 0.1
  2083. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2084. stop
  2085. else:
  2086. send "&cYou can't afford this!"
  2087. stop
  2088. if {SkyWars+.player.%uuid of player%.protection.level} is 1:
  2089. if {sw.coins::%player%} >= 50:
  2090. remove 50 from {sw.coins::%player%}
  2091. add 1 to {SkyWars+.player.%uuid of player%.protection.level}
  2092. send player title "&e&lProtection" with subtitle "&aLevel 2 unlocked!" for 3 seconds
  2093. send "&aSuccesfully purchased!"
  2094. launch ball large firework colored blue at player timed 0.1
  2095. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2096. stop
  2097. else:
  2098. send "&cYou can't afford this!"
  2099. stop
  2100. if {SkyWars+.player.%uuid of player%.protection.level} is 2:
  2101. if {sw.coins::%player%} >= 75:
  2102. remove 75 from {sw.coins::%player%}
  2103. add 1 to {SkyWars+.player.%uuid of player%.protection.level}
  2104. send player title "&e&lProtection" with subtitle "&aLevel 3 unlocked!" for 3 seconds
  2105. send "&aSuccesfully purchased!"
  2106. launch ball large firework colored yellow at player timed 0.1
  2107. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2108. stop
  2109. else:
  2110. send "&cYou can't afford this!"
  2111. stop
  2112. if {SkyWars+.player.%uuid of player%.protection.level} is 3:
  2113. if {sw.coins::%player%} >= 100:
  2114. remove 100 from {sw.coins::%player%}
  2115. add 1 to {SkyWars+.player.%uuid of player%.protection.level}
  2116. send player title "&e&lProtection" with subtitle "&aLevel 4 unlocked!" for 3 seconds
  2117. send "&aSuccesfully purchased!"
  2118. launch ball large firework colored orange at player timed 0.1
  2119. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2120. stop
  2121. else:
  2122. send "&cYou can't afford this!"
  2123. stop
  2124. if {SkyWars+.player.%uuid of player%.protection.level} is 4:
  2125. if {sw.coins::%player%} >= 125:
  2126. remove 125 from {sw.coins::%player%}
  2127. add 1 to {SkyWars+.player.%uuid of player%.protection.level}
  2128. send player title "&e&lProtection" with subtitle "&aLevel 5 unlocked!" for 3 seconds
  2129. send "&aSuccesfully purchased!"
  2130. launch ball large firework colored green at player timed 0.1
  2131. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2132. stop
  2133. else:
  2134. send "&cYou can't afford this!"
  2135. stop
  2136. if {SkyWars+.player.%uuid of player%.protection.level} is 5:
  2137. if {sw.coins::%player%} >= 150:
  2138. remove 150 from {sw.coins::%player%}
  2139. add 1 to {SkyWars+.player.%uuid of player%.protection.level}
  2140. send player title "&e&lProtection" with subtitle "&aLevel 6 unlocked!" for 3 seconds
  2141. send "&aSuccesfully purchased!"
  2142. launch ball large firework colored white at player timed 0.1
  2143. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2144. stop
  2145. else:
  2146. send "&cYou can't afford this!"
  2147. stop
  2148. if {SkyWars+.player.%uuid of player%.protection.level} is 6:
  2149. if {sw.coins::%player%} >= 175:
  2150. remove 175 from {sw.coins::%player%}
  2151. add 1 to {SkyWars+.player.%uuid of player%.protection.level}
  2152. send player title "&e&lProtection" with subtitle "&aLevel 7 unlocked!" for 3 seconds
  2153. send "&aSuccesfully purchased!"
  2154. launch ball large firework colored purple at player timed 0.1
  2155. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2156. stop
  2157. else:
  2158. send "&cYou can't afford this!"
  2159. stop
  2160. if {SkyWars+.player.%uuid of player%.protection.level} is 7:
  2161. if {sw.coins::%player%} >= 200:
  2162. remove 200 from {sw.coins::%player%}
  2163. add 1 to {SkyWars+.player.%uuid of player%.protection.level}
  2164. send player title "&e&lProtection" with subtitle "&aLevel 8 unlocked!" for 3 seconds
  2165. send "&aSuccesfully purchased!"
  2166. launch ball large firework colored pink at player timed 0.1
  2167. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2168. wait 2.5 seconds
  2169. send player title "&e&lProtection" with subtitle "&cMax level reached!" for 3 seconds
  2170. stop
  2171. else:
  2172. send "&cYou can't afford this!"
  2173. stop
  2174. else:
  2175. send "&cYou reached the max level of this abilitie!"
  2176. stop
  2177. if text arg 1 is "triple":
  2178. if {SkyWars+.player.%uuid of player%.triple.level} is set:
  2179. if {SkyWars+.player.%uuid of player%.triple.level} is 0:
  2180. if {sw.coins::%player%} >= 25:
  2181. remove 25 from {sw.coins::%player%}
  2182. add 1 to {SkyWars+.player.%uuid of player%.triple.level}
  2183. send player title "&e&lTriple Arrow" with subtitle "&aLevel 1 unlocked!" for 3 seconds
  2184. send "&aSuccesfully purchased!"
  2185. launch ball large firework colored red at player timed 0.1
  2186. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2187. stop
  2188. else:
  2189. send "&cYou can't afford this!"
  2190. stop
  2191. if {SkyWars+.player.%uuid of player%.triple.level} is 1:
  2192. if {sw.coins::%player%} >= 50:
  2193. remove 50 from {sw.coins::%player%}
  2194. add 1 to {SkyWars+.player.%uuid of player%.triple.level}
  2195. send player title "&e&lTriple Arrow" with subtitle "&aLevel 2 unlocked!" for 3 seconds
  2196. send "&aSuccesfully purchased!"
  2197. launch ball large firework colored blue at player timed 0.1
  2198. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2199. stop
  2200. else:
  2201. send "&cYou can't afford this!"
  2202. stop
  2203. if {SkyWars+.player.%uuid of player%.triple.level} is 2:
  2204. if {sw.coins::%player%} >= 75:
  2205. remove 75 from {sw.coins::%player%}
  2206. add 1 to {SkyWars+.player.%uuid of player%.triple.level}
  2207. send player title "&e&lTriple Arrow" with subtitle "&aLevel 3 unlocked!" for 3 seconds
  2208. send "&aSuccesfully purchased!"
  2209. launch ball large firework colored yellow at player timed 0.1
  2210. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2211. stop
  2212. else:
  2213. send "&cYou can't afford this!"
  2214. stop
  2215. if {SkyWars+.player.%uuid of player%.triple.level} is 3:
  2216. if {sw.coins::%player%} >= 100:
  2217. remove 100 from {sw.coins::%player%}
  2218. add 1 to {SkyWars+.player.%uuid of player%.triple.level}
  2219. send player title "&e&lTriple Arrow" with subtitle "&aLevel 4 unlocked!" for 3 seconds
  2220. send "&aSuccesfully purchased!"
  2221. launch ball large firework colored orange at player timed 0.1
  2222. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2223. stop
  2224. else:
  2225. send "&cYou can't afford this!"
  2226. stop
  2227. if {SkyWars+.player.%uuid of player%.triple.level} is 4:
  2228. if {sw.coins::%player%} >= 125:
  2229. remove 125 from {sw.coins::%player%}
  2230. add 1 to {SkyWars+.player.%uuid of player%.triple.level}
  2231. send player title "&e&lTriple Arrow" with subtitle "&aLevel 5 unlocked!" for 3 seconds
  2232. send "&aSuccesfully purchased!"
  2233. launch ball large firework colored green at player timed 0.1
  2234. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2235. stop
  2236. else:
  2237. send "&cYou can't afford this!"
  2238. stop
  2239. if {SkyWars+.player.%uuid of player%.triple.level} is 5:
  2240. if {sw.coins::%player%} >= 150:
  2241. remove 150 from {sw.coins::%player%}
  2242. add 1 to {SkyWars+.player.%uuid of player%.triple.level}
  2243. send player title "&e&lTriple Arrow" with subtitle "&aLevel 6 unlocked!" for 3 seconds
  2244. send "&aSuccesfully purchased!"
  2245. launch ball large firework colored white at player timed 0.1
  2246. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2247. stop
  2248. else:
  2249. send "&cYou can't afford this!"
  2250. stop
  2251. if {SkyWars+.player.%uuid of player%.triple.level} is 6:
  2252. if {sw.coins::%player%} >= 175:
  2253. remove 175 from {sw.coins::%player%}
  2254. add 1 to {SkyWars+.player.%uuid of player%.triple.level}
  2255. send player title "&e&lTriple Arrow" with subtitle "&aLevel 7 unlocked!" for 3 seconds
  2256. send "&aSuccesfully purchased!"
  2257. launch ball large firework colored purple at player timed 0.1
  2258. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2259. stop
  2260. else:
  2261. send "&cYou can't afford this!"
  2262. stop
  2263. if {SkyWars+.player.%uuid of player%.triple.level} is 7:
  2264. if {sw.coins::%player%} >= 200:
  2265. remove 200 from {sw.coins::%player%}
  2266. add 1 to {SkyWars+.player.%uuid of player%.triple.level}
  2267. send player title "&e&lTriple Arrow" with subtitle "&aLevel 8 unlocked!" for 3 seconds
  2268. send "&aSuccesfully purchased!"
  2269. launch ball large firework colored pink at player timed 0.1
  2270. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2271. wait 2.5 seconds
  2272. send player title "&e&lTriple Arrow" with subtitle "&cMax level reached!" for 3 seconds
  2273. stop
  2274. else:
  2275. send "&cYou can't afford this!"
  2276. stop
  2277. else:
  2278. send "&cYou reached the max level of this abilitie!"
  2279. stop
  2280. if text arg 1 is "mining":
  2281. if {SkyWars+.player.%uuid of player%.mining.level} is set:
  2282. if {SkyWars+.player.%uuid of player%.mining.level} is 0:
  2283. if {sw.coins::%player%} >= 25:
  2284. remove 25 from {sw.coins::%player%}
  2285. add 1 to {SkyWars+.player.%uuid of player%.mining.level}
  2286. send player title "&e&lMining Luck" with subtitle "&aLevel 1 unlocked!" for 3 seconds
  2287. send "&aSuccesfully purchased!"
  2288. launch ball large firework colored red at player timed 0.1
  2289. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2290. stop
  2291. else:
  2292. send "&cYou can't afford this!"
  2293. stop
  2294. if {SkyWars+.player.%uuid of player%.mining.level} is 1:
  2295. if {sw.coins::%player%} >= 50:
  2296. remove 50 from {sw.coins::%player%}
  2297. add 1 to {SkyWars+.player.%uuid of player%.mining.level}
  2298. send player title "&e&lMining Luck" with subtitle "&aLevel 2 unlocked!" for 3 seconds
  2299. send "&aSuccesfully purchased!"
  2300. launch ball large firework colored blue at player timed 0.1
  2301. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2302. stop
  2303. else:
  2304. send "&cYou can't afford this!"
  2305. stop
  2306. if {SkyWars+.player.%uuid of player%.mining.level} is 2:
  2307. if {sw.coins::%player%} >= 75:
  2308. remove 75 from {sw.coins::%player%}
  2309. add 1 to {SkyWars+.player.%uuid of player%.mining.level}
  2310. send player title "&e&lMining Luck" with subtitle "&aLevel 3 unlocked!" for 3 seconds
  2311. send "&aSuccesfully purchased!"
  2312. launch ball large firework colored yellow at player timed 0.1
  2313. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2314. stop
  2315. else:
  2316. send "&cYou can't afford this!"
  2317. stop
  2318. if {SkyWars+.player.%uuid of player%.mining.level} is 3:
  2319. if {sw.coins::%player%} >= 100:
  2320. remove 100 from {sw.coins::%player%}
  2321. add 1 to {SkyWars+.player.%uuid of player%.mining.level}
  2322. send player title "&e&lMining Luck" with subtitle "&aLevel 4 unlocked!" for 3 seconds
  2323. send "&aSuccesfully purchased!"
  2324. launch ball large firework colored orange at player timed 0.1
  2325. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2326. stop
  2327. else:
  2328. send "&cYou can't afford this!"
  2329. stop
  2330. if {SkyWars+.player.%uuid of player%.mining.level} is 4:
  2331. if {sw.coins::%player%} >= 125:
  2332. remove 125 from {sw.coins::%player%}
  2333. add 1 to {SkyWars+.player.%uuid of player%.mining.level}
  2334. send player title "&e&lMining Luck" with subtitle "&aLevel 5 unlocked!" for 3 seconds
  2335. send "&aSuccesfully purchased!"
  2336. launch ball large firework colored green at player timed 0.1
  2337. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2338. stop
  2339. else:
  2340. send "&cYou can't afford this!"
  2341. stop
  2342. if {SkyWars+.player.%uuid of player%.mining.level} is 5:
  2343. if {sw.coins::%player%} >= 150:
  2344. remove 150 from {sw.coins::%player%}
  2345. add 1 to {SkyWars+.player.%uuid of player%.mining.level}
  2346. send player title "&e&lMining Luck" with subtitle "&aLevel 6 unlocked!" for 3 seconds
  2347. send "&aSuccesfully purchased!"
  2348. launch ball large firework colored white at player timed 0.1
  2349. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2350. stop
  2351. else:
  2352. send "&cYou can't afford this!"
  2353. stop
  2354. if {SkyWars+.player.%uuid of player%.mining.level} is 6:
  2355. if {sw.coins::%player%} >= 175:
  2356. remove 175 from {sw.coins::%player%}
  2357. add 1 to {SkyWars+.player.%uuid of player%.mining.level}
  2358. send player title "&e&lMining Luck" with subtitle "&aLevel 7 unlocked!" for 3 seconds
  2359. send "&aSuccesfully purchased!"
  2360. launch ball large firework colored purple at player timed 0.1
  2361. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2362. stop
  2363. else:
  2364. send "&cYou can't afford this!"
  2365. stop
  2366. if {SkyWars+.player.%uuid of player%.mining.level} is 7:
  2367. if {sw.coins::%player%} >= 200:
  2368. remove 200 from {sw.coins::%player%}
  2369. add 1 to {SkyWars+.player.%uuid of player%.mining.level}
  2370. send player title "&e&lMining Luck" with subtitle "&aLevel 8 unlocked!" for 3 seconds
  2371. send "&aSuccesfully purchased!"
  2372. launch ball large firework colored pink at player timed 0.1
  2373. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2374. wait 2.5 seconds
  2375. send player title "&e&lMining Luck" with subtitle "&cMax level reached!" for 3 seconds
  2376. stop
  2377. else:
  2378. send "&cYou can't afford this!"
  2379. stop
  2380. else:
  2381. send "&cYou reached the max level of this abilitie!"
  2382. stop
  2383.  
  2384. if text arg 1 is "adrenaline":
  2385. if {SkyWars+.player.%uuid of player%.adrenaline.level} is set:
  2386. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 0:
  2387. if {sw.coins::%player%} >= 25:
  2388. remove 25 from {sw.coins::%player%}
  2389. add 1 to {SkyWars+.player.%uuid of player%.adrenaline.level}
  2390. send player title "&e&lAdrenaline" with subtitle "&aLevel 1 unlocked!" for 3 seconds
  2391. send "&aSuccesfully purchased!"
  2392. launch ball large firework colored red at player timed 0.1
  2393. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2394. stop
  2395. else:
  2396. send "&cYou can't afford this!"
  2397. stop
  2398. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 1:
  2399. if {sw.coins::%player%} >= 50:
  2400. remove 50 from {sw.coins::%player%}
  2401. add 1 to {SkyWars+.player.%uuid of player%.adrenaline.level}
  2402. send player title "&e&lAdrenaline" with subtitle "&aLevel 2 unlocked!" for 3 seconds
  2403. send "&aSuccesfully purchased!"
  2404. launch ball large firework colored blue at player timed 0.1
  2405. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2406. stop
  2407. else:
  2408. send "&cYou can't afford this!"
  2409. stop
  2410. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 2:
  2411. if {sw.coins::%player%} >= 75:
  2412. remove 75 from {sw.coins::%player%}
  2413. add 1 to {SkyWars+.player.%uuid of player%.adrenaline.level}
  2414. send player title "&e&lAdrenaline" with subtitle "&aLevel 3 unlocked!" for 3 seconds
  2415. send "&aSuccesfully purchased!"
  2416. launch ball large firework colored yellow at player timed 0.1
  2417. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2418. stop
  2419. else:
  2420. send "&cYou can't afford this!"
  2421. stop
  2422. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 3:
  2423. if {sw.coins::%player%} >= 100:
  2424. remove 100 from {sw.coins::%player%}
  2425. add 1 to {SkyWars+.player.%uuid of player%.adrenaline.level}
  2426. send player title "&e&lAdrenaline" with subtitle "&aLevel 4 unlocked!" for 3 seconds
  2427. send "&aSuccesfully purchased!"
  2428. launch ball large firework colored orange at player timed 0.1
  2429. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2430. stop
  2431. else:
  2432. send "&cYou can't afford this!"
  2433. stop
  2434. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 4:
  2435. if {sw.coins::%player%} >= 125:
  2436. remove 125 from {sw.coins::%player%}
  2437. add 1 to {SkyWars+.player.%uuid of player%.adrenaline.level}
  2438. send player title "&e&lAdrenaline" with subtitle "&aLevel 5 unlocked!" for 3 seconds
  2439. send "&aSuccesfully purchased!"
  2440. launch ball large firework colored green at player timed 0.1
  2441. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2442. stop
  2443. else:
  2444. send "&cYou can't afford this!"
  2445. stop
  2446. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 5:
  2447. if {sw.coins::%player%} >= 150:
  2448. remove 150 from {sw.coins::%player%}
  2449. add 1 to {SkyWars+.player.%uuid of player%.adrenaline.level}
  2450. send player title "&e&lAdrenaline" with subtitle "&aLevel 6 unlocked!" for 3 seconds
  2451. send "&aSuccesfully purchased!"
  2452. launch ball large firework colored white at player timed 0.1
  2453. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2454. stop
  2455. else:
  2456. send "&cYou can't afford this!"
  2457. stop
  2458. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 6:
  2459. if {sw.coins::%player%} >= 175:
  2460. remove 175 from {sw.coins::%player%}
  2461. add 1 to {SkyWars+.player.%uuid of player%.adrenaline.level}
  2462. send player title "&e&lAdrenaline" with subtitle "&aLevel 7 unlocked!" for 3 seconds
  2463. send "&aSuccesfully purchased!"
  2464. launch ball large firework colored purple at player timed 0.1
  2465. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2466. stop
  2467. else:
  2468. send "&cYou can't afford this!"
  2469. stop
  2470. if {SkyWars+.player.%uuid of player%.adrenaline.level} is 7:
  2471. if {sw.coins::%player%} >= 200:
  2472. remove 200 from {sw.coins::%player%}
  2473. add 1 to {SkyWars+.player.%uuid of player%.adrenaline.level}
  2474. send player title "&e&lAdrenaline" with subtitle "&aLevel 8 unlocked!" for 3 seconds
  2475. send "&aSuccesfully purchased!"
  2476. launch ball large firework colored pink at player timed 0.1
  2477. play raw sound "random.anvil_use" at player with pitch 1 volume 10
  2478. wait 2.5 seconds
  2479. send player title "&e&lAdrenaline" with subtitle "&cMax level reached!" for 3 seconds
  2480. stop
  2481. else:
  2482. send "&cYou can't afford this!"
  2483. stop
  2484. else:
  2485. send "&cYou reached the max level of this abilitie!"
  2486. stop
  2487.  
  2488. on shoot:
  2489. if shooter is a player:
  2490. if {SkyWars+.player.%uuid of shooter%.playing} is true:
  2491. if projectile is an arrow:
  2492. if {SkyWars+.player.%uuid of shooter%.triple.level} is set:
  2493. if {SkyWars+.player.%uuid of shooter%.triple.status} is false:
  2494. if {SkyWars+.player.%uuid of shooter%.triple.level} is not 0:
  2495. if {SkyWars+.player.%uuid of shooter%.triple.level} is 1:
  2496. chance of 4%:
  2497. set {SkyWars+.player.%uuid of shooter%.triple.status} to true
  2498. make the shooter shoot a arrow at speed 5
  2499. make the shooter shoot a arrow at speed 10
  2500. play raw sound "note.pling" at shooter with pitch 1 volume 10
  2501. wait 1 tick
  2502. set {SkyWars+.player.%uuid of shooter%.triple.status} to false
  2503. stop
  2504. if {SkyWars+.player.%uuid of shooter%.triple.level} is 2:
  2505. chance of 6%:
  2506. set {SkyWars+.player.%uuid of shooter%.triple.status} to true
  2507. make the shooter shoot a arrow at speed 5
  2508. make the shooter shoot a arrow at speed 10
  2509. play raw sound "note.pling" at shooter with pitch 1 volume 10
  2510. wait 1 tick
  2511. set {SkyWars+.player.%uuid of shooter%.triple.status} to false
  2512. stop
  2513. if {SkyWars+.player.%uuid of shooter%.triple.level} is 3:
  2514. chance of 8%:
  2515. set {SkyWars+.player.%uuid of shooter%.triple.status} to true
  2516. make the shooter shoot a arrow at speed 5
  2517. make the shooter shoot a arrow at speed 10
  2518. play raw sound "note.pling" at shooter with pitch 1 volume 10
  2519. wait 1 tick
  2520. set {SkyWars+.player.%uuid of shooter%.triple.status} to false
  2521. stop
  2522. if {SkyWars+.player.%uuid of shooter%.triple.level} is 4:
  2523. chance of 10%:
  2524. set {SkyWars+.player.%uuid of shooter%.triple.status} to true
  2525. make the shooter shoot a arrow at speed 5
  2526. make the shooter shoot a arrow at speed 10
  2527. play raw sound "note.pling" at shooter with pitch 1 volume 10
  2528. wait 1 tick
  2529. set {SkyWars+.player.%uuid of shooter%.triple.status} to false
  2530. stop
  2531. if {SkyWars+.player.%uuid of shooter%.triple.level} is 5:
  2532. chance of 12%:
  2533. set {SkyWars+.player.%uuid of shooter%.triple.status} to true
  2534. make the shooter shoot a arrow at speed 5
  2535. make the shooter shoot a arrow at speed 10
  2536. play raw sound "note.pling" at shooter with pitch 1 volume 10
  2537. wait 1 tick
  2538. set {SkyWars+.player.%uuid of shooter%.triple.status} to false
  2539. stop
  2540. if {SkyWars+.player.%uuid of shooter%.triple.level} is 6:
  2541. chance of 14%:
  2542. set {SkyWars+.player.%uuid of shooter%.triple.status} to true
  2543. make the shooter shoot a arrow at speed 5
  2544. make the shooter shoot a arrow at speed 10
  2545. play raw sound "note.pling" at shooter with pitch 1 volume 10
  2546. wait 1 tick
  2547. set {SkyWars+.player.%uuid of shooter%.triple.status} to false
  2548. stop
  2549. if {SkyWars+.player.%uuid of shooter%.triple.level} is 7:
  2550. chance of 16%:
  2551. set {SkyWars+.player.%uuid of shooter%.triple.status} to true
  2552. make the shooter shoot a arrow at speed 5
  2553. make the shooter shoot a arrow at speed 10
  2554. play raw sound "note.pling" at shooter with pitch 1 volume 10
  2555. wait 1 tick
  2556. set {SkyWars+.player.%uuid of shooter%.triple.status} to false
  2557. stop
  2558. if {SkyWars+.player.%uuid of shooter%.triple.level} is 8:
  2559. chance of 18%:
  2560. set {SkyWars+.player.%uuid of shooter%.triple.status} to true
  2561. make the shooter shoot a arrow at speed 5
  2562. make the shooter shoot a arrow at speed 10
  2563. play raw sound "note.pling" at shooter with pitch 1 volume 10
  2564. wait 1 tick
  2565. set {SkyWars+.player.%uuid of shooter%.triple.status} to false
  2566. stop
  2567. else:
  2568. stop
  2569. else:
  2570. stop
  2571. else:
  2572. stop
  2573. else:
  2574. stop
  2575. else:
  2576. stop
  2577. else:
  2578. stop
  2579. else:
  2580. stop
  2581.  
  2582. on damage of player:
  2583. if damage was caused by projectile:
  2584. if {SkyWars+.player.%uuid of victim%.playing} is true:
  2585. if {SkyWars+.player.%uuid of victim%.protection.level} is set:
  2586. if {SkyWars+.player.%uuid of victim%.protection.level} is not 0:
  2587. if {SkyWars+.player.%uuid of victim%.protection.level} is 1:
  2588. chance of 4%:
  2589. play raw sound "note.pling" at victim with pitch 1 volume 10
  2590. cancel event
  2591. stop
  2592. if {SkyWars+.player.%uuid of victim%.protection.level} is 2:
  2593. chance of 6%:
  2594. play raw sound "note.pling" at victim with pitch 1 volume 10
  2595. cancel event
  2596. stop
  2597. if {SkyWars+.player.%uuid of victim%.protection.level} is 3:
  2598. chance of 8%:
  2599. play raw sound "note.pling" at victim with pitch 1 volume 10
  2600. cancel event
  2601. stop
  2602. if {SkyWars+.player.%uuid of victim%.protection.level} is 4:
  2603. chance of 10%:
  2604. play raw sound "note.pling" at victim with pitch 1 volume 10
  2605. cancel event
  2606. stop
  2607. if {SkyWars+.player.%uuid of victim%.protection.level} is 5:
  2608. chance of 12%:
  2609. play raw sound "note.pling" at victim with pitch 1 volume 10
  2610. cancel event
  2611. stop
  2612. if {SkyWars+.player.%uuid of victim%.protection.level} is 6:
  2613. chance of 14%:
  2614. play raw sound "note.pling" at victim with pitch 1 volume 10
  2615. cancel event
  2616. stop
  2617. if {SkyWars+.player.%uuid of victim%.protection.level} is 7:
  2618. chance of 16%:
  2619. play raw sound "note.pling" at victim with pitch 1 volume 10
  2620. cancel event
  2621. stop
  2622. if {SkyWars+.player.%uuid of victim%.protection.level} is 8:
  2623. chance of 18%:
  2624. play raw sound "note.pling" at victim with pitch 1 volume 10
  2625. cancel event
  2626. stop
  2627. else:
  2628. stop
  2629. else:
  2630. stop
  2631. else:
  2632. stop
  2633. else:
  2634. stop
  2635. else:
  2636. stop
  2637.  
  2638.  
  2639. # Vampire Abilitie #
  2640. on damage of player:
  2641. if attacker is a player:
  2642. if {SkyWars+.player.%uuid of victim%.playing} is true:
  2643. if {SkyWars+.player.%uuid of attacker%.playing} is true:
  2644. if damage is greater than or equal to health of victim:
  2645. if {SkyWars+.player.%uuid of attacker%.vampire.level} is set:
  2646. if {SkyWars+.player.%uuid of attacker%.vampire.level} is not 0:
  2647. if {SkyWars+.player.%uuid of attacker%.vampire.level} is 1:
  2648. chance of 4%:
  2649. play raw sound "note.pling" at attacker with pitch 1 volume 10
  2650. heal the attacker
  2651. stop
  2652. if {SkyWars+.player.%uuid of attacker%.vampire.level} is 2:
  2653. chance of 6%:
  2654. play raw sound "note.pling" at attacker with pitch 1 volume 10
  2655. heal the attacker
  2656. stop
  2657. if {SkyWars+.player.%uuid of attacker%.vampire.level} is 3:
  2658. chance of 8%:
  2659. play raw sound "note.pling" at attacker with pitch 1 volume 10
  2660. heal the attacker
  2661. stop
  2662. if {SkyWars+.player.%uuid of attacker%.vampire.level} is 4:
  2663. chance of 10%:
  2664. play raw sound "note.pling" at attacker with pitch 1 volume 10
  2665. heal the attacker
  2666. stop
  2667. if {SkyWars+.player.%uuid of attacker%.vampire.level} is 5:
  2668. chance of 12%:
  2669. play raw sound "note.pling" at attacker with pitch 1 volume 10
  2670. heal the attacker
  2671. stop
  2672. if {SkyWars+.player.%uuid of attacker%.vampire.level} is 6:
  2673. chance of 14%:
  2674. play raw sound "note.pling" at attacker with pitch 1 volume 10
  2675. heal the attacker
  2676. stop
  2677. if {SkyWars+.player.%uuid of attacker%.vampire.level} is 7:
  2678. chance of 16%:
  2679. play raw sound "note.pling" at attacker with pitch 1 volume 10
  2680. heal the attacker
  2681. stop
  2682. if {SkyWars+.player.%uuid of attacker%.vampire.level} is 8:
  2683. chance of 18%:
  2684. play raw sound "note.pling" at attacker with pitch 1 volume 10
  2685. heal the attacker
  2686. stop
  2687. else:
  2688. stop
  2689. else:
  2690. stop
  2691. else:
  2692. stop
  2693. else:
  2694. stop
  2695. else:
  2696. stop
  2697. else:
  2698. stop
  2699. else:
  2700. stop
  2701.  
  2702. # Adrenaline Abilitie #
  2703. on damage of player:
  2704. if attacker is a player:
  2705. if {SkyWars+.player.%uuid of victim%.playing} is true:
  2706. if {SkyWars+.player.%uuid of victim%.playing} is true:
  2707. if damage is greater than or equal to health of victim:
  2708. if {SkyWars+.player.%uuid of victim%.adrenaline.level} is set:
  2709. if {SkyWars+.player.%uuid of victim%.adrenaline.level} is not 0:
  2710. if {SkyWars+.player.%uuid of victim%.adrenaline.level} is 1:
  2711. chance of 4%:
  2712. play raw sound "note.pling" at victim with pitch 1 volume 10
  2713. apply speed 1 to victim for 2 seconds
  2714. stop
  2715. if {SkyWars+.player.%uuid of victim%.adrenaline.level} is 2:
  2716. chance of 6%:
  2717. play raw sound "note.pling" at victim with pitch 1 volume 10
  2718. apply speed 1 to victim for 2.5 seconds
  2719. stop
  2720. if {SkyWars+.player.%uuid of victim%.adrenaline.level} is 3:
  2721. chance of 8%:
  2722. play raw sound "note.pling" at victim with pitch 1 volume 10
  2723. apply speed 1 to victim for 3 seconds
  2724. stop
  2725. if {SkyWars+.player.%uuid of victim%.adrenaline.level} is 4:
  2726. chance of 10%:
  2727. play raw sound "note.pling" at victim with pitch 1 volume 10
  2728. apply speed 1.7 to victim for 3 seconds
  2729. stop
  2730. if {SkyWars+.player.%uuid of victim%.adrenaline.level} is 5:
  2731. chance of 12%:
  2732. play raw sound "note.pling" at victim with pitch 1 volume 10
  2733. apply speed 2 to victim for 2 seconds
  2734. stop
  2735. if {SkyWars+.player.%uuid of victim%.adrenaline.level} is 6:
  2736. chance of 14%:
  2737. play raw sound "note.pling" at victim with pitch 1 volume 10
  2738. apply speed 2 to victim for 3 seconds
  2739. stop
  2740. if {SkyWars+.player.%uuid of victim%.adrenaline.level} is 7:
  2741. chance of 16%:
  2742. play raw sound "note.pling" at victim with pitch 1 volume 10
  2743. apply speed 2 to victim for 3.5 seconds
  2744. stop
  2745. if {SkyWars+.player.%uuid of victim%.adrenaline.level} is 8:
  2746. chance of 18%:
  2747. play raw sound "note.pling" at victim with pitch 1 volume 10
  2748. apply speed 3 to victim for 2 seconds
  2749. stop
  2750. else:
  2751. stop
  2752. else:
  2753. stop
  2754. else:
  2755. stop
  2756. else:
  2757. stop
  2758. else:
  2759. stop
  2760. else:
  2761. stop
  2762. else:
  2763. stop
  2764.  
  2765. on mine of any ore:
  2766. if {SkyWars+.player.%uuid of player%.playing} is true:
  2767. if {SkyWars+.player.%uuid of player%.mining.level} is set:
  2768. if {SkyWars+.player.%uuid of player%.mining.level} is not 0:
  2769. if {SkyWars+.player.%uuid of player%.mining.level} is 1:
  2770. if event-block is a gold ore:
  2771. chance of 4%:
  2772. drop 2 gold ingot
  2773. play raw sound "note.pling" at player with pitch 1 volume 10
  2774. if event-block is a iron ore:
  2775. chance of 6%:
  2776. drop 2 iron ingot
  2777. play raw sound "note.pling" at player with pitch 1 volume 10
  2778. if event-block is a coal ore:
  2779. chance of 8%:
  2780. drop 2 coal
  2781. play raw sound "note.pling" at player with pitch 1 volume 10
  2782. if event-block is a diamond ore:
  2783. chance of 10%:
  2784. drop 2 diamond
  2785. play raw sound "note.pling" at player with pitch 1 volume 10
  2786. if event-block is a redstone ore:
  2787. chance of 12%:
  2788. drop 2 redstone
  2789. play raw sound "note.pling" at player with pitch 1 volume 10
  2790. if {SkyWars+.player.%uuid of player%.mining.level} is 2:
  2791. if event-block is a gold ore:
  2792. chance of 14%:
  2793. drop 2 gold ingot
  2794. play raw sound "note.pling" at player with pitch 1 volume 10
  2795. if event-block is a iron ore:
  2796. chance of 16%:
  2797. drop 2 iron ingot
  2798. play raw sound "note.pling" at player with pitch 1 volume 10
  2799. if event-block is a coal ore:
  2800. chance of 18%:
  2801. drop 2 coal
  2802. play raw sound "note.pling" at player with pitch 1 volume 10
  2803. if event-block is a diamond ore:
  2804. chance of 20%:
  2805. drop 2 diamond
  2806. play raw sound "note.pling" at player with pitch 1 volume 10
  2807. if event-block is a redstone ore:
  2808. chance of 22%:
  2809. drop 2 redstone
  2810. play raw sound "note.pling" at player with pitch 1 volume 10
  2811. if {SkyWars+.player.%uuid of player%.mining.level} is 3:
  2812. if event-block is a gold ore:
  2813. chance of 30%:
  2814. drop 2 gold ingot
  2815. play raw sound "note.pling" at player with pitch 1 volume 10
  2816. if event-block is a iron ore:
  2817. chance of 30%:
  2818. drop 2 iron ingot
  2819. play raw sound "note.pling" at player with pitch 1 volume 10
  2820. if event-block is a coal ore:
  2821. chance of 30%:
  2822. drop 2 coal
  2823. play raw sound "note.pling" at player with pitch 1 volume 10
  2824. if event-block is a diamond ore:
  2825. chance of 30%:
  2826. drop 2 diamond
  2827. play raw sound "note.pling" at player with pitch 1 volume 10
  2828. if event-block is a redstone ore:
  2829. chance of 30%:
  2830. drop 2 redstone
  2831. play raw sound "note.pling" at player with pitch 1 volume 10
  2832. if {SkyWars+.player.%uuid of player%.mining.level} is 4:
  2833. if event-block is a gold ore:
  2834. chance of 40%:
  2835. drop 2 gold ingot
  2836. play raw sound "note.pling" at player with pitch 1 volume 10
  2837. if event-block is a iron ore:
  2838. chance of 40%:
  2839. drop 2 iron ingot
  2840. play raw sound "note.pling" at player with pitch 1 volume 10
  2841. if event-block is a coal ore:
  2842. chance of 40%:
  2843. drop 2 coal
  2844. play raw sound "note.pling" at player with pitch 1 volume 10
  2845. if event-block is a diamond ore:
  2846. chance of 40%:
  2847. drop 2 diamond
  2848. play raw sound "note.pling" at player with pitch 1 volume 10
  2849. if event-block is a redstone ore:
  2850. chance of 40%:
  2851. drop 2 redstone
  2852. play raw sound "note.pling" at player with pitch 1 volume 10
  2853. if {SkyWars+.player.%uuid of player%.mining.level} is 5:
  2854. if event-block is a gold ore:
  2855. chance of 50%:
  2856. drop 2 gold ingot
  2857. play raw sound "note.pling" at player with pitch 1 volume 10
  2858. if event-block is a iron ore:
  2859. chance of 50%:
  2860. drop 2 iron ingot
  2861. play raw sound "note.pling" at player with pitch 1 volume 10
  2862. if event-block is a coal ore:
  2863. chance of 50%:
  2864. drop 2 coal
  2865. play raw sound "note.pling" at player with pitch 1 volume 10
  2866. if event-block is a diamond ore:
  2867. chance of 50%:
  2868. drop 2 diamond
  2869. play raw sound "note.pling" at player with pitch 1 volume 10
  2870. if event-block is a redstone ore:
  2871. chance of 50%:
  2872. drop 2 redstone
  2873. play raw sound "note.pling" at player with pitch 1 volume 10
  2874. if {SkyWars+.player.%uuid of player%.mining.level} is 6:
  2875. if event-block is a gold ore:
  2876. chance of 60%:
  2877. drop 2 gold ingot
  2878. play raw sound "note.pling" at player with pitch 1 volume 10
  2879. if event-block is a iron ore:
  2880. chance of 60%:
  2881. drop 2 iron ingot
  2882. play raw sound "note.pling" at player with pitch 1 volume 10
  2883. if event-block is a coal ore:
  2884. chance of 60%:
  2885. drop 2 coal
  2886. play raw sound "note.pling" at player with pitch 1 volume 10
  2887. if event-block is a diamond ore:
  2888. chance of 60%:
  2889. drop 2 diamond
  2890. play raw sound "note.pling" at player with pitch 1 volume 10
  2891. if event-block is a redstone ore:
  2892. chance of 60%:
  2893. drop 2 redstone
  2894. play raw sound "note.pling" at player with pitch 1 volume 10
  2895. if {SkyWars+.player.%uuid of player%.mining.level} is 7:
  2896. if event-block is a gold ore:
  2897. chance of 70%:
  2898. drop 2 gold ingot
  2899. play raw sound "note.pling" at player with pitch 1 volume 10
  2900. if event-block is a iron ore:
  2901. chance of 70%:
  2902. drop 2 iron ingot
  2903. play raw sound "note.pling" at player with pitch 1 volume 10
  2904. if event-block is a coal ore:
  2905. chance of 70%:
  2906. drop 2 coal
  2907. play raw sound "note.pling" at player with pitch 1 volume 10
  2908. if event-block is a diamond ore:
  2909. chance of 70%:
  2910. drop 2 diamond
  2911. play raw sound "note.pling" at player with pitch 1 volume 10
  2912. if event-block is a redstone ore:
  2913. chance of 70%:
  2914. drop 2 redstone
  2915. play raw sound "note.pling" at player with pitch 1 volume 10
  2916. if {SkyWars+.player.%uuid of player%.mining.level} is 8:
  2917. if event-block is a gold ore:
  2918. chance of 80%:
  2919. drop 2 gold ingot
  2920. play raw sound "note.pling" at player with pitch 1 volume 10
  2921. if event-block is a iron ore:
  2922. chance of 80%:
  2923. drop 2 iron ingot
  2924. play raw sound "note.pling" at player with pitch 1 volume 10
  2925. if event-block is a coal ore:
  2926. chance of 80%:
  2927. drop 2 coal
  2928. play raw sound "note.pling" at player with pitch 1 volume 10
  2929. if event-block is a diamond ore:
  2930. chance of 80%:
  2931. drop 2 diamond
  2932. play raw sound "note.pling" at player with pitch 1 volume 10
  2933. if event-block is a redstone ore:
  2934. chance of 80%:
  2935. drop 2 redstone
  2936. play raw sound "note.pling" at player with pitch 1 volume 10
  2937. else:
  2938. stop
  2939. else:
  2940. stop
  2941. else:
  2942. stop
  2943. else:
  2944. stop
  2945.  
  2946. on death:
  2947. if {sw::%player%::ingame} is true:
  2948. victim is a player
  2949. attacker is a player
  2950. add 1 to {sw::kills::%attacker%}
  2951. add 1 to {sw::deaths::%victim%}
  2952.  
  2953. on shoot:
  2954. if {sw::%shooter%::ingame} is true:
  2955. add 1 to {sw::arrows::%shooter%}
  2956.  
  2957. on any movement:
  2958. if {sw::%player%::ingame} is true:
  2959. add 1 to {sw::walk::%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement