Oxalist

Clicker

Apr 4th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.64 KB | None | 0 0
  1. variables:
  2. {miner::level::%player%} = 1
  3. {level1::manager::%player%} = "False"
  4. {level1::jrmanager::%player%} = "False"
  5. {level::1::%player%} = "True"
  6. {staffchat::%player%} = "False"
  7. {Mute::%player%} = "False"
  8.  
  9. on chat:
  10. if {MuteChat::Survival} is set:
  11. if player is in world "Survival":
  12. cancel event
  13. send "&e(Chat) &7The chat is muted."
  14. stop
  15. if {staffchat::%player%} is "True":
  16. cancel event
  17. loop all players:
  18. if loop-player has permission "staff.chat":
  19. send "&e(Staff Chat) %coloured player's prefix% &e%player% &8» &f%message%" to loop-player
  20. send "&e(Staff Chat) %coloured player's prefix% &e%player% &8» &f%message%" to player
  21. stop
  22. if player is in world "Main":
  23. if {MuteChat} is "True":
  24. if {Bypass::%player%} is not set:
  25. cancel event
  26. send "&e(Chat) &7The chat is muted."
  27. stop
  28. if {Mute::%player%} is "True":
  29. cancel event
  30. send "&7You are muted, so you cannot speak"
  31. stop
  32. if player is in world "Main":
  33. cancel event
  34. loop all players:
  35. if loop-player is in world "Main":
  36. send "&8[&aClicker&8] %colored player's prefix% &e%player% &8» &7%message%" to loop-player
  37. if player is in world "ul_Lobby-1":
  38. cancel event
  39. loop all players:
  40. if loop-player is in world "ul_Lobby-1":
  41. send "&8[&aLobby ##1&8] %colored player's prefix% &e%player% &8» &7%message%" to loop-player
  42. if player is in world "Survival":
  43. cancel event
  44. loop all players:
  45. if loop-player is in world "Survival":
  46. send "&8[&aSurvival&8] %colored player's prefix% &e%player% &8» &7%message%" to loop-player
  47. if player is in world "Plots":
  48. cancel event
  49. loop all players:
  50. if loop-player is in world "Plots":
  51. send "&8[&aCreative&8] %colored player's prefix% &e%player% &8» &7%message%" to loop-player
  52.  
  53. command /start:
  54. trigger:
  55. if player is in world "ul_lobby-1":
  56. send "&fUnknown command. Type ""/help"" for help."
  57. if player is in world "main":
  58. if {OneUseClicker::%player%} is not set:
  59. set {OneUseClicker::%player%} to "True"
  60. give player 1 emerald named "&a✎ Idle Miner &7(Click to earn 1 cash)"
  61. if player is in world "Survival":
  62. if {OneUseSurv::%player%} is not set:
  63. set {OneUseSurv::%player%} to "True"
  64. give player 1 leather helmet named "&cStarter Helmet"
  65. give player 1 leather chestplate named "&cStarter Tunic"
  66. give player 1 leather leggings named "&cStarter Pants"
  67. give player 1 leather boots named "&cStarter Boots"
  68. give player 1 stone sword named "&cStarter Sword"
  69. give player 1 stone pickaxe named "&cStarter Pickaxe"
  70. give player 1 stone axe named "&cStarter Axe"
  71. give player 1 stone shovel named "&cStarter Shovel"
  72. give player 16 cooked beef named "&cStarter Beef"
  73. give player 2 golden apples named "&cStarter Apples"
  74. give player 16 oak logs named "&cStarter Logs"
  75. give player 32 cobble stone named "&cStarter Cobblestone"
  76. give player 3 diamonds named "&cStarter Diamonds"
  77. give player 5 iron ingots named "&cStarter Iron"
  78.  
  79. command /sc:
  80. permission: staff.chat
  81. trigger:
  82. if {staffchat::%player%} is "False":
  83. set {staffchat::%player%} to "True"
  84. send "&e(Staff Chat) &7staff chat enabled"
  85. stop
  86. if {staffchat::%player%} is "True":
  87. set {staffchat::%player%} to "False"
  88. send "&e(Staff Chat) &7staff chat disabled"
  89. stop
  90.  
  91. command /managers:
  92. aliases: /manager
  93. trigger:
  94. if player is not in world "Main":
  95. send "&fUnknown command. Type ""/help"" for help."
  96. stop
  97. if {level::1::%player%} is "True":
  98. open chest with 3 rows named " &0&nManagers" to player
  99. format slot 10 of player with 1 emerald named "&3Level 1 Jr.Manager &7(Click to purchase)" with lore "||&7Click to purchase the level 1 jr.manager||&7||&3Price: &a300 cash||&7" to run [make player execute "/level1jr.manager"]
  100. format slot 11 of player with 1 emerald named "&3Level 1 Manager &7(Click to purchase)" with lore "||&7Click to purchase the level 1 manager||&7||&3Price: &a500 cash||&7" to run [make player execute "/level1manager"]
  101. format slot 12 of player with 1 emerald named "&3Level 1 Sr.Manager &7(Click to purchase)" with lore "||&7Click to purchase the level 1 sr.manager||&7||&3Price: &a900 cash||&7" to run [make player execute "/level1sr.manager"]
  102. format slot 13 of player with 1 emerald named "&3Level 1 Account Manager &7(Click to purchase)" with lore "||&7Click to purchase the level 1 account manager||&7||&3Price: &a1200 cash||&7" to run [make player execute "/level1accountmanager"]
  103. format slot 14 of player with 1 emerald named "&3Level 1 Director &7(Click to purchase)" with lore "||&7Click to purchase the level 1 director||&7||&3Price: &a1600 cash||&7" to run [make player execute "/level1director"]
  104. format slot 15 of player with 1 emerald named "&3Level 1 Secretary &7(Click to purchase)" with lore "||&7Click to purchase the level 1 secretary||&7||&3Price: &a2000 cash||&7" to run [make player execute "/level1secretary"]
  105. format slot 16 of player with 1 emerald named "&3Level 1 Operator &7(Click to purchase)" with lore "||&7Click to purchase the level 1 operator||&7||&3Price: &a2500 cash||&7" to run [make player execute "/level1operator"]
  106. if {level::2::%player%} is "True":
  107. open chest with 3 rows named " &0&nManagers" to player
  108. format slot 10 of player with 1 emerald named "&3Level 2 Jr.Manager &7(Click to purchase)" with lore "||&7Click to purchase the level 2 jr.manager||&7||&3Price: &a600 cash||&7" to run [make player execute "/level2jr.manager"]
  109. format slot 11 of player with 1 emerald named "&3Level 2 Manager &7(Click to purchase)" with lore "||&7Click to purchase the level 2 manager||&7||&3Price: &a1000 cash||&7" to run [make player execute "/level2manager"]
  110. format slot 12 of player with 1 emerald named "&3Level 2 Sr.Manager &7(Click to purchase)" with lore "||&7Click to purchase the level 2 sr.manager||&7||&3Price: &a1800 cash||&7" to run [make player execute "/level2sr.manager"]
  111. format slot 13 of player with 1 emerald named "&3Level 2 Account Manager &7(Click to purchase)" with lore "||&7Click to purchase the level 2 account manager||&7||&3Price: &a2400 cash||&7" to run [make player execute "/level2accountmanager"]
  112. format slot 14 of player with 1 emerald named "&3Level 2 Director &7(Click to purchase)" with lore "||&7Click to purchase the level 2 director||&7||&3Price: &a3200 cash||&7" to run [make player execute "/level2director"]
  113. format slot 15 of player with 1 emerald named "&3Level 2 Secretary &7(Click to purchase)" with lore "||&7Click to purchase the level 2 secretary||&7||&3Price: &a4000 cash||&7" to run [make player execute "/level2secretary"]
  114. format slot 16 of player with 1 emerald named "&3Level 2 Operator &7(Click to purchase)" with lore "||&7Click to purchase the level 2 operator||&7||&3Price: &a5000 cash||&7" to run [make player execute "/level2operator"]
  115. if {level::3::%player%} is "True":
  116. open chest with 3 rows named " &0&nManagers" to player
  117. format slot 10 of player with 1 emerald named "&3Level 3 Jr.Manager &7(Click to purchase)" with lore "||&7Click to purchase the level 3 jr.manager||&7||&3Price: &a900 cash||&7" to run [make player execute "/level3jr.manager"]
  118. format slot 11 of player with 1 emerald named "&3Level 3 Manager &7(Click to purchase)" with lore "||&7Click to purchase the level 3 manager||&7||&3Price: &a1500 cash||&7" to run [make player execute "/level3manager"]
  119. format slot 12 of player with 1 emerald named "&3Level 3 Sr.Manager &7(Click to purchase)" with lore "||&7Click to purchase the level 3 sr.manager||&7||&3Price: &a2700 cash||&7" to run [make player execute "/level3sr.manager"]
  120. format slot 13 of player with 1 emerald named "&3Level 3 Account Manager &7(Click to purchase)" with lore "||&7Click to purchase the level 3 account manager||&7||&3Price: &a3600 cash||&7" to run [make player execute "/level3accountmanager"]
  121. format slot 14 of player with 1 emerald named "&3Level 3 Director &7(Click to purchase)" with lore "||&7Click to purchase the level 3 director||&7||&3Price: &a4800 cash||&7" to run [make player execute "/level3director"]
  122. format slot 15 of player with 1 emerald named "&3Level 3 Secretary &7(Click to purchase)" with lore "||&7Click to purchase the level 3 secretary||&7||&3Price: &a6000 cash||&7" to run [make player execute "/level3secretary"]
  123. format slot 16 of player with 1 emerald named "&3Level 3 Operator &7(Click to purchase)" with lore "||&7Click to purchase the level 3 operator||&7||&3Price: &a7500 cash||&7" to run [make player execute "/level3operator"]
  124.  
  125.  
  126. command /level1jr.manager:
  127. trigger:
  128. if player is not in world "Main":
  129. send "&fUnknown command. Type ""/help"" for help."
  130. stop
  131. if {level1::jrmanager::%player%} is "True":
  132. send "&e(Manager) &7You already have this manager unlocked"
  133. stop
  134. if {cash::%player%} is less than 299:
  135. send "&e(Manager) &7You need 300 cash to purchase this manager"
  136. stop
  137. if {cash::%player%} is more than 299:
  138. remove 300 from {cash::%player%}
  139. set {level1::jrmanager::%player%} to "True"
  140. send "&e(Manager) &7You have purchased the level 1 jr.manager"
  141. stop
  142.  
  143. command /level1manager:
  144. trigger:
  145. if player is not in world "Main":
  146. send "&fUnknown command. Type ""/help"" for help."
  147. stop
  148. if {level1::manager::%player%} is "True":
  149. send "&e(Manager) &7You already have this manager unlocked"
  150. stop
  151. if {cash::%player%} is less than 499:
  152. send "&e(Manager) &7You need 500 cash to purchase this manager"
  153. stop
  154. if {cash::%player%} is more than 499:
  155. remove 500 from {cash::%player%}
  156. set {level1::manager::%player%} to "True"
  157. send "&e(Manager) &7You have purchased the level 1 manager"
  158. stop
  159.  
  160. command /level1sr.manager:
  161. trigger:
  162. if player is not in world "Main":
  163. send "&fUnknown command. Type ""/help"" for help."
  164. stop
  165. if {level1::srmanager::%player%} is "True":
  166. send "&e(Manager) &7You already have this manager unlocked"
  167. stop
  168. if {cash::%player%} is less than 899:
  169. send "&e(Manager) &7You need 900 cash to purchase this manager"
  170. stop
  171. if {cash::%player%} is more than 899:
  172. remove 900 from {cash::%player%}
  173. set {level1::srmanager::%player%} to "True"
  174. send "&e(Manager) &7You have purchased the level 1 sr.manager"
  175. stop
  176.  
  177. command /level1accountmanager:
  178. trigger:
  179. if player is not in world "Main":
  180. send "&fUnknown command. Type ""/help"" for help."
  181. stop
  182. if {level1::accountmanager::%player%} is "True":
  183. send "&e(Manager) &7You already have this manager unlocked"
  184. stop
  185. if {cash::%player%} is less than 1199:
  186. send "&e(Manager) &7You need 1200 cash to purchase this manager"
  187. stop
  188. if {cash::%player%} is more than 1199:
  189. remove 1200 from {cash::%player%}
  190. set {level1::accountmanager::%player%} to "True"
  191. send "&e(Manager) &7You have purchased the level 1 account manager"
  192. stop
  193.  
  194. command /level1director:
  195. trigger:
  196. if player is not in world "Main":
  197. send "&fUnknown command. Type ""/help"" for help."
  198. stop
  199. if {level1::director::%player%} is "True":
  200. send "&e(Manager) &7You already have this manager unlocked"
  201. stop
  202. if {cash::%player%} is less than 1599:
  203. send "&e(Manager) &7You need 1600 cash to purchase this manager"
  204. stop
  205. if {cash::%player%} is more than 1599:
  206. remove 1600 from {cash::%player%}
  207. set {level1::director::%player%} to "True"
  208. send "&e(Manager) &7You have purchased the level 1 director"
  209. stop
  210.  
  211. command /level1secretary:
  212. trigger:
  213. if player is not in world "Main":
  214. send "&fUnknown command. Type ""/help"" for help."
  215. stop
  216. if {level1::secretary::%player%} is "True":
  217. send "&e(Manager) &7You already have this manager unlocked"
  218. stop
  219. if {cash::%player%} is less than 1999:
  220. send "&e(Manager) &7You need 2000 cash to purchase this manager"
  221. stop
  222. if {cash::%player%} is more than 1999:
  223. remove 2000 from {cash::%player%}
  224. set {level1::secretary::%player%} to "True"
  225. send "&e(Manager) &7You have purchased the level 1 secretary"
  226. stop
  227.  
  228. command /level1operator:
  229. trigger:
  230. if player is not in world "Main":
  231. send "&fUnknown command. Type ""/help"" for help."
  232. stop
  233. if {level1::operator::%player%} is "True":
  234. send "&e(Manager) &7You already have this manager unlocked"
  235. stop
  236. if {cash::%player%} is less than 2499:
  237. send "&e(Manager) &7You need 2500 cash to purchase this manager"
  238. stop
  239. if {cash::%player%} is more than 2499:
  240. remove 2500 from {cash::%player%}
  241. set {level1::operator::%player%} to "True"
  242. send "&e(Manager) &7You have purchased the level 1 operator"
  243. stop
  244.  
  245. command /level2jr.manager:
  246. trigger:
  247. if player is not in world "Main":
  248. send "&fUnknown command. Type ""/help"" for help."
  249. stop
  250. if {level2::jrmanager::%player%} is "True":
  251. send "&e(Manager) &7You already have this manager unlocked"
  252. stop
  253. if {cash::%player%} is less than 599:
  254. send "&e(Manager) &7You need 600 cash to purchase this manager"
  255. stop
  256. if {cash::%player%} is more than 599:
  257. remove 600 from {cash::%player%}
  258. set {level2::jrmanager::%player%} to "True"
  259. send "&e(Manager) &7You have purchased the level 2 jr.manager"
  260. stop
  261.  
  262. command /level2manager:
  263. trigger:
  264. if player is not in world "Main":
  265. send "&fUnknown command. Type ""/help"" for help."
  266. stop
  267. if {level2::manager::%player%} is "True":
  268. send "&e(Manager) &7You already have this manager unlocked"
  269. stop
  270. if {cash::%player%} is less than 999:
  271. send "&e(Manager) &7You need 1000 cash to purchase this manager"
  272. stop
  273. if {cash::%player%} is more than 999:
  274. remove 1000 from {cash::%player%}
  275. set {level2::manager::%player%} to "True"
  276. send "&e(Manager) &7You have purchased the level 2 manager"
  277. stop
  278.  
  279. command /level2sr.manager:
  280. trigger:
  281. if player is not in world "Main":
  282. send "&fUnknown command. Type ""/help"" for help."
  283. stop
  284. if {level2::srmanager::%player%} is "True":
  285. send "&e(Manager) &7You already have this manager unlocked"
  286. stop
  287. if {cash::%player%} is less than 1799:
  288. send "&e(Manager) &7You need 1800 cash to purchase this manager"
  289. stop
  290. if {cash::%player%} is more than 1799:
  291. remove 1800 from {cash::%player%}
  292. set {level2::srmanager::%player%} to "True"
  293. send "&e(Manager) &7You have purchased the level 2 sr.manager"
  294. stop
  295.  
  296. command /level2accountmanager:
  297. trigger:
  298. if player is not in world "Main":
  299. send "&fUnknown command. Type ""/help"" for help."
  300. stop
  301. if {level2::accountmanager::%player%} is "True":
  302. send "&e(Manager) &7You already have this manager unlocked"
  303. stop
  304. if {cash::%player%} is less than 2399:
  305. send "&e(Manager) &7You need 2400 cash to purchase this manager"
  306. stop
  307. if {cash::%player%} is more than 2399:
  308. remove 2400 from {cash::%player%}
  309. set {level2::accountmanager::%player%} to "True"
  310. send "&e(Manager) &7You have purchased the level 2 account manager"
  311. stop
  312.  
  313. command /level2director:
  314. trigger:
  315. if player is not in world "Main":
  316. send "&fUnknown command. Type ""/help"" for help."
  317. stop
  318. if {level2::director::%player%} is "True":
  319. send "&e(Manager) &7You already have this manager unlocked"
  320. stop
  321. if {cash::%player%} is less than 3199:
  322. send "&e(Manager) &7You need 3200 cash to purchase this manager"
  323. stop
  324. if {cash::%player%} is more than 3199:
  325. remove 3200 from {cash::%player%}
  326. set {level2::director::%player%} to "True"
  327. send "&e(Manager) &7You have purchased the level 2 director"
  328. stop
  329.  
  330. command /level2secretary:
  331. trigger:
  332. if player is not in world "Main":
  333. send "&fUnknown command. Type ""/help"" for help."
  334. stop
  335. if {level2::secretary::%player%} is "True":
  336. send "&e(Manager) &7You already have this manager unlocked"
  337. stop
  338. if {cash::%player%} is less than 3999:
  339. send "&e(Manager) &7You need 4000 cash to purchase this manager"
  340. stop
  341. if {cash::%player%} is more than 3999:
  342. remove 4000 from {cash::%player%}
  343. set {level2::secretary::%player%} to "True"
  344. send "&e(Manager) &7You have purchased the level 2 secretary"
  345. stop
  346.  
  347. command /level2operator:
  348. trigger:
  349. if player is not in world "Main":
  350. send "&fUnknown command. Type ""/help"" for help."
  351. stop
  352. if {level2::operator::%player%} is "True":
  353. send "&e(Manager) &7You already have this manager unlocked"
  354. stop
  355. if {cash::%player%} is less than 4999:
  356. send "&e(Manager) &7You need 5000 cash to purchase this manager"
  357. stop
  358. if {cash::%player%} is more than 4999:
  359. remove 5000 from {cash::%player%}
  360. set {level2::operator::%player%} to "True"
  361. send "&e(Manager) &7You have purchased the level 2 operator"
  362. stop
  363.  
  364. command /level3jr.manager:
  365. trigger:
  366. if player is not in world "Main":
  367. send "&fUnknown command. Type ""/help"" for help."
  368. stop
  369. if {level3::jrmanager::%player%} is "True":
  370. send "&e(Manager) &7You already have this manager unlocked"
  371. stop
  372. if {cash::%player%} is less than 899:
  373. send "&e(Manager) &7You need 900 cash to purchase this manager"
  374. stop
  375. if {cash::%player%} is more than 899:
  376. remove 900 from {cash::%player%}
  377. set {level3::jrmanager::%player%} to "True"
  378. send "&e(Manager) &7You have purchased the level 3 jr.manager"
  379. stop
  380.  
  381. command /level3manager:
  382. trigger:
  383. if player is not in world "Main":
  384. send "&fUnknown command. Type ""/help"" for help."
  385. stop
  386. if {level3::manager::%player%} is "True":
  387. send "&e(Manager) &7You already have this manager unlocked"
  388. stop
  389. if {cash::%player%} is less than 1499:
  390. send "&e(Manager) &7You need 1500 cash to purchase this manager"
  391. stop
  392. if {cash::%player%} is more than 1499:
  393. remove 1500 from {cash::%player%}
  394. set {level3::manager::%player%} to "True"
  395. send "&e(Manager) &7You have purchased the level 3 manager"
  396. stop
  397.  
  398. command /level3sr.manager:
  399. trigger:
  400. if player is not in world "Main":
  401. send "&fUnknown command. Type ""/help"" for help."
  402. stop
  403. if {level3::srmanager::%player%} is "True":
  404. send "&e(Manager) &7You already have this manager unlocked"
  405. stop
  406. if {cash::%player%} is less than 2699:
  407. send "&e(Manager) &7You need 2700 cash to purchase this manager"
  408. stop
  409. if {cash::%player%} is more than 2699:
  410. remove 2700 from {cash::%player%}
  411. set {level3::srmanager::%player%} to "True"
  412. send "&e(Manager) &7You have purchased the level 3 sr.manager"
  413. stop
  414.  
  415. command /level3accountmanager:
  416. trigger:
  417. if player is not in world "Main":
  418. send "&fUnknown command. Type ""/help"" for help."
  419. stop
  420. if {level3::accountmanager::%player%} is "True":
  421. send "&e(Manager) &7You already have this manager unlocked"
  422. stop
  423. if {cash::%player%} is less than 3599:
  424. send "&e(Manager) &7You need 3600 cash to purchase this manager"
  425. stop
  426. if {cash::%player%} is more than 3599:
  427. remove 3600 from {cash::%player%}
  428. set {level3::accountmanager::%player%} to "True"
  429. send "&e(Manager) &7You have purchased the level 3 account manager"
  430. stop
  431.  
  432. command /level3director:
  433. trigger:
  434. if player is not in world "Main":
  435. send "&fUnknown command. Type ""/help"" for help."
  436. stop
  437. if {level3::director::%player%} is "True":
  438. send "&e(Manager) &7You already have this manager unlocked"
  439. stop
  440. if {cash::%player%} is less than 4799:
  441. send "&e(Manager) &7You need 4800 cash to purchase this manager"
  442. stop
  443. if {cash::%player%} is more than 4799:
  444. remove 4800 from {cash::%player%}
  445. set {level3::director::%player%} to "True"
  446. send "&e(Manager) &7You have purchased the level 3 director"
  447. stop
  448.  
  449. command /level3secretary:
  450. trigger:
  451. if player is not in world "Main":
  452. send "&fUnknown command. Type ""/help"" for help."
  453. stop
  454. if {level3::secretary::%player%} is "True":
  455. send "&e(Manager) &7You already have this manager unlocked"
  456. stop
  457. if {cash::%player%} is less than 5999:
  458. send "&e(Manager) &7You need 6000 cash to purchase this manager"
  459. stop
  460. if {cash::%player%} is more than 5999:
  461. remove 6000 from {cash::%player%}
  462. set {level3::secretary::%player%} to "True"
  463. send "&e(Manager) &7You have purchased the level 3 secretary"
  464. stop
  465.  
  466. command /level3operator:
  467. trigger:
  468. if player is not in world "Main":
  469. send "&fUnknown command. Type ""/help"" for help."
  470. stop
  471. if {level3::operator::%player%} is "True":
  472. send "&e(Manager) &7You already have this manager unlocked"
  473. stop
  474. if {cash::%player%} is less than 7499:
  475. send "&e(Manager) &7You need 7500 cash to purchase this manager"
  476. stop
  477. if {cash::%player%} is more than 7499:
  478. remove 7500 from {cash::%player%}
  479. set {level3::operator::%player%} to "True"
  480. send "&e(Manager) &7You have purchased the level 3 operator"
  481. stop
  482.  
  483.  
  484.  
  485. on join:
  486. if player is not in world "Main":
  487. send "&fUnknown command. Type ""/help"" for help."
  488. stop
  489. set slot 0 of player's inventory to 1 emerald named "&a✎ Idle Miner &7(Click to earn 1 cash)"
  490. if {click::2::%player%} is "True":
  491. set slot 0 of player's inventory to 1 emerald named "&a✎ Idle Miner &7(Click to earn 2 cash)"
  492. if {click::3::%player%} is "True":
  493. set slot 0 of player's inventory to 1 emerald named "&a✎ Idle Miner &7(Click to earn 3 cash)"
  494. if {click::4::%player%} is "True":
  495. set slot 0 of player's inventory to 1 emerald named "&a✎ Idle Miner &7(Click to earn 5 cash)"
  496. if {click::5::%player%} is "True":
  497. set slot 0 of player's inventory to 1 emerald named "&a✎ Idle Miner &7(Click to earn 8 cash)"
  498.  
  499.  
  500. on rightclick:
  501. if player's tool is emerald named "&a✎ Idle Miner &7(Click to earn 1 cash)":
  502. add 1 to {cash::%player%}
  503. if player's tool is emerald named "&a✎ Idle Miner &7(Click to earn 2 cash)":
  504. add 2 to {cash::%player%}
  505. if player's tool is emerald named "&a✎ Idle Miner &7(Click to earn 3 cash)":
  506. add 3 to {cash::%player%}
  507. if player's tool is emerald named "&a✎ Idle Miner &7(Click to earn 5 cash)":
  508. add 5 to {cash::%player%}
  509. if player's tool is emerald named "&a✎ Idle Miner &7(Click to earn 8 cash)":
  510. add 8 to {cash::%player%}
  511.  
  512. every second:
  513. loop all players:
  514. if {level1::manager::%loop-player%} is "True":
  515. add 2 to {cash::%loop-player%}
  516. if {level1::jrmanager::%loop-player%} is "True":
  517. add 1 to {cash::%loop-player%}
  518. if {level1::srmanager::%loop-player%} is "True":
  519. add 3 to {cash::%loop-player%}
  520. if {level1::accountmanager::%loop-player%} is "True":
  521. add 4 to {cash::%loop-player%}
  522. if {level1::director::%loop-player%} is "True":
  523. add 5 to {cash::%loop-player%}
  524. if {level1::secretary::%loop-player%} is "True":
  525. add 6 to {cash::%loop-player%}
  526. if {level1::operator::%loop-player%} is "True":
  527. add 7 to {cash::%loop-player%}
  528. if {level2::manager::%loop-player%} is "True":
  529. add 4 to {cash::%loop-player%}
  530. if {level2::jrmanager::%loop-player%} is "True":
  531. add 2 to {cash::%loop-player%}
  532. if {level2::srmanager::%loop-player%} is "True":
  533. add 6 to {cash::%loop-player%}
  534. if {level2::accountmanager::%loop-player%} is "True":
  535. add 8 to {cash::%loop-player%}
  536. if {level2::director::%loop-player%} is "True":
  537. add 10 to {cash::%loop-player%}
  538. if {level2::secretary::%loop-player%} is "True":
  539. add 12 to {cash::%loop-player%}
  540. if {level2::operator::%loop-player%} is "True":
  541. add 14 to {cash::%loop-player%}
  542. if {level3::manager::%loop-player%} is "True":
  543. add 8 to {cash::%loop-player%}
  544. if {level3::jrmanager::%loop-player%} is "True":
  545. add 4 to {cash::%loop-player%}
  546. if {level3::srmanager::%loop-player%} is "True":
  547. add 12 to {cash::%loop-player%}
  548. if {level3::accountmanager::%loop-player%} is "True":
  549. add 16 to {cash::%loop-player%}
  550. if {level3::director::%loop-player%} is "True":
  551. add 20 to {cash::%loop-player%}
  552. if {level3::secretary::%loop-player%} is "True":
  553. add 24 to {cash::%loop-player%}
  554. if {level3::operator::%loop-player%} is "True":
  555. add 28 to {cash::%loop-player%}
  556.  
  557. every 1 second:
  558. loop all players:
  559. if {miner::level::%loop-player%} is equal to 1:
  560. add 1 to {miner::level::%loop-player%}
  561. if {miner::level::%loop-player%} is equal to 2:
  562. add 1 to {miner::level::%loop-player%}
  563. if {miner::level::%loop-player%} is equal to 3:
  564. add 1 to {miner::level::%loop-player%}
  565. if {miner::level::%loop-player%} is equal to 4:
  566. add 1 to {miner::level::%loop-player%}
  567. if {miner::level::%loop-player%} is equal to 5:
  568. set {miner::level::%loop-player%} to 1
  569.  
  570. command /reset:
  571. trigger:
  572. loop all players:
  573. set {miner::level::%loop-player%} to 1
  574. set {cash::%loop-player%} to 0
  575. set {level1::jrmanager::%loop-player%} to "False"
  576. set {level1::manager::%loop-player%} to "False"
  577.  
  578. command /level [<number>]:
  579. trigger:
  580. if player is not in world "Main":
  581. send "&fUnknown command. Type ""/help"" for help."
  582. stop
  583. if arg 1 is 2:
  584. if {level::2::%player%} is "True":
  585. send "&e(Leveling) &7You are already level 2"
  586. stop
  587. if {cash::%player%} is less than 30000:
  588. send "&e(Leveling) &7You need 30k cash to level up to level 2"
  589. stop
  590. if {cash::%player%} is more than 29999:
  591. send "&e(Leveling) &7You have leveled up to level 2"
  592. set {level::2::%player%} to "True"
  593. set {level::1::%player%} to "False"
  594. remove 30000 from {cash::%player%}
  595. set {level1::jrmanager::%player%} to "False"
  596. set {level1::manager::%player%} to "False"
  597. set {level1::srmanager::%player%} to "False"
  598. set {level1::operator::%player%} to "False"
  599. set {level1::secretary::%player%} to "False"
  600. set {level1::director::%player%} to "False"
  601. set {level1::accountmanager::%player%} to "False"
  602. stop
  603. if arg 1 is 3:
  604. if {level::3::%player%} is "True":
  605. send "&e(Leveling) &7You are already level 3"
  606. stop
  607. if {cash::%player%} is less than 60000:
  608. send "&e(Leveling) &7You need 60k cash to level up to level 3"
  609. stop
  610. if {cash::%player%} is more than 59999:
  611. send "&e(Leveling) &7You have leveled up to level 3"
  612. set {level::3::%player%} to "True"
  613. set {level::2::%player%} to "False"
  614. set {level::1::%player%} to "False"
  615. remove 30000 from {cash::%player%}
  616. set {level2::jrmanager::%player%} to "False"
  617. set {level2::manager::%player%} to "False"
  618. set {level2::srmanager::%player%} to "False"
  619. set {level2::operator::%player%} to "False"
  620. set {level2::secretary::%player%} to "False"
  621. set {level2::director::%player%} to "False"
  622. set {level2::accountmanager::%player%} to "False"
  623. stop
  624.  
  625. command /clickers:
  626. aliases: /clicker
  627. trigger:
  628. if player is not in world "Main":
  629. send "&fUnknown command. Type ""/help"" for help."
  630. stop
  631. open chest with 3 rows named " &0&nClickers" to player
  632. format slot 10 of player with 1 emerald named "&3##2 Clicker &7(Click to purchase)" with lore "||&7Click to purchase the ##2 clicker||&7||&3Price: &a200 cash||&7" to run [make player execute "/clicker1"]
  633. format slot 11 of player with 1 emerald named "&3##3 Clicker &7(Click to purchase)" with lore "||&7Click to purchase the ##3 clicker||&7||&3Price: &a400 cash||&7" to run [make player execute "/clicker2"]
  634. format slot 12 of player with 1 emerald named "&3##4 Clicker &7(Click to purchase)" with lore "||&7Click to purchase the ##4 clicker||&7||&3Price: &a800 cash||&7" to run [make player execute "/clicker3"]
  635. format slot 13 of player with 1 emerald named "&3##5 Clicker &7(Click to purchase)" with lore "||&7Click to purchase the ##5 clicker||&7||&3Price: &a1200 cash||&7" to run [make player execute "/clicker4"]
  636.  
  637. command /clicker1:
  638. trigger:
  639. if player is not in world "Main":
  640. send "&fUnknown command. Type ""/help"" for help."
  641. stop
  642. if {click::1::%player%} is "True":
  643. send "&e(Clicker) &7You already have this clicker"
  644. stop
  645. if {cash::%player%} is less than 199:
  646. send "&e(Clicker) &7You need 200 cash to purchase this clicker"
  647. stop
  648. if {cash::%player%} is more than 199:
  649. set {click::1::%player%} to "True"
  650. remove 200 from {cash::%player%}
  651. send "&e(Clicker) &7You have purchased the click ##2"
  652. set slot 0 of player's inventory to 1 emerald named "&a✎ Idle Miner &7(Click to earn 2 cash)"
  653. stop
  654.  
  655. command /clicker2:
  656. trigger:
  657. if player is not in world "Main":
  658. send "&fUnknown command. Type ""/help"" for help."
  659. stop
  660. if {click::2::%player%} is "True":
  661. send "&e(Clicker) &7You already have this clicker"
  662. stop
  663. if {cash::%player%} is less than 399:
  664. send "&e(Clicker) &7You need 400 cash to purchase this clicker"
  665. stop
  666. if {cash::%player%} is more than 399:
  667. set {click::2::%player%} to "True"
  668. remove 400 from {cash::%player%}
  669. send "&e(Clicker) &7You have purchased the click ##3"
  670. set slot 0 of player's inventory to 1 emerald named "&a✎ Idle Miner &7(Click to earn 3 cash)"
  671. stop
  672.  
  673. command /clicker3:
  674. trigger:
  675. if player is not in world "Main":
  676. send "&fUnknown command. Type ""/help"" for help."
  677. stop
  678. if {click::3::%player%} is "True":
  679. send "&e(Clicker) &7You already have this clicker"
  680. stop
  681. if {cash::%player%} is less than 799:
  682. send "&e(Clicker) &7You need 800 cash to purchase this clicker"
  683. stop
  684. if {cash::%player%} is more than 799:
  685. set {click::3::%player%} to "True"
  686. remove 800 from {cash::%player%}
  687. send "&e(Clicker) &7You have purchased the click ##4"
  688. set slot 0 of player's inventory to 1 emerald named "&a✎ Idle Miner &7(Click to earn 5 cash)"
  689. stop
  690.  
  691. command /clicker4:
  692. trigger:
  693. if player is not in world "Main":
  694. send "&fUnknown command. Type ""/help"" for help."
  695. stop
  696. if {click::4::%player%} is "True":
  697. send "&e(Clicker) &7You already have this clicker"
  698. stop
  699. if {cash::%player%} is less than 1199:
  700. send "&e(Clicker) &7You need 1200 cash to purchase this clicker"
  701. stop
  702. if {cash::%player%} is more than 1199:
  703. set {click::4::%player%} to "True"
  704. remove 1200 from {cash::%player%}
  705. send "&e(Clicker) &7You have purchased the click ##5"
  706. set slot 0 of player's inventory to 1 emerald named "&a✎ Idle Miner &7(Click to earn 8 cash)"
  707. stop
  708.  
  709. command /resetclicker:
  710. trigger:
  711. if player is not in world "Main":
  712. send "&fUnknown command. Type ""/help"" for help."
  713. stop
  714. set {click::1::%player%} to "False"
  715.  
  716. command /money [<text>] [<offlineplayer>] [<number>]:
  717. permission: admin.use
  718. trigger:
  719. if player is not in world "Main":
  720. send "&fUnknown command. Type ""/help"" for help."
  721. stop
  722. if arg 1 is not set:
  723. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  724. stop
  725. if arg 2 is not set:
  726. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  727. stop
  728. if arg 1 is "add":
  729. if arg 2 is set:
  730. if arg 3 is set:
  731. send "&e(MONEY) &6%arg 3% &7was added to &6%arg 2%'s &7cash" to player
  732. send "&e(MONEY) &6%arg 3% &7was added to your cash" to arg 2
  733. add arg 3 to {cash::%arg 2%}
  734. stop
  735. else:
  736. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  737. stop
  738. else:
  739. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  740. stop
  741. else:
  742. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  743. stop
  744. if arg 1 is "remove":
  745. if arg 2 is set:
  746. if arg 3 is set:
  747. send "&e(MONEY) &6%arg 3% &7was removed from &6%arg 2%'s &7cash" to player
  748. send "&e(MONEY) &6%arg 3% &7was removed from your cash" to arg 2
  749. remove arg 3 from {cash::%arg 2%}
  750. stop
  751. else:
  752. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  753. stop
  754. else:
  755. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  756. stop
  757. else:
  758. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  759. stop
  760. if arg 1 is "set":
  761. if arg 2 is set:
  762. if arg 3 is set:
  763. send "&e(MONEY) &6%arg 2%'s &7cash was set to &6%arg 3%" to player
  764. send "&e(MONEY) &7Your cash was set to &6%arg 3%" to arg 2
  765. set {cash::%arg 2%} to arg 3
  766. stop
  767. else:
  768. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  769. stop
  770. else:
  771. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  772. stop
  773. else:
  774. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  775. stop
  776. if arg 1 is "reset":
  777. if arg 2 is set:
  778. if arg 3 is not set:
  779. send "&e(MONEY) &6%arg 2%'s &7cash was reset" to player
  780. send "&e(MONEY) &7Your cash was reset" to arg 2
  781. set {cash::%arg 2%} to 0
  782. stop
  783. else:
  784. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  785. stop
  786. else:
  787. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  788. stop
  789. else:
  790. send "&e(MONEY) &7/money <add|remove|set|reset> <player> [<amount>]"
  791. stop
  792.  
  793. command /rank [<offlineplayer>] [<text>]:
  794. permission: admin.use
  795. trigger:
  796. if player is not in world "Main":
  797. send "&fUnknown command. Type ""/help"" for help."
  798. stop
  799. if arg 1 is not set:
  800. send "&e(RANK) &7/rank <player> <rank>"
  801. stop
  802. if arg 2 is not set:
  803. send "&e(RANK) &7/rank <player> <rank>"
  804. stop
  805. if arg 1 is set:
  806. if arg 2 is set:
  807. set {level1::jrmanager::%player%} to "False"
  808. set {level1::manager::%player%} to "False"
  809. set {level1::srmanager::%player%} to "False"
  810. set {level1::operator::%player%} to "False"
  811. set {level1::secretary::%player%} to "False"
  812. set {level1::director::%player%} to "False"
  813. set {level1::accountmanager::%player%} to "False"
  814. set {level2::jrmanager::%player%} to "False"
  815. set {level2::manager::%player%} to "False"
  816. set {level2::srmanager::%player%} to "False"
  817. set {level2::operator::%player%} to "False"
  818. set {level2::secretary::%player%} to "False"
  819. set {level2::director::%player%} to "False"
  820. set {level2::accountmanager::%player%} to "False"
  821. set {level3::jrmanager::%player%} to "False"
  822. set {level3::manager::%player%} to "False"
  823. set {level3::srmanager::%player%} to "False"
  824. set {level3::operator::%player%} to "False"
  825. set {level3::secretary::%player%} to "False"
  826. set {level3::director::%player%} to "False"
  827. set {level3::accountmanager::%player%} to "False"
  828. if arg 2 is "1":
  829. send "&e(RANK) &7Set &8%arg 1%'s &7rank to &8%arg 2%" to player
  830. set {level::1::%player%} to "True"
  831. set {level::2::%player%} to "False"
  832. set {level::3::%player%} to "False"
  833. if arg 2 is "2":
  834. send "&e(RANK) &7Set &8%arg 1%'s &7rank to &8%arg 2%" to player
  835. set {level::1::%player%} to "False"
  836. set {level::2::%player%} to "True"
  837. set {level::3::%player%} to "False"
  838. if arg 2 is "3":
  839. send "&e(RANK) &7Set &8%arg 1%'s &7rank to &8%arg 2%" to player
  840. set {level::1::%player%} to "False"
  841. set {level::2::%player%} to "False"
  842. set {level::3::%player%} to "True"
Add Comment
Please, Sign In to add comment