Advertisement
gamie0412

Untitled

May 19th, 2021
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 63.87 KB | None | 0 0
  1. #Actual cells skript for PickLocked by gamie0412#4763
  2.  
  3. #=================================================================================================
  4.  
  5. every hour:
  6. if {timeleft-b-1} is higher than 0:
  7. remove 1 from {timeleft-b-1}
  8. if {timeleft-b-1} is less than 1:
  9. set {_member} to first element out of all members of region "b-2"
  10. set {cells::%{uuid::%%{_member}%%}%} to 0
  11. wait 3 ticks
  12. execute console command "rg removemember -w ul_PickLocked b-2 %all members of region ""b-2""%"
  13. set {b_2-claimed} to false
  14. if {timeleft-b-2} is higher than 0:
  15. remove 1 from {timeleft-b-2}
  16. if {timeleft-b-2} is less than 1:
  17. set {_member} to first element out of all members of region "b-2"
  18. set {cells::%{uuid::%%{_member}%%}%} to 0
  19. wait 3 ticks
  20. execute console command "rg removemember -w ul_PickLocked b-2 %all members of region ""b-2""%"
  21. set {b_2-claimed} to false
  22. if {timeleft-b-3} is higher than 0:
  23. remove 1 from {timeleft-b-3}
  24. if {timeleft-b-3} is less than 1:
  25. set {_member} to first element out of all members of region "b-3"
  26. set {cells::%{uuid::%%{_member}%%}%} to 0
  27. wait 3 ticks
  28. execute console command "rg removemember -w ul_PickLocked b-3 %all members of region ""b-3""%"
  29. set {b_3-claimed} to false
  30. if {timeleft-b-4} is higher than 0:
  31. remove 1 from {timeleft-b-4}
  32. if {timeleft-b-4} is less than 1:
  33. set {_member} to first element out of all members of region "b-4"
  34. set {cells::%{uuid::%%{_member}%%}%} to 0
  35. wait 3 ticks
  36. execute console command "rg removemember -w ul_PickLocked b-4 %all members of region ""b-4""%"
  37. set {b_4-claimed} to false
  38. if {timeleft-b-5} is higher than 0:
  39. remove 1 from {timeleft-b-5}
  40. if {timeleft-b-5} is less than 1:
  41. set {_member} to first element out of all members of region "b-5"
  42. set {cells::%{uuid::%%{_member}%%}%} to 0
  43. wait 3 ticks
  44. execute console command "rg removemember -w ul_PickLocked b-5 %all members of region ""b-5""%"
  45. set {b_5-claimed} to false
  46. if {timeleft-b-6} is higher than 0:
  47. remove 1 from {timeleft-b-6}
  48. if {timeleft-b-6} is less than 1:
  49. set {_member} to first element out of all members of region "b-6"
  50. set {cells::%{uuid::%%{_member}%%}%} to 0
  51. wait 3 ticks
  52. execute console command "rg removemember -w ul_PickLocked b-6 %all members of region ""b-6""%"
  53. set {b_6-claimed} to false
  54. if {timeleft-b-7} is higher than 0:
  55. remove 1 from {timeleft-b-7}
  56. if {timeleft-b-7} is less than 1:
  57. set {_member} to first element out of all members of region "b-7"
  58. set {cells::%{uuid::%%{_member}%%}%} to 0
  59. wait 3 ticks
  60. execute console command "rg removemember -w ul_PickLocked b-7 %all members of region ""b-7""%"
  61. set {b_7-claimed} to false
  62. if {timeleft-b-8} is higher than 0:
  63. remove 1 from {timeleft-b-8}
  64. if {timeleft-b-8} is less than 1:
  65. set {_member} to first element out of all members of region "b-8"
  66. set {cells::%{uuid::%%{_member}%%}%} to 0
  67. wait 3 ticks
  68. execute console command "rg removemember -w ul_PickLocked b-8 %all members of region ""b-8""%"
  69. set {b_8-claimed} to false
  70. if {timeleft-b-9} is higher than 0:
  71. remove 1 from {timeleft-b-9}
  72. if {timeleft-b-9} is less than 1:
  73. set {_member} to first element out of all members of region "b-9"
  74. set {cells::%{uuid::%%{_member}%%}%} to 0
  75. wait 3 ticks
  76. execute console command "rg removemember -w ul_PickLocked b-9 %all members of region ""b-9""%"
  77. set {b_9-claimed} to false
  78. if {timeleft-b-10} is higher than 0:
  79. remove 1 from {timeleft-b-10}
  80. if {timeleft-b-10} is less than 1:
  81. set {_member} to first element out of all members of region "b-10"
  82. set {cells::%{uuid::%%{_member}%%}%} to 0
  83. wait 3 ticks
  84. execute console command "rg removemember -w ul_PickLocked b-10 %all members of region ""b-10""%"
  85. set {b_10-claimed} to false
  86. if {timeleft-b-11} is higher than 0:
  87. remove 1 from {timeleft-b-11}
  88. if {timeleft-b-11} is less than 1:
  89. set {_member} to first element out of all members of region "b-11"
  90. set {cells::%{uuid::%%{_member}%%}%} to 0
  91. wait 3 ticks
  92. execute console command "rg removemember -w ul_PickLocked b-11 %all members of region ""b-11""%"
  93. set {b_11-claimed} to false
  94. if {timeleft-b-12} is higher than 0:
  95. remove 1 from {timeleft-b-12}
  96. if {timeleft-b-12} is less than 1:
  97. set {_member} to first element out of all members of region "b-12"
  98. set {cells::%{uuid::%%{_member}%%}%} to 0
  99. wait 3 ticks
  100. execute console command "rg removemember -w ul_PickLocked b-12 %all members of region ""b-12""%"
  101. set {b_12-claimed} to false
  102. if {timeleft-b-13} is higher than 0:
  103. remove 1 from {timeleft-b-13}
  104. if {timeleft-b-13} is less than 1:
  105. set {_member} to first element out of all members of region "b-13"
  106. set {cells::%{uuid::%%{_member}%%}%} to 0
  107. wait 3 ticks
  108. execute console command "rg removemember -w ul_PickLocked b-13 %all members of region ""b-13""%"
  109. set {b_13-claimed} to false
  110. if {timeleft-b-14} is higher than 0:
  111. remove 1 from {timeleft-b-14}
  112. if {timeleft-b-14} is less than 1:
  113. set {_member} to first element out of all members of region "b-14"
  114. set {cells::%{uuid::%%{_member}%%}%} to 0
  115. wait 3 ticks
  116. execute console command "rg removemember -w ul_PickLocked b-14 %all members of region ""b-14""%"
  117. set {b_14-claimed} to false
  118. if {timeleft-b-15} is higher than 0:
  119. remove 1 from {timeleft-b-15}
  120. if {timeleft-b-15} is less than 1:
  121. set {_member} to first element out of all members of region "b-15"
  122. set {cells::%{uuid::%%{_member}%%}%} to 0
  123. wait 3 ticks
  124. execute console command "rg removemember -w ul_PickLocked b-15 %all members of region ""b-15""%"
  125. set {b_15-claimed} to false
  126. if {timeleft-b-16} is higher than 0:
  127. remove 1 from {timeleft-b-16}
  128. if {timeleft-b-16} is less than 1:
  129. set {_member} to first element out of all members of region "b-16"
  130. set {cells::%{uuid::%%{_member}%%}%} to 0
  131. wait 3 ticks
  132. execute console command "rg removemember -w ul_PickLocked b-16 %all members of region ""b-16""%"
  133. set {b_16-claimed} to false
  134.  
  135. command /test:
  136. trigger:
  137. set {timeleft-b-16} to 2
  138.  
  139. command /hi:
  140. trigger:
  141. set {cells::%{uuid::%%player%%}%} to 0
  142.  
  143. on join:
  144. set {uuid::%player%} to player's uuid
  145.  
  146. #=================================================================================================
  147.  
  148. command /claimed:
  149. permission: cells.start
  150. trigger:
  151. set {b_6-claimed} to false
  152. set {b_7-claimed} to false
  153. set {b_8-claimed} to false
  154. set {b_9-claimed} to false
  155. set {b_10-claimed} to false
  156. set {b_11-claimed} to false
  157. set {b_12-claimed} to false
  158. set {b_13-claimed} to false
  159. set {b_14-claimed} to false
  160. set {b_15-claimed} to false
  161. set {b_16-claimed} to false
  162.  
  163. #=================================================================================================
  164.  
  165. on leftclick on iron door:
  166. if event-block is in region "b_1":
  167. if {b_1-claimed} is true:
  168. if player is member of region "b-1":
  169. open virtual chest inventory with size 3 named "&cCell b-1" to player
  170. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  171. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  172. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  173. set {timeleft-b-1} to 0
  174. set {b_1-claimed} to false
  175. execute console command "rg removemember -w ul_PickLocked -a b-1"
  176. set {cells::%{uuid::%%player%%}%} to 0
  177. message "&6&lCELLS &8» &7You just unrented your cell"
  178. close player's inventory
  179. play sound "minecraft:block.anvil.land" with volume 5 to player
  180. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  181. close player's inventory
  182. format gui slot 13 of player with paper named "&a%{timeleft-b-1}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  183. if balance of player is higher than or equal to 150:
  184. remove 150 from player's balance
  185. add 24 to {timeleft-b-1}
  186. wait 3 ticks
  187. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-1}%&7 hours left"
  188. stop
  189. if balance of player is less than 150:
  190. message "&6&lCELLS &8» &7You don't have enough money to do this"
  191.  
  192. on rightclick on iron door:
  193. if event-block is in region "b_1":
  194. if {b_1-claimed} is false:
  195. open virtual chest inventory with size 3 named "&cCell b-1" to player
  196. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  197. if {cells::%{uuid::%%player%%}%} is 0:
  198. if balance of player is higher than or equal to 150:
  199. remove 150 from player's balance
  200. message "&6&lCELLS &8» &7You just bought cell b-1"
  201. execute console command "rg addmember -w ul_PickLocked b-1 %player%"
  202. add 24 to {timeleft-b-1}
  203. add 1 to {cells::%{uuid::%%player%%}%}
  204. set {b_1-claimed} to true
  205. close player's inventory
  206. stop
  207. if balance of player is less than 150:
  208. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  209. stop
  210. if {cells::%{uuid::%%player%%}%} is higher than 0:
  211. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  212. stop
  213. if {b_1-claimed} is true:
  214. if player is member of region "b-1":
  215. toggle event-block
  216. play sound "minecraft:block.iron_door.close" with volume 10 to player
  217. if player is not member of region "b-1":
  218. open virtual chest inventory with size 3 named "&cCell b-1" to player
  219. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-1""%"
  220. format gui slot 4 of player with paper named "&a%{timeleft-b-1}%hours left"
  221.  
  222. #=================================================================================================
  223.  
  224. on leftclick on iron door:
  225. if event-block is in region "b_2":
  226. if {b_2-claimed} is true:
  227. if player is member of region "b-2":
  228. open virtual chest inventory with size 3 named "&cCell b-2" to player
  229. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  230. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  231. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  232. set {timeleft-b-2} to 0
  233. set {b_2-claimed} to false
  234. execute console command "rg removemember -w ul_PickLocked -a b-2"
  235. set {cells::%{uuid::%%player%%}%} to 0
  236. message "&6&lCELLS &8» &7You just unrented your cell"
  237. close player's inventory
  238. play sound "minecraft:block.anvil.land" with volume 5 to player
  239. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  240. close player's inventory
  241. format gui slot 13 of player with paper named "&a%{timeleft-b-2}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  242. if balance of player is higher than or equal to 150:
  243. remove 150 from player's balance
  244. add 24 to {timeleft-b-2}
  245. wait 3 ticks
  246. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-2}%&7 hours left"
  247. stop
  248. if balance of player is less than 150:
  249. message "&6&lCELLS &8» &7You don't have enough money to do this"
  250.  
  251. on rightclick on iron door:
  252. if event-block is in region "b_2":
  253. if {b_2-claimed} is false:
  254. open virtual chest inventory with size 3 named "&cCell b-2" to player
  255. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  256. if {cells::%{uuid::%%player%%}%} is 0:
  257. if balance of player is higher than or equal to 150:
  258. remove 150 from player's balance
  259. message "&6&lCELLS &8» &7You just bought cell b-2"
  260. execute console command "rg addmember -w ul_PickLocked b-2 %player%"
  261. add 24 to {timeleft-b-2}
  262. add 1 to {cells::%{uuid::%%player%%}%}
  263. set {b_2-claimed} to true
  264. close player's inventory
  265. stop
  266. if balance of player is less than 150:
  267. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  268. stop
  269. if {cells::%{uuid::%%player%%}%} is 1:
  270. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  271. stop
  272. if {b_2-claimed} is true:
  273. if player is member of region "b-2":
  274. toggle event-block
  275. play sound "minecraft:block.iron_door.close" with volume 10 to player
  276. if player is not member of region "b-2":
  277. open virtual chest inventory with size 3 named "&cCell b-2" to player
  278. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-2""%"
  279. format gui slot 4 of player with paper named "&a%{timeleft-b-2}%hours left"
  280.  
  281. #=================================================================================================
  282.  
  283. on leftclick on iron door:
  284. if event-block is in region "b_3":
  285. if {b_3-claimed} is true:
  286. if player is member of region "b-3":
  287. open virtual chest inventory with size 3 named "&cCell b-3" to player
  288. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  289. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  290. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  291. set {timeleft-b-3} to 0
  292. set {b_3-claimed} to false
  293. execute console command "rg removemember -w ul_PickLocked -a b-3"
  294. set {cells::%{uuid::%%player%%}%} to 0
  295. message "&6&lCELLS &8» &7You just unrented your cell"
  296. close player's inventory
  297. play sound "minecraft:block.anvil.land" with volume 5 to player
  298. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  299. close player's inventory
  300. format gui slot 13 of player with paper named "&a%{timeleft-b-3}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  301. if balance of player is higher than or equal to 150:
  302. remove 150 from player's balance
  303. add 24 to {timeleft-b-3}
  304. wait 3 ticks
  305. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-3}%&7 hours left"
  306. stop
  307. if balance of player is less than 150:
  308. message "&6&lCELLS &8» &7You don't have enough money to do this"
  309.  
  310. on rightclick on iron door:
  311. if event-block is in region "b_3":
  312. if {b_3-claimed} is false:
  313. open virtual chest inventory with size 3 named "&cCell b-3" to player
  314. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  315. if {cells::%{uuid::%%player%%}%} is 0:
  316. if balance of player is higher than or equal to 150:
  317. remove 150 from player's balance
  318. message "&6&lCELLS &8» &7You just bought cell b-3"
  319. execute console command "rg addmember -w ul_PickLocked b-3 %player%"
  320. add 24 to {timeleft-b-3}
  321. add 1 to {cells::%{uuid::%%player%%}%}
  322. set {b_3-claimed} to true
  323. close player's inventory
  324. stop
  325. if balance of player is less than 150:
  326. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  327. stop
  328. if {cells::%{uuid::%%player%%}%} is 1:
  329. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  330. stop
  331. if {b_3-claimed} is true:
  332. if player is member of region "b-3":
  333. toggle event-block
  334. play sound "minecraft:block.iron_door.close" with volume 10 to player
  335. if player is not member of region "b-3":
  336. open virtual chest inventory with size 3 named "&cCell b-3" to player
  337. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-3""%"
  338. format gui slot 4 of player with paper named "&a%{timeleft-b-3}%hours left"
  339.  
  340. #=================================================================================================
  341.  
  342. on leftclick on iron door:
  343. if event-block is in region "b_4":
  344. if {b_4-claimed} is true:
  345. if player is member of region "b-4":
  346. open virtual chest inventory with size 3 named "&cCell b-4" to player
  347. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  348. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  349. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  350. set {timeleft-b-4} to 0
  351. set {b_4-claimed} to false
  352. execute console command "rg removemember -w ul_PickLocked -a b-4"
  353. set {cells::%{uuid::%%player%%}%} to 0
  354. message "&6&lCELLS &8» &7You just unrented your cell"
  355. close player's inventory
  356. play sound "minecraft:block.anvil.land" with volume 5 to player
  357. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  358. close player's inventory
  359. format gui slot 13 of player with paper named "&a%{timeleft-b-4}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  360. if balance of player is higher than or equal to 150:
  361. remove 150 from player's balance
  362. add 24 to {timeleft-b-4}
  363. wait 3 ticks
  364. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-4}%&7 hours left"
  365. stop
  366. if balance of player is less than 150:
  367. message "&6&lCELLS &8» &7You don't have enough money to do this"
  368.  
  369. on rightclick on iron door:
  370. if event-block is in region "b_4":
  371. if {b_4-claimed} is false:
  372. open virtual chest inventory with size 3 named "&cCell b-4" to player
  373. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  374. if {cells::%{uuid::%%player%%}%} is 0:
  375. if balance of player is higher than or equal to 150:
  376. remove 150 from player's balance
  377. message "&6&lCELLS &8» &7You just bought cell b-4"
  378. execute console command "rg addmember -w ul_PickLocked b-4 %player%"
  379. add 24 to {timeleft-b-4}
  380. add 1 to {cells::%{uuid::%%player%%}%}
  381. set {b_4-claimed} to true
  382. close player's inventory
  383. stop
  384. if balance of player is less than 150:
  385. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  386. stop
  387. if {cells::%{uuid::%%player%%}%} is 1:
  388. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  389. stop
  390. if {b_4-claimed} is true:
  391. if player is member of region "b-4":
  392. toggle event-block
  393. play sound "minecraft:block.iron_door.close" with volume 10 to player
  394. if player is not member of region "b-4":
  395. open virtual chest inventory with size 3 named "&cCell b-4" to player
  396. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-4""%"
  397. format gui slot 4 of player with paper named "&a%{timeleft-b-4}%hours left"
  398.  
  399. #=================================================================================================
  400.  
  401. on leftclick on iron door:
  402. if event-block is in region "b_5":
  403. if {b_5-claimed} is true:
  404. if player is member of region "b-5":
  405. open virtual chest inventory with size 3 named "&cCell b-5" to player
  406. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  407. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  408. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  409. set {timeleft-b-5} to 0
  410. set {b_5-claimed} to false
  411. execute console command "rg removemember -w ul_PickLocked -a b-5"
  412. set {cells::%{uuid::%%player%%}%} to 0
  413. message "&6&lCELLS &8» &7You just unrented your cell"
  414. close player's inventory
  415. play sound "minecraft:block.anvil.land" with volume 5 to player
  416. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  417. close player's inventory
  418. format gui slot 13 of player with paper named "&a%{timeleft-b-5}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  419. if balance of player is higher than or equal to 150:
  420. remove 150 from player's balance
  421. add 24 to {timeleft-b-5}
  422. wait 3 ticks
  423. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-5}%&7 hours left"
  424. stop
  425. if balance of player is less than 150:
  426. message "&6&lCELLS &8» &7You don't have enough money to do this"
  427.  
  428. on rightclick on iron door:
  429. if event-block is in region "b_5":
  430. if {b_5-claimed} is false:
  431. open virtual chest inventory with size 3 named "&cCell b-5" to player
  432. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  433. if {cells::%{uuid::%%player%%}%} is 0:
  434. if balance of player is higher than or equal to 150:
  435. remove 150 from player's balance
  436. message "&6&lCELLS &8» &7You just bought cell b-5"
  437. execute console command "rg addmember -w ul_PickLocked b-5 %player%"
  438. add 24 to {timeleft-b-5}
  439. add 1 to {cells::%{uuid::%%player%%}%}
  440. set {b_5-claimed} to true
  441. close player's inventory
  442. stop
  443. if balance of player is less than 150:
  444. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  445. stop
  446. if {cells::%{uuid::%%player%%}%} is 1:
  447. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  448. stop
  449. if {b_5-claimed} is true:
  450. if player is member of region "b-5":
  451. toggle event-block
  452. play sound "minecraft:block.iron_door.close" with volume 10 to player
  453. if player is not member of region "b-5":
  454. open virtual chest inventory with size 3 named "&cCell b-5" to player
  455. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-5""%"
  456. format gui slot 4 of player with paper named "&a%{timeleft-b-5}%hours left"
  457.  
  458. #=================================================================================================
  459.  
  460. on leftclick on iron door:
  461. if event-block is in region "b_6":
  462. if {b_6-claimed} is true:
  463. if player is member of region "b-6":
  464. open virtual chest inventory with size 3 named "&cCell b-6" to player
  465. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  466. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  467. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  468. set {timeleft-b-6} to 0
  469. set {b_6-claimed} to false
  470. execute console command "rg removemember -w ul_PickLocked -a b-6"
  471. set {cells::%{uuid::%%player%%}%} to 0
  472. message "&6&lCELLS &8» &7You just unrented your cell"
  473. close player's inventory
  474. play sound "minecraft:block.anvil.land" with volume 5 to player
  475. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  476. close player's inventory
  477. format gui slot 13 of player with paper named "&a%{timeleft-b-6}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  478. if balance of player is higher than or equal to 150:
  479. remove 150 from player's balance
  480. add 24 to {timeleft-b-6}
  481. wait 3 ticks
  482. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-6}%&7 hours left"
  483. stop
  484. if balance of player is less than 150:
  485. message "&6&lCELLS &8» &7You don't have enough money to do this"
  486.  
  487. on rightclick on iron door:
  488. if event-block is in region "b_6":
  489. if {b_6-claimed} is false:
  490. open virtual chest inventory with size 3 named "&cCell b-6" to player
  491. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  492. if {cells::%{uuid::%%player%%}%} is 0:
  493. if balance of player is higher than or equal to 150:
  494. remove 150 from player's balance
  495. message "&6&lCELLS &8» &7You just bought cell b-6"
  496. execute console command "rg addmember -w ul_PickLocked b-6 %player%"
  497. add 24 to {timeleft-b-6}
  498. add 1 to {cells::%{uuid::%%player%%}%}
  499. set {b_6-claimed} to true
  500. close player's inventory
  501. stop
  502. if balance of player is less than 150:
  503. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  504. stop
  505. if {cells::%{uuid::%%player%%}%} is 1:
  506. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  507. stop
  508. if {b_6-claimed} is true:
  509. if player is member of region "b-6":
  510. toggle event-block
  511. play sound "minecraft:block.iron_door.close" with volume 10 to player
  512. if player is not member of region "b-6":
  513. open virtual chest inventory with size 3 named "&cCell b-6" to player
  514. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-6""%"
  515. format gui slot 4 of player with paper named "&a%{timeleft-b-6}%hours left"
  516.  
  517. #=================================================================================================
  518.  
  519. on leftclick on iron door:
  520. if event-block is in region "b_7":
  521. if {b_7-claimed} is true:
  522. if player is member of region "b-7":
  523. open virtual chest inventory with size 3 named "&cCell b-7" to player
  524. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  525. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  526. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  527. set {timeleft-b-7} to 0
  528. set {b_7-claimed} to false
  529. execute console command "rg removemember -w ul_PickLocked -a b-7"
  530. set {cells::%{uuid::%%player%%}%} to 0
  531. message "&6&lCELLS &8» &7You just unrented your cell"
  532. close player's inventory
  533. play sound "minecraft:block.anvil.land" with volume 5 to player
  534. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  535. close player's inventory
  536. format gui slot 13 of player with paper named "&a%{timeleft-b-7}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  537. if balance of player is higher than or equal to 150:
  538. remove 150 from player's balance
  539. add 24 to {timeleft-b-7}
  540. wait 3 ticks
  541. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-7}%&7 hours left"
  542. stop
  543. if balance of player is less than 150:
  544. message "&6&lCELLS &8» &7You don't have enough money to do this"
  545.  
  546. on rightclick on iron door:
  547. if event-block is in region "b_7":
  548. if {b_7-claimed} is false:
  549. open virtual chest inventory with size 3 named "&cCell b-7" to player
  550. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  551. if {cells::%{uuid::%%player%%}%} is 0:
  552. if balance of player is higher than or equal to 150:
  553. remove 150 from player's balance
  554. message "&6&lCELLS &8» &7You just bought cell b-7"
  555. execute console command "rg addmember -w ul_PickLocked b-7 %player%"
  556. add 24 to {timeleft-b-7}
  557. add 1 to {cells::%{uuid::%%player%%}%}
  558. set {b_7-claimed} to true
  559. close player's inventory
  560. stop
  561. if balance of player is less than 150:
  562. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  563. stop
  564. if {cells::%{uuid::%%player%%}%} is 1:
  565. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  566. stop
  567. if {b_7-claimed} is true:
  568. if player is member of region "b-7":
  569. toggle event-block
  570. play sound "minecraft:block.iron_door.close" with volume 10 to player
  571. if player is not member of region "b-7":
  572. open virtual chest inventory with size 3 named "&cCell b-7" to player
  573. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-7""%"
  574. format gui slot 4 of player with paper named "&a%{timeleft-b-7}%hours left"
  575.  
  576. #=================================================================================================
  577.  
  578. on leftclick on iron door:
  579. if event-block is in region "b_8":
  580. if {b_8-claimed} is true:
  581. if player is member of region "b-8":
  582. open virtual chest inventory with size 3 named "&cCell b-8" to player
  583. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  584. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  585. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  586. set {timeleft-b-8} to 0
  587. set {b_8-claimed} to false
  588. execute console command "rg removemember -w ul_PickLocked -a b-8"
  589. set {cells::%{uuid::%%player%%}%} to 0
  590. message "&6&lCELLS &8» &7You just unrented your cell"
  591. close player's inventory
  592. play sound "minecraft:block.anvil.land" with volume 5 to player
  593. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  594. close player's inventory
  595. format gui slot 13 of player with paper named "&a%{timeleft-b-8}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  596. if balance of player is higher than or equal to 150:
  597. remove 150 from player's balance
  598. add 24 to {timeleft-b-8}
  599. wait 3 ticks
  600. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-8}%&7 hours left"
  601. stop
  602. if balance of player is less than 150:
  603. message "&6&lCELLS &8» &7You don't have enough money to do this"
  604.  
  605. on rightclick on iron door:
  606. if event-block is in region "b_8":
  607. if {b_8-claimed} is false:
  608. open virtual chest inventory with size 3 named "&cCell b-8" to player
  609. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  610. if {cells::%{uuid::%%player%%}%} is 0:
  611. if balance of player is higher than or equal to 150:
  612. remove 150 from player's balance
  613. message "&6&lCELLS &8» &7You just bought cell b-8"
  614. execute console command "rg addmember -w ul_PickLocked b-8 %player%"
  615. add 24 to {timeleft-b-8}
  616. add 1 to {cells::%{uuid::%%player%%}%}
  617. set {b_8-claimed} to true
  618. close player's inventory
  619. stop
  620. if balance of player is less than 150:
  621. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  622. stop
  623. if {cells::%{uuid::%%player%%}%} is 1:
  624. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  625. stop
  626. if {b_8-claimed} is true:
  627. if player is member of region "b-8":
  628. toggle event-block
  629. play sound "minecraft:block.iron_door.close" with volume 10 to player
  630. if player is not member of region "b-8":
  631. open virtual chest inventory with size 3 named "&cCell b-8" to player
  632. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-8""%"
  633. format gui slot 4 of player with paper named "&a%{timeleft-b-8}%hours left"
  634.  
  635. #=================================================================================================
  636.  
  637. on leftclick on iron door:
  638. if event-block is in region "b_9":
  639. if {b_9-claimed} is true:
  640. if player is member of region "b-9":
  641. open virtual chest inventory with size 3 named "&cCell b-9" to player
  642. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  643. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  644. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  645. set {timeleft-b-9} to 0
  646. set {b_9-claimed} to false
  647. execute console command "rg removemember -w ul_PickLocked -a b-9"
  648. set {cells::%{uuid::%%player%%}%} to 0
  649. message "&6&lCELLS &8» &7You just unrented your cell"
  650. close player's inventory
  651. play sound "minecraft:block.anvil.land" with volume 5 to player
  652. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  653. close player's inventory
  654. format gui slot 13 of player with paper named "&a%{timeleft-b-9}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  655. if balance of player is higher than or equal to 150:
  656. remove 150 from player's balance
  657. add 24 to {timeleft-b-9}
  658. wait 3 ticks
  659. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-9}%&7 hours left"
  660. stop
  661. if balance of player is less than 150:
  662. message "&6&lCELLS &8» &7You don't have enough money to do this"
  663.  
  664. on rightclick on iron door:
  665. if event-block is in region "b_9":
  666. if {b_9-claimed} is false:
  667. open virtual chest inventory with size 3 named "&cCell b-9" to player
  668. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  669. if {cells::%{uuid::%%player%%}%} is 0:
  670. if balance of player is higher than or equal to 150:
  671. remove 150 from player's balance
  672. message "&6&lCELLS &8» &7You just bought cell b-9"
  673. execute console command "rg addmember -w ul_PickLocked b-9 %player%"
  674. add 24 to {timeleft-b-9}
  675. add 1 to {cells::%{uuid::%%player%%}%}
  676. set {b_9-claimed} to true
  677. close player's inventory
  678. stop
  679. if balance of player is less than 150:
  680. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  681. stop
  682. if {cells::%{uuid::%%player%%}%} is 1:
  683. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  684. stop
  685. if {b_9-claimed} is true:
  686. if player is member of region "b-9":
  687. toggle event-block
  688. play sound "minecraft:block.iron_door.close" with volume 10 to player
  689. if player is not member of region "b-9":
  690. open virtual chest inventory with size 3 named "&cCell b-9" to player
  691. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-9""%"
  692. format gui slot 4 of player with paper named "&a%{timeleft-b-9}%hours left"
  693.  
  694. #=================================================================================================
  695.  
  696. on leftclick on iron door:
  697. if event-block is in region "b_10":
  698. if {b_10-claimed} is true:
  699. if player is member of region "b-10":
  700. open virtual chest inventory with size 3 named "&cCell b-10" to player
  701. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  702. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  703. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  704. set {timeleft-b-10} to 0
  705. set {b_10-claimed} to false
  706. execute console command "rg removemember -w ul_PickLocked -a b-10"
  707. set {cells::%{uuid::%%player%%}%} to 0
  708. message "&6&lCELLS &8» &7You just unrented your cell"
  709. close player's inventory
  710. play sound "minecraft:block.anvil.land" with volume 5 to player
  711. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  712. close player's inventory
  713. format gui slot 13 of player with paper named "&a%{timeleft-b-10}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  714. if balance of player is higher than or equal to 150:
  715. remove 150 from player's balance
  716. add 24 to {timeleft-b-10}
  717. wait 3 ticks
  718. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-10}%&7 hours left"
  719. stop
  720. if balance of player is less than 150:
  721. message "&6&lCELLS &8» &7You don't have enough money to do this"
  722.  
  723. on rightclick on iron door:
  724. if event-block is in region "b_10":
  725. if {b_10-claimed} is false:
  726. open virtual chest inventory with size 3 named "&cCell b-10" to player
  727. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  728. if {cells::%{uuid::%%player%%}%} is 0:
  729. if balance of player is higher than or equal to 150:
  730. remove 150 from player's balance
  731. message "&6&lCELLS &8» &7You just bought cell b-10"
  732. execute console command "rg addmember -w ul_PickLocked b-10 %player%"
  733. add 24 to {timeleft-b-10}
  734. add 1 to {cells::%{uuid::%%player%%}%}
  735. set {b_10-claimed} to true
  736. close player's inventory
  737. stop
  738. if balance of player is less than 150:
  739. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  740. stop
  741. if {cells::%{uuid::%%player%%}%} is 1:
  742. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  743. stop
  744. if {b_10-claimed} is true:
  745. if player is member of region "b-10":
  746. toggle event-block
  747. play sound "minecraft:block.iron_door.close" with volume 10 to player
  748. if player is not member of region "b-10":
  749. open virtual chest inventory with size 3 named "&cCell b-10" to player
  750. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-10""%"
  751. format gui slot 4 of player with paper named "&a%{timeleft-b-10}%hours left"
  752.  
  753. #=================================================================================================
  754.  
  755. on leftclick on iron door:
  756. if event-block is in region "b_11":
  757. if {b_11-claimed} is true:
  758. if player is member of region "b-11":
  759. open virtual chest inventory with size 3 named "&cCell b-11" to player
  760. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  761. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  762. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  763. set {timeleft-b-11} to 0
  764. set {b_11-claimed} to false
  765. execute console command "rg removemember -w ul_PickLocked -a b-11"
  766. set {cells::%{uuid::%%player%%}%} to 0
  767. message "&6&lCELLS &8» &7You just unrented your cell"
  768. close player's inventory
  769. play sound "minecraft:block.anvil.land" with volume 5 to player
  770. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  771. close player's inventory
  772. format gui slot 13 of player with paper named "&a%{timeleft-b-11}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  773. if balance of player is higher than or equal to 150:
  774. remove 150 from player's balance
  775. add 24 to {timeleft-b-11}
  776. wait 3 ticks
  777. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-11}%&7 hours left"
  778. stop
  779. if balance of player is less than 150:
  780. message "&6&lCELLS &8» &7You don't have enough money to do this"
  781.  
  782. on rightclick on iron door:
  783. if event-block is in region "b_11":
  784. if {b_11-claimed} is false:
  785. open virtual chest inventory with size 3 named "&cCell b-11" to player
  786. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  787. if {cells::%{uuid::%%player%%}%} is 0:
  788. if balance of player is higher than or equal to 150:
  789. remove 150 from player's balance
  790. message "&6&lCELLS &8» &7You just bought cell b-11"
  791. execute console command "rg addmember -w ul_PickLocked b-11 %player%"
  792. add 24 to {timeleft-b-11}
  793. add 1 to {cells::%{uuid::%%player%%}%}
  794. set {b_11-claimed} to true
  795. close player's inventory
  796. stop
  797. if balance of player is less than 150:
  798. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  799. stop
  800. if {cells::%{uuid::%%player%%}%} is 1:
  801. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  802. stop
  803. if {b_11-claimed} is true:
  804. if player is member of region "b-11":
  805. toggle event-block
  806. play sound "minecraft:block.iron_door.close" with volume 10 to player
  807. if player is not member of region "b-11":
  808. open virtual chest inventory with size 3 named "&cCell b-11" to player
  809. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-11""%"
  810. format gui slot 4 of player with paper named "&a%{timeleft-b-11}%hours left"
  811.  
  812. #=================================================================================================
  813.  
  814. on leftclick on iron door:
  815. if event-block is in region "b_12":
  816. if {b_12-claimed} is true:
  817. if player is member of region "b-12":
  818. open virtual chest inventory with size 3 named "&cCell b-12" to player
  819. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  820. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  821. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  822. set {timeleft-b-12} to 0
  823. set {b_12-claimed} to false
  824. execute console command "rg removemember -w ul_PickLocked -a b-12"
  825. set {cells::%{uuid::%%player%%}%} to 0
  826. message "&6&lCELLS &8» &7You just unrented your cell"
  827. close player's inventory
  828. play sound "minecraft:block.anvil.land" with volume 5 to player
  829. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  830. close player's inventory
  831. format gui slot 13 of player with paper named "&a%{timeleft-b-12}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  832. if balance of player is higher than or equal to 150:
  833. remove 150 from player's balance
  834. add 24 to {timeleft-b-12}
  835. wait 3 ticks
  836. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-12}%&7 hours left"
  837. stop
  838. if balance of player is less than 150:
  839. message "&6&lCELLS &8» &7You don't have enough money to do this"
  840.  
  841. on rightclick on iron door:
  842. if event-block is in region "b_12":
  843. if {b_12-claimed} is false:
  844. open virtual chest inventory with size 3 named "&cCell b-12" to player
  845. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  846. if {cells::%{uuid::%%player%%}%} is 0:
  847. if balance of player is higher than or equal to 150:
  848. remove 150 from player's balance
  849. message "&6&lCELLS &8» &7You just bought cell b-12"
  850. execute console command "rg addmember -w ul_PickLocked b-12 %player%"
  851. add 24 to {timeleft-b-12}
  852. add 1 to {cells::%{uuid::%%player%%}%}
  853. set {b_12-claimed} to true
  854. close player's inventory
  855. stop
  856. if balance of player is less than 150:
  857. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  858. stop
  859. if {cells::%{uuid::%%player%%}%} is 1:
  860. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  861. stop
  862. if {b_12-claimed} is true:
  863. if player is member of region "b-12":
  864. toggle event-block
  865. play sound "minecraft:block.iron_door.close" with volume 10 to player
  866. if player is not member of region "b-12":
  867. open virtual chest inventory with size 3 named "&cCell b-12" to player
  868. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-12""%"
  869. format gui slot 4 of player with paper named "&a%{timeleft-b-12}%hours left"
  870.  
  871. #=================================================================================================
  872.  
  873. on leftclick on iron door:
  874. if event-block is in region "b_13":
  875. if {b_13-claimed} is true:
  876. if player is member of region "b-13":
  877. open virtual chest inventory with size 3 named "&cCell b-13" to player
  878. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  879. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  880. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  881. set {timeleft-b-13} to 0
  882. set {b_13-claimed} to false
  883. execute console command "rg removemember -w ul_PickLocked -a b-13"
  884. set {cells::%{uuid::%%player%%}%} to 0
  885. message "&6&lCELLS &8» &7You just unrented your cell"
  886. close player's inventory
  887. play sound "minecraft:block.anvil.land" with volume 5 to player
  888. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  889. close player's inventory
  890. format gui slot 13 of player with paper named "&a%{timeleft-b-13}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  891. if balance of player is higher than or equal to 150:
  892. remove 150 from player's balance
  893. add 24 to {timeleft-b-13}
  894. wait 3 ticks
  895. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-13}%&7 hours left"
  896. stop
  897. if balance of player is less than 150:
  898. message "&6&lCELLS &8» &7You don't have enough money to do this"
  899.  
  900. on rightclick on iron door:
  901. if event-block is in region "b_13":
  902. if {b_13-claimed} is false:
  903. open virtual chest inventory with size 3 named "&cCell b-13" to player
  904. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  905. if {cells::%{uuid::%%player%%}%} is 0:
  906. if balance of player is higher than or equal to 150:
  907. remove 150 from player's balance
  908. message "&6&lCELLS &8» &7You just bought cell b-13"
  909. execute console command "rg addmember -w ul_PickLocked b-13 %player%"
  910. add 24 to {timeleft-b-13}
  911. add 1 to {cells::%{uuid::%%player%%}%}
  912. set {b_13-claimed} to true
  913. close player's inventory
  914. stop
  915. if balance of player is less than 150:
  916. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  917. stop
  918. if {cells::%{uuid::%%player%%}%} is 1:
  919. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  920. stop
  921. if {b_13-claimed} is true:
  922. if player is member of region "b-13":
  923. toggle event-block
  924. play sound "minecraft:block.iron_door.close" with volume 10 to player
  925. if player is not member of region "b-13":
  926. open virtual chest inventory with size 3 named "&cCell b-13" to player
  927. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-13""%"
  928. format gui slot 4 of player with paper named "&a%{timeleft-b-13}%hours left"
  929.  
  930. #=================================================================================================
  931.  
  932. on leftclick on iron door:
  933. if event-block is in region "b_14":
  934. if {b_14-claimed} is true:
  935. if player is member of region "b-14":
  936. open virtual chest inventory with size 3 named "&cCell b-14" to player
  937. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  938. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  939. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  940. set {timeleft-b-14} to 0
  941. set {b_14-claimed} to false
  942. execute console command "rg removemember -w ul_PickLocked -a b-14"
  943. set {cells::%{uuid::%%player%%}%} to 0
  944. message "&6&lCELLS &8» &7You just unrented your cell"
  945. close player's inventory
  946. play sound "minecraft:block.anvil.land" with volume 5 to player
  947. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  948. close player's inventory
  949. format gui slot 13 of player with paper named "&a%{timeleft-b-14}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  950. if balance of player is higher than or equal to 150:
  951. remove 150 from player's balance
  952. add 24 to {timeleft-b-14}
  953. wait 3 ticks
  954. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-14}%&7 hours left"
  955. stop
  956. if balance of player is less than 150:
  957. message "&6&lCELLS &8» &7You don't have enough money to do this"
  958.  
  959. on rightclick on iron door:
  960. if event-block is in region "b_14":
  961. if {b_14-claimed} is false:
  962. open virtual chest inventory with size 3 named "&cCell b-14" to player
  963. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  964. if {cells::%{uuid::%%player%%}%} is 0:
  965. if balance of player is higher than or equal to 150:
  966. remove 150 from player's balance
  967. message "&6&lCELLS &8» &7You just bought cell b-14"
  968. execute console command "rg addmember -w ul_PickLocked b-14 %player%"
  969. add 24 to {timeleft-b-14}
  970. add 1 to {cells::%{uuid::%%player%%}%}
  971. set {b_14-claimed} to true
  972. close player's inventory
  973. stop
  974. if balance of player is less than 150:
  975. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  976. stop
  977. if {cells::%{uuid::%%player%%}%} is 1:
  978. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  979. stop
  980. if {b_14-claimed} is true:
  981. if player is member of region "b-14":
  982. toggle event-block
  983. play sound "minecraft:block.iron_door.close" with volume 10 to player
  984. if player is not member of region "b-14":
  985. open virtual chest inventory with size 3 named "&cCell b-14" to player
  986. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-14""%"
  987. format gui slot 4 of player with paper named "&a%{timeleft-b-14}%hours left"
  988.  
  989. #=================================================================================================
  990.  
  991. on leftclick on iron door:
  992. if event-block is in region "b_15":
  993. if {b_15-claimed} is true:
  994. if player is member of region "b-15":
  995. open virtual chest inventory with size 3 named "&cCell b-15" to player
  996. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  997. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  998. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  999. set {timeleft-b-15} to 0
  1000. set {b_15-claimed} to false
  1001. execute console command "rg removemember -w ul_PickLocked -a b-15"
  1002. set {cells::%{uuid::%%player%%}%} to 0
  1003. message "&6&lCELLS &8» &7You just unrented your cell"
  1004. close player's inventory
  1005. play sound "minecraft:block.anvil.land" with volume 5 to player
  1006. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  1007. close player's inventory
  1008. format gui slot 13 of player with paper named "&a%{timeleft-b-15}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  1009. if balance of player is higher than or equal to 150:
  1010. remove 150 from player's balance
  1011. add 24 to {timeleft-b-15}
  1012. wait 3 ticks
  1013. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-15}%&7 hours left"
  1014. stop
  1015. if balance of player is less than 150:
  1016. message "&6&lCELLS &8» &7You don't have enough money to do this"
  1017.  
  1018. on rightclick on iron door:
  1019. if event-block is in region "b_15":
  1020. if {b_15-claimed} is false:
  1021. open virtual chest inventory with size 3 named "&cCell b-15" to player
  1022. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  1023. if {cells::%{uuid::%%player%%}%} is 0:
  1024. if balance of player is higher than or equal to 150:
  1025. remove 150 from player's balance
  1026. message "&6&lCELLS &8» &7You just bought cell b-15"
  1027. execute console command "rg addmember -w ul_PickLocked b-15 %player%"
  1028. add 24 to {timeleft-b-15}
  1029. add 1 to {cells::%{uuid::%%player%%}%}
  1030. set {b_15-claimed} to true
  1031. close player's inventory
  1032. stop
  1033. if balance of player is less than 150:
  1034. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  1035. stop
  1036. if {cells::%{uuid::%%player%%}%} is 1:
  1037. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  1038. stop
  1039. if {b_15-claimed} is true:
  1040. if player is member of region "b-15":
  1041. toggle event-block
  1042. play sound "minecraft:block.iron_door.close" with volume 10 to player
  1043. if player is not member of region "b-15":
  1044. open virtual chest inventory with size 3 named "&cCell b-15" to player
  1045. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-15""%"
  1046. format gui slot 4 of player with paper named "&a%{timeleft-b-15}%hours left"
  1047.  
  1048. #=================================================================================================
  1049.  
  1050. on leftclick on iron door:
  1051. if event-block is in region "b_16":
  1052. if {b_16-claimed} is true:
  1053. if player is member of region "b-16":
  1054. open virtual chest inventory with size 3 named "&cCell b-16" to player
  1055. format gui slot 18 of player with barrier named "&cUnrent cell" with lore "&7Click to unrent your cell!" and "&7Warning: you won't get any money back" and "&7when unrenting your cell" to run:
  1056. open virtual chest inventory with size 3 named "&c&lAre you sure?" to player
  1057. format gui slot 11 of player with green wool named "&cUnrent cell" with lore "&7Warning: this can not be undone!" to run:
  1058. set {timeleft-b-16} to 0
  1059. set {b_16-claimed} to false
  1060. execute console command "rg removemember -w ul_PickLocked -a b-16"
  1061. set {cells::%{uuid::%%player%%}%} to 0
  1062. message "&6&lCELLS &8» &7You just unrented your cell"
  1063. close player's inventory
  1064. play sound "minecraft:block.anvil.land" with volume 5 to player
  1065. format gui slot 15 of player with red wool named "&cDon't unrent cell" with lore "&7Nevermind, don't unrent my cell" to run:
  1066. close player's inventory
  1067. format gui slot 13 of player with paper named "&a%{timeleft-b-16}% hours left" with lore "&7Click to extend your time by" and "&724 hours for &c$150" to run:
  1068. if balance of player is higher than or equal to 150:
  1069. remove 150 from player's balance
  1070. add 24 to {timeleft-b-16}
  1071. wait 3 ticks
  1072. message "&6&lCELLS &8» &7You have extended your cell time by 24 hours, you now have &a%{timeleft-b-16}%&7 hours left"
  1073. stop
  1074. if balance of player is less than 150:
  1075. message "&6&lCELLS &8» &7You don't have enough money to do this"
  1076.  
  1077. on rightclick on iron door:
  1078. if event-block is in region "b_16":
  1079. if {b_16-claimed} is false:
  1080. open virtual chest inventory with size 3 named "&cCell b-16" to player
  1081. format gui slot 13 of player with iron door named "&aCell available for rent" with lore "&8This cell is available for rent" and "&7Click to buy for" and "&7$150 each 24h" to run:
  1082. if {cells::%{uuid::%%player%%}%} is 0:
  1083. if balance of player is higher than or equal to 150:
  1084. remove 150 from player's balance
  1085. message "&6&lCELLS &8» &7You just bought cell b-16"
  1086. execute console command "rg addmember -w ul_PickLocked b-16 %player%"
  1087. add 24 to {timeleft-b-16}
  1088. add 1 to {cells::%{uuid::%%player%%}%}
  1089. set {b_16-claimed} to true
  1090. close player's inventory
  1091. stop
  1092. if balance of player is less than 150:
  1093. message "&6&lCELLS &8» &7You don't have enough money to buy this cell"
  1094. stop
  1095. if {cells::%{uuid::%%player%%}%} is 1:
  1096. message "&6&lCELLS &8» &7You can only have 1 cell at the same time!"
  1097. stop
  1098. if {b_16-claimed} is true:
  1099. if player is member of region "b-16":
  1100. toggle event-block
  1101. play sound "minecraft:block.iron_door.close" with volume 10 to player
  1102. if player is not member of region "b-16":
  1103. open virtual chest inventory with size 3 named "&cCell b-16" to player
  1104. format gui slot 13 of player with barrier named "&cCell not available for rent" with lore "&7This cell is rented by" and "&7%all members of region ""b-16""%"
  1105. format gui slot 4 of player with paper named "&a%{timeleft-b-16}%hours left"
  1106.  
  1107.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement