Guest User

Untitled

a guest
Jan 28th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.79 KB | None | 0 0
  1. on join:
  2. if {rank::%uuid of player%} is not set:
  3. antibot(player)
  4. else:
  5. delete {antibot::%player%}
  6. delete {antibottext::%player%}
  7. set {_uuid} to uuid of player
  8. set {_p} to player
  9. if {balance::%{_uuid}%} is not set:
  10. set {balance::%{_uuid}%} to 0
  11. tutorial(player)
  12. give player 1 of white stained glass named "&bGenerator" with lore "&f&lCOMMON" and "&f" and "&7Place down every 5 seconds drops money" and "&7above the generator"
  13. teleport player to {spawn}
  14. broadcast "&fWelcome &b%{_p}% &fTo Banknote &b/tutorial &ffor help &b##%{logins}%"
  15. add 1 to {logins}
  16. set {_new} to true
  17. if {gens::%{_uuid}%} is not set:
  18. set {gens::%{_uuid}%} to 0
  19. set {runes::%{_uuid}%} to 0
  20. set {xp::%{_uuid}%} to 0
  21. set {level::%{_uuid}%} to 1
  22. set {balance::%{_uuid}%} to 0
  23. set {_new} to true
  24. if {_new} is not set:
  25. if {lastloc::%player%} is not {antibot}:
  26. teleport the player to {lastloc::%player%}
  27. delete {lastloc::%player%}
  28. else:
  29. teleport the player to {spawn}
  30. set slot 0 of player's inventory to unbreakable iron sword
  31. set slot 1 of player's inventory to unbreakable iron pickaxe
  32. if {rank::%uuid of player%} is set:
  33. if {role::%uuid of player%} is not set:
  34. set the join message to "&8[&a+&8] %rank(player)% &3%player%"
  35. else:
  36. set the join message to "&8[&a+&8] %{role::%uuid of player%}% &3%player%"
  37. else:
  38. set the join message to "&8[&a+&8] &3%player%"
  39. command /prestigeset [<offline player>] [<text>]:
  40. permission: *
  41. trigger:
  42. if arg 1 is set:
  43. if arg 2 is set:
  44. if arg 2 is not "none":
  45. set {prestige::%uuid of arg-1%} to arg 2
  46. else:
  47. delete {prestige::%uuid of arg-1%}
  48. on inventory close:
  49. if {antibot::%player%} is set:
  50. kick the player due to "&4&lFailed Antibot"
  51. on pickup:
  52. cancel event
  53. set {_a} to item amount of event-item
  54. delete event-entity
  55. add {_a} of event-item to player's inventory
  56. on quit:
  57. if {role::%player%} is not set:
  58. if {antibot::%player%} is set:
  59. delete {antibot::%player%}
  60. set the quit message to "&f"
  61. else if {rank::%player%} is set:
  62. set the quit message to "&8[&4-&8] %rank(player)% &3%player%"
  63. else:
  64. set the quit message to "&8[&4-&8] &3%player%"
  65. else:
  66. set the quit message to "&8[&4-&8] %{role::%uuid of player%}% &3%player%"
  67. if {antibot::%player%} is set:
  68. delete {antibot::%player%}
  69. set the quit message to "&f"
  70. loop {block::%player%::*}:
  71. if block at loop-value is sea lantern:
  72. set {_check} to true
  73. if {_check} is not set:
  74. loop {block::%player%::*}:
  75. if block at loop-value is cobblestone or iron block or smooth stone or polished andesite:
  76. set block at loop-value to air
  77. delete {block::owner::%loop-value%}
  78. delete {block::%player%::%loop-value%}
  79. command /blockreset:
  80. permission: *
  81. trigger:
  82. loop {block::owner::*}:
  83. broadcast ".%loop-value-1%"
  84. loop {block::%loop-value-1%::*}:
  85. delete {block::%loop-value-1%::%loop-value-2%}
  86. delete {block::owner::%loop-value-2%}
  87. set block at loop-value-2 to air
  88. loop {block::%uuid of loop-value-1%::*}:
  89. delete {block::%uuid of loop-value-1%::%loop-value-2%}
  90. delete {block::owner::%loop-value-2%}
  91. set block at loop-value-2 to air
  92. command /baltop:
  93. trigger:
  94. loop {balance::*}:
  95. add 1 to {_size}
  96. if {_low.to.high.list::%loop-value%} is not set:
  97. set {_low.to.high.list::%loop-value%} to loop-index
  98. else:
  99. set {_n} to 0
  100. loop {_size} times:
  101. set {_n} to {_n}+1
  102. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  103. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  104. stop loop
  105. wait 1 tick
  106. set {_n} to size of {_low.to.high.list::*}
  107. loop {_low.to.high.list::*}:
  108. set {_high.to.low.list::%{_n}%} to loop-value
  109. set {_n} to {_n}-1
  110. wait 1 tick
  111. set {_i} to 0
  112. #THIS IS THE MESSAGE WITH TOP BALANCE
  113. send " &3&lBaltop &8(&3$&b10 &3Buycraft&8)"
  114. loop {_high.to.low.list::*}:
  115. add 1 to {_topnumber}
  116. set {_player} to "%loop-value%" parsed as offlineplayer
  117. set {_uuid} to uuid of {_player}
  118. send "&3%{_topnumber}%&8| &b%{_player}% &8| &b%{balance::%{_uuid}%}%&3$"
  119. add 1 to {_i}
  120. if {_topnumber} > 9: #this is top 10 you can change it
  121. stop
  122. command /leveltop:
  123. trigger:
  124. loop {prestige::*}:
  125. add 1 to {_size2}
  126. if {_low.to.high.list2::%loop-value%} is not set:
  127. set {_low.to.high.list2::%loop-value%} to loop-index
  128. else:
  129. set {_n2} to 0
  130. loop {_size2} times:
  131. set {_n2} to {_n2}+1
  132. {_low.to.high.list2::%loop-value-1%.%{_n2}%} is not set
  133. set {_low.to.high.list2::%loop-value-1%.%{_n2}%} to loop-index
  134. stop loop
  135. loop {level::*}:
  136. add 1 to {_size}
  137. if {_low.to.high.list::%loop-value%} is not set:
  138. set {_low.to.high.list::%loop-value%} to loop-index
  139. else:
  140. set {_n} to 0
  141. loop {_size} times:
  142. set {_n} to {_n}+1
  143. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  144. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  145. stop loop
  146. wait 1 tick
  147. set {_n} to size of {_low.to.high.list::*}
  148. loop {_low.to.high.list::*}:
  149. set {_high.to.low.list::%{_n}%} to loop-value
  150. set {_n} to {_n}-1
  151. wait 1 tick
  152. set {_i} to 0
  153. wait 1 tick
  154. set {_n2} to size of {_low.to.high.list2::*}
  155. loop {_low.to.high.list2::*}:
  156. set {_high.to.low.list2::%{_n2}%} to loop-value
  157. set {_n2} to {_n2}-1
  158. wait 1 tick
  159. #THIS IS THE MESSAGE WITH TOP BALANCE
  160. send " &3&lLeveltop &8(&3$&b10 &3Buycraft&8)"
  161. loop {_high.to.low.list2::*}:
  162. add 1 to {_topnumber}
  163. set {_player} to "%loop-value-1%" parsed as offlineplayer
  164. set {_uuid} to uuid of {_player}
  165. set {_text} to prestigecheck({_player})
  166. remove loop-value from {_high.to.low.list::*}
  167. remove loop-value from {_high.to.low.list2::*}
  168. send "&3%{_topnumber}%&8| &b%{_player}% &8| &8[%{_text}%&8-&f%{level::%{_uuid}%}%&8]"
  169. add 1 to {_i}
  170. if {_topnumber} >= 10: #this is top 10 you can change it
  171. stop
  172. loop {_high.to.low.list::*}:
  173. add 1 to {_topnumber}
  174. set {_player} to "%loop-value-1%" parsed as offlineplayer
  175. set {_uuid} to uuid of {_player}
  176. send "&3%{_topnumber}%&8| &b%{_player}% &8| &8[&f%{level::%{_uuid}%}%&8]"
  177. add 1 to {_i}
  178. if {_topnumber} >= 10: #this is top 10 you can change it
  179. stop
  180. every 8 minutes:
  181. send "&f" to all players
  182. send "<link:https://discord.gg/m6Kp7eq>&b&lDISCORD &f<- Click for discord link!" to all players
  183. send "&f" to all players
  184. command /blockfix [<text>]:
  185. permission: *
  186. trigger:
  187. if arg 1 is "cobble":
  188. loop {block::owner::*}:
  189. loop {block::%loop-value-1%::*}:
  190. if block at loop-value-2 is cobblestone:
  191. delete {block::%loop-value-1%::%loop-value-2%}
  192. delete {block::owner::%loop-value-2%}
  193. set block at loop-value-2 to air
  194. add 1 to {_amount}
  195. send "&3&lRemoved &b&l%{_amount}% &3&lCobblestone blocks"
  196. command /rules:
  197. trigger:
  198. send "&4&l Rules"
  199. send "&b1&8. &fNo Spawn Camping - Perm Ban"
  200. send "&b2&8. &fSwearing is allowd dont be toxic towards others - 24h Mute"
  201. send "&b3&8. &fNo Hack Clients - Perm Ban"
  202. send "&b4&8. &fNo unfair advantages (butterfly clicking, autoclicking) - Perm Ban"
  203. send "&b5&8. &fNo staff disrespect - 24h Mute"
  204. send "&b6&8. &fNo teams bigger than 3 people - Entire Team 3 day Ban"
  205. send "&b7&8. &fScamming/insiding - Perm Ban"
  206. send "&b8&8. &fLieing To The Owner - Perm Ban"
  207. send "&b9&8. &fCannot Take over Players Gens or force into giving you there gens or ingame items through real life - Perm Ban"
  208. send "&b10&8. &fBlock Glitching (place sea lantern through blocks) - Perm Ban"
  209. send "&b11&8. &fFarming kills (with friends/bots) - Perm Ban"
  210. send "&b12&8. &fAuto/afk Claiming Banknotes - Perm Ban"
  211. on inventory click:
  212. if "%inventory action%" = "swap with hotbar" or "hotbar move and read":
  213. cancel event
  214. else if index of event-slot = 0 or 1:
  215. event-inventory = player's inventory
  216. cancel event
  217. command /fakeleave:
  218. permission: *
  219. trigger:
  220. broadcast "&8[&4-&8] %{role::%uuid of player%}% &3%player%"
  221. command /tutorial:
  222. trigger:
  223. tutorial(player)
  224. function tutorial(p: player):
  225. send " &3&lTutorial" to {_p}
  226. send "&fStart by going out and killing people to get xp and money, with that you can buy generators in /shop. Mine resources" to {_p}
  227. send "&faround the map and do /craft to make blocks and explosvies with them! explosives are used to raid the types of block" to {_p}
  228. send "&fbesides cobblestone. When you die all your blocks disapeer but if you have a respawn lantern it will teleport you to" to {_p}
  229. send "&fthe respawn lantern in return it breaks but saves all your blocks" to {_p}
  230. command /invsee [<player>]:
  231. permission: *
  232. trigger:
  233. open arg 1's inventory to the player
  234. command /spawnset:
  235. permission: *
  236. trigger:
  237. set {spawn} to location of player
  238. set {spawn}'s pitch to player's pitch
  239. set {spawn}'s yaw to player's yaw
  240. command /rankset [<offline player>] [<text>]:
  241. permission: *
  242. trigger:
  243. if arg 1 is not set:
  244. send "/rankset player gay/gay+/queer/queer+/trans/trans+/none"
  245. else if arg 1 is set:
  246. if arg 2 is "gay":
  247. set {rank::%uuid of arg 1%} to 1
  248. else if arg 2 is "gay+":
  249. set {rank::%uuid of arg 1%} to 2
  250. else if arg 2 is "queer":
  251. set {rank::%uuid of arg 1%} to 3
  252. else if arg 2 is "queer+":
  253. set {rank::%uuid of arg 1%} to 4
  254. else if arg 2 is "trans":
  255. set {rank::%uuid of arg 1%} to 5
  256. else if arg 2 is "trans+":
  257. set {rank::%uuid of arg 1%} to 6
  258. else if arg 2 is "god":
  259. set {rank::%uuid of arg 1%} to 7
  260. else if arg 2 is "god+":
  261. set {rank::%uuid of arg 1%} to 8
  262. else if arg 2 is "boomer":
  263. set {rank::%uuid of arg 1%} to 9
  264. else if arg 2 is "boomer+":
  265. set {rank::%uuid of arg 1%} to 10
  266. else if arg 2 is "exotic":
  267. set {rank::%uuid of arg 1%} to 11
  268. else if arg 2 is "poison":
  269. set {rank::%uuid of arg 1%} to 11.1
  270. else if arg 2 is "none":
  271. delete {rank::%uuid of arg 1%}
  272. command /roleset [<offline player>] [<text>]:
  273. permission: *
  274. trigger:
  275. if arg 1 is not set:
  276. send "/roleset player owner/staff"
  277. else if arg 1 is set:
  278. if arg 2 is "staff":
  279. set {role::%uuid of arg 1%} to "&c&lSTAFF"
  280. else if arg 2 is "owner":
  281. set {role::%uuid of arg 1%} to "&c&lOWNER"
  282. else if arg 2 is "none":
  283. delete {role::%uuid of arg 1%}
  284. function rank(p: player) :: text:
  285. set {_p} to uuid of {_p}
  286. if {rank::%{_p}%} is 1:
  287. return "&a&lVIP"
  288. else if {rank::%{_p}%} is 2:
  289. return "&a&lVIP&2&l+"
  290. else if {rank::%{_p}%} is 3:
  291. return "&b&lMVP"
  292. else if {rank::%{_p}%} is 4:
  293. return "&b&lMVP&3&l+"
  294. else if {rank::%{_p}%} is 5:
  295. return "&5&lMYTHIC"
  296. else if {rank::%{_p}%} is 6:
  297. return "&5&lMYTHIC&d&l+"
  298. else if {rank::%{_p}%} is 7:
  299. return "&e&lGOD"
  300. else if {rank::%{_p}%} is 8:
  301. return "&e&lGOD&6&l+"
  302. else if {rank::%{_p}%} is 9:
  303. return "&4&lBOOMER"
  304. else if {rank::%{_p}%} is 10:
  305. return "&4&lBOOMER&c&l+"
  306. else if {rank::%{_p}%} is 11:
  307. return "&c&l&k-&r&4&lREDSTONE&c&l&k-&r"
  308. else if {rank::%{_p}%} is 11.1:
  309. return "&2&l&k-&r&a&lPOISON&2&l&k-&r"
  310. every 5 minutes:
  311. execute console command "/br &fWanna advantage over your enemies!? &b&n/buy&r &fBuy ranks or gen slots and ranks have a xp and money booster!!!"
  312. function kill(v: player , a: player):
  313. heal {_v}
  314. chance of 50%:
  315. add 1 to {runes::%{_uuida}%}
  316. set {_uuidv} to uuid of {_v}
  317. set {_uuida} to uuid of {_a}
  318. set {_xp} to random integer between 6 and 9
  319. set {_$} to random integer between 7 and 10
  320. send action bar "&3&lDeath&8&l: &fKilled By &b%{_a}% &ffor &b%{_xp}%&3 XP &fand &b%{_$}%&3$" to {_v}
  321. send action bar "&3&lDeath&8&l: &fKilled &b%{_v}% &fand got &b%{_xp}%&3 XP &fand &b%{_$}%&3$" to {_a}
  322. add {level::%{_uuidv}%} / 2.5 to {_xp}
  323. add {level::%{_uuida}%} / 4 to {_xp}
  324. if {rank::%{_uuida}%} is set:
  325. set {_xp} to {_xp} * ({rank::%{_uuida}%} / 10 + 1)
  326. if {rank::%{_uuida}%} is set:
  327. set {_$} to {_$} * ({rank::%{_uuida}%} / 10 + 1)
  328. loop {block::%{_v}%::*}:
  329. if block at loop-value is sea lantern:
  330. set {_loc} to loop-value
  331. set {_owner} to {block::owner::%{_loc}%}
  332. set block at {_loc} to air
  333. delete {block::owner::%{_loc}%}
  334. delete {block::%{_owner}%::%{_loc}%}
  335. teleport {_v} to {_loc}
  336. set {_check} to true
  337. if {_check} is not set:
  338. teleport {_v} to {spawn}
  339. loop {block::%{_v}%::*}:
  340. delete {block::%{_v}%::%loop-value%}
  341. delete {block::owner::%loop-value%}
  342. if block at loop-value is cobblestone or smooth stone or iron block or polished andesite or iron trapdoor:
  343. set block at loop-value to air
  344. delete {block::owner::%loop-value%}
  345. delete {block::%{_v}%::%loop-value%}
  346. if {level::%{_uuida}%} is less than 20:
  347. add {_xp} to {xp::%{_uuida}%}
  348. add {_$} to {balance::%{_uuida}%}
  349. if {xp::%{_uuida}%} is greater than xpnext({_a}):
  350. if {level::%{_uuida}%} is less than 20:
  351. set {xp::%{_uuida}%} to 0
  352. add 1 to {level::%{_uuida}%}
  353. send title "&b&lLeveled Up!" with subtitle "&8[&f%{level::%{_uuida}%} - 1%&8] &b➠ &8[&f%{level::%{_uuida}%}%&8]" to {_a}
  354. command /fix [<offline player>]:
  355. permission: *
  356. trigger:
  357. set {balance::%arg 1%} to 0
  358. set {xp::%arg 1%} to 0
  359. set {level::%arg 1%} to 1
  360. on death:
  361. kill(victim, attacker)
  362. command /suicide:
  363. trigger:
  364. set {_uuidv} to uuid of player
  365. set {_v} to player
  366. heal {_v}
  367. loop {block::%{_v}%::*}:
  368. if block at loop-value is sea lantern:
  369. set {_loc} to loop-value
  370. set {_owner} to {block::owner::%{_loc}%}
  371. set block at {_loc} to air
  372. delete {block::owner::%{_loc}%}
  373. delete {block::%{_owner}%::%{_loc}%}
  374. teleport {_v} to {_loc}
  375. set {_check} to true
  376. if {_check} is not set:
  377. teleport {_v} to {spawn}
  378. loop {block::%{_v}%::*}:
  379. delete {block::%{_v}%::%loop-value%}
  380. delete {block::owner::%loop-value%}
  381. if block at loop-value is cobblestone or bedrock or gray stained glass or iron trapdoor:
  382. set block at loop-value to air
  383. delete {block::owner::%loop-value%}
  384. delete {block::%{_v}%::%loop-value%}
  385. function xpnext(p: player) :: number:
  386. set {_uuid} to uuid of {_p}
  387. loop {level::%{_uuid}%} times:
  388. if {_xp} is not set:
  389. set {_xp} to 140
  390. else:
  391. set {_xp} to {_xp} * 1.42
  392. set {_xp} to round ({_xp})
  393. return {_xp}
  394. command /maxgensadd [<offline player>] [<number>]:
  395. permission: *
  396. trigger:
  397. if arg 2 is not set:
  398. add 1 to {genslots::%uuid of arg 1%}
  399. else:
  400. add arg-2 to {genslots::%uuid of arg 1%}
  401. command /br [<text>]:
  402. permission: *
  403. trigger:
  404. set {_arg1} to colored arg 1
  405. broadcast "&f"
  406. broadcast "&3&lBanknote &8&l| &f%{_arg1}%"
  407. broadcast "&f"
  408. command /bal [<offline player>]:
  409. trigger:
  410. send "&3&lBalance&8&l: &b%arg 1% &fcurrent balance is &b%{balance::%uuid of arg-1%}%&3$"
  411. command /deletecombattag:
  412. permission: *
  413. trigger:
  414. loop {combattag::*}:
  415. delete {combattagtime::%loop-value%}
  416. delete {combattag::%loop-value%}
  417. on place of cobblestone:
  418. if "%region at event-block%" does not contain "spawnarea":
  419. set {block::owner::%location of event-block%} to player
  420. set {block::%player%::%location of event-block%} to location of event-block
  421. else:
  422. cancel event
  423. on break of cobblestone:
  424. delete {block::%{block::owner::%location of event-block%}%::%location of event-block%}
  425. delete {block::owner::%location of event-block%}
  426. command /serverreset:
  427. permission: *
  428. trigger:
  429. set {_n} to "K9Lil" parsed as a player
  430. if name of player is {_n}:
  431. delete {balance::*}
  432. delete {antibot::*}
  433. loop {block::owner::*}:
  434. set {_uuid} to uuid of loop-value
  435. delete {block::%loop-value-1%::*}
  436. delete {block::%{_uuid}%::*}
  437. delete {block::owner::*}
  438. delete {gems::*}
  439. delete {breakingtime::*}
  440. delete {generators::*}
  441. delete {gens::*}
  442. delete {level::*}
  443. delete {prestige::*}
  444. delete {owner::*}
  445. delete {xp::*}
  446. set {logins} to 0
  447. else:
  448. send "&4&lOnly K9Lil Can Do this Command"
  449. on chat:
  450. cancel event
  451. if {antibot::%player%} is set:
  452. if message contains {antibottext::%player%}:
  453. delete {antibot::%player%}
  454. delete {antibottext::%player%}
  455. set {_uuid} to uuid of player
  456. set {_p} to player
  457. if {balance::%{_uuid}%} is not set:
  458. set {balance::%{_uuid}%} to 0
  459. tutorial(player)
  460. give player 1 of white stained glass named "&bGenerator" with lore "&f&lCOMMON" and "&f" and "&7Place down every 5 seconds drops money" and "&7above the generator"
  461. teleport player to {spawn}
  462. broadcast "&fWelcome &b%{_p}% &fTo Banknote &b/tutorial &ffor help &b##%{logins}%"
  463. add 1 to {logins}
  464. set {_new} to true
  465. if {gens::%{_uuid}%} is not set:
  466. set {gens::%{_uuid}%} to 0
  467. set {rune::%{_uuid}%} to 0
  468. set {xp::%{_uuid}%} to 0
  469. set {level::%{_uuid}%} to 1
  470. set {balance::%{_uuid}%} to 0
  471. set {_new} to true
  472. if {_new} is not set:
  473. if {lastloc::%player%} is not {antibot}:
  474. teleport the player to {lastloc::%player%}
  475. delete {lastloc::%player%}
  476. else:
  477. teleport the player to {spawn}
  478. else:
  479. kick the player due to "&4&lTyped Antibot Incorrectly"
  480. else:
  481. if {role::%uuid of player%} is set:
  482. broadcast "%displaycheck(player)% &8| &f%message%"
  483. else if {rank::%uuid of player%} is set:
  484. broadcast "%displaycheck(player)% &8| &f%message%"
  485. else:
  486. broadcast "%displaycheck(player)% &8| &7%message%"
  487. item damage:
  488. cancel event
  489. repair tool
  490. on hunger meter change:
  491. cancel event
  492. on drop:
  493. if event-item = sword, pickaxe, helmet, chestplate, leggings or boots:
  494. cancel event
  495. command /discord:
  496. trigger:
  497. send "&f" to player
  498. send "<link:https://discord.gg/m6Kp7eq>&b&lDISCORD &f<- Click for discord link!" to player
  499. send "&f" to player
  500. on craft:
  501. cancel event
  502. on swap hand items:
  503. cancel event
  504. on damage:
  505. if {data::clan::%uuid of victim%} is {data::clan::%uuid of attacker%}:
  506. cancel event
  507. stop
  508. if damage cause is fall:
  509. cancel event
  510. stop
  511. if "%region at victim%" contains "nopvp" or "nopvp1":
  512. cancel event
  513. send title "&3&lSpawn" with subtitle "&fYou dont have permission to damage player's here!" to attacker
  514. if victim's health is less than 3.9:
  515. cancel event
  516. kill(victim, attacker)
  517. on break of stone or purple concrete or purple stained glass or black stained glass or gray concrete or lantern or black concrete:
  518. if {staffmode::%uuid of player%} is not set:
  519. cancel event
  520. send title "&3&lMap" with subtitle "&fYou dont have permission to break these type of blocks!" to player
  521. command /staffmode [<offline player>]:
  522. permission: *
  523. trigger:
  524. if {staffmode::%uuid of arg-1%} is set:
  525. delete {Staffmode::%uuid of arg-1%}
  526. send title "&b&lStaffmode" with subtitle "&fStaffmode has been turned &bOff" to arg 1
  527. else if {staffmode::%uuid of arg-1%} is not set:
  528. set {staffmode::%uuid of arg-1%} to true
  529. send title "&b&lStaffmode" with subtitle "&fStaffmode has been turned &bOn" to arg 1
  530. every 3 seconds:
  531. loop all players:
  532. wipe loop-player's sidebar
  533. set tablist name of loop-player to "&f%displaycheck(loop-player)%"
  534. set name of sidebar of loop-player to "&b&lBanknote &8[&3&nV&b3.0.0&8]"
  535. set score "&3----------------------" in sidebar of loop-player to 12
  536. set score "&b&l▷ &3&l%loop-player%" in sidebar of loop-player to 11
  537. set score " &b▷ &fBalance&8: &b%{balance::%uuid of loop-player%}%&3$" in sidebar of loop-player to 10
  538. set score " &b▷ &fRunes&8: &c%{runes::%uuid of loop-player%}%&4&l♢" in sidebar of loop-player to 9
  539. if {prestige::%uuid of loop-player%} is not set:
  540. set score " &b▷ &fLevel&8: &f%{level::%uuid of loop-player%}%" in sidebar of loop-player to 8
  541. else:
  542. set score " &b▷ &fLevel&8: %prestigecheck(loop-player)%&8-&f%{level::%uuid of loop-player%}%" in sidebar of loop-player to 8
  543. set score " &b▷ &fGens&8: &b%{gens::%uuid of loop-player%}%&7/&3%maxgens(loop-player)%" in sidebar of loop-player to 7
  544. if {level::%uuid of loop-player%} is not 20 + {prestige::%uuid of loop-player%}:
  545. set score " &b▷ &fXp&8: &b%{xp::%uuid of loop-player%}%&7/&3%xpnext(loop-player)%" in sidebar of loop-player to 6
  546. else:
  547. set score " &b▷ &fXp&8: &bMAX&7/&3MAX" in sidebar of loop-player to 6
  548. set score "&3-&3---------------------" in sidebar of loop-player to 5
  549. set score "&b&l▷ &3&lServer" in sidebar of loop-player to 4
  550. set score " &b▷ &fOnline&8: &b%number of all players%&7/&375" in sidebar of loop-player to 3
  551. set score " &b▷ &fLogins&8: &3##&b%{logins}%" in sidebar of loop-player to 2
  552. set score "&3--&3--------------------" in sidebar of loop-player to 1
  553. function maxgens(p: player) :: number:
  554. set {_p} to uuid of {_p}
  555. set {_maxgens} to ({rank::%{_p}%} + 0) + {level::%{_p}%} + 4 + {genslots::%{_p}%} + 0
  556. return {_maxgens}
  557. function displaycheck(p: player) :: text:
  558. set {_up} to uuid of {_p}
  559. if {role::%{_up}%} is set:
  560. if {clan::%{_up}%} is set:
  561. if {prestige::%{_up}%} is set:
  562. return "&8[&e%prestigecheck({_p})%&8-&f%{level::%{_up}%}%&8] &8[&b%{clan::%{_up}%}%&8] %{role::%{_up}%}% &3%{_p}%"
  563. else:
  564. return "&8[&e%prestigecheck({_p})%&8-&f%{level::%{_up}%}%&8] &8[&b%{clan::%{_up}%}%&8] %{role::%{_up}%}% &3%{_p}%"
  565. else:
  566. if {prestige::%{_up}%} is set:
  567. return "&8[&e%prestigecheck({_p})%&8-&f%{level::%{_up}%}%&8] %{role::%{_up}%}% &3%{_p}%"
  568. else:
  569. return "&8[&f%{level::%{_up}%}%&8] %{role::%{_up}%}% &3%{_p}%"
  570. else if {rank::%{_up}%} is set:
  571. if {clan::%{_up}%} is set:
  572. if {prestige::%{_up}%} is set:
  573. return "&8[&e%prestigecheck({_p})%&8-&f%{level::%{_up}%}%&8] &8[&b%{clan::%{_up}%}%&8] %rank({_p})% &3%{_p}%"
  574. else:
  575. return "&8[&f%{level::%{_up}%}%&8] &8[&b%{clan::%{_up}%}%&8] %rank({_p})% &3%{_p}%"
  576. else:
  577. if {prestige::%{_up}%} is set:
  578. return "&8[&e%prestigecheck({_p})%&8-&f%{level::%{_up}%}%&8] %rank({_p})% &3%{_p}%"
  579. else:
  580. return "&8[&f%{level::%{_up}%}%&8] %rank({_p})% &3%{_p}%"
  581. else if {rank::%{_up}%} is not set:
  582. if {clan::%{_up}%} is set:
  583. if {prestige::%{_up}%} is set:
  584. return "&8[&e%prestigecheck({_p})%&8-%{level::%{_up}%}%&8] &8[&b%{clan::%{_up}%}%&8] &3%{_p}%"
  585. else:
  586. return "&8[&7%{level::%{_up}%}%&8] &8[&b%{clan::%{_up}%}%&8] &3%{_p}%"
  587. else:
  588. if {prestige::%{_up}%} is set:
  589. return "&8[&e%prestigecheck({_p})%&8-%{level::%{_up}%}%&8] &3%{_p}%"
  590. else:
  591. return "&8[&7%{level::%{_up}%}%&8] &3%{_p}%"
  592. command /currency [<text>] [<offline player>] [<text>] [<number>]:
  593. permission: *
  594. trigger:
  595. if arg 1 is not set:
  596. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
  597. else if arg 1 is set:
  598. if arg 1 is "set":
  599. if arg 2 is set:
  600. if arg 3 is "level":
  601. if arg 4 is set:
  602. if arg 4 is greater than -1:
  603. set {level::%uuid of arg-2%} to arg 4
  604. send "&fset %arg 2%'s level to %arg 4%"
  605. else:
  606. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
  607. else if arg 3 is "bal":
  608. if arg 4 is set:
  609. if arg 4 is greater than -1:
  610. set {balance::%uuid of arg-2%} to arg 4
  611. send "&fset %arg 2%'s bal to %arg 4%$"
  612. else:
  613. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
  614. else if arg 3 is "xp":
  615. if arg 4 is set:
  616. if arg 4 is greater than -1:
  617. set {xpnext::%uuid of arg-2%} to 100
  618. set {xp::%uuid of arg-2%} to 0
  619. else:
  620. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
  621. else:
  622. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
  623. else:
  624. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
  625. else if arg 1 is "add":
  626. if arg 2 is set:
  627. if arg 3 is "level":
  628. if arg 4 is set:
  629. if arg 4 is greater than -1:
  630. add arg 4 to {level::%uuid of arg-2%}
  631. send "&fadded %arg 4% to %arg 2%'s level"
  632. else:
  633. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
  634. else if arg 3 is "bal":
  635. if arg 4 is set:
  636. if arg 4 is greater than -1:
  637. add arg 4 to {balance::%uuid of arg-2%}
  638. send "&fadded %arg 4%$ to %arg 2%'s bal"
  639. else:
  640. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
  641. else if arg 3 is "xp":
  642. if arg 4 is set:
  643. if arg 4 is greater than -1:
  644. set {xpnext::%uuid of arg-2%} to 100
  645. set {xp::%uuid of arg-2%} to 0
  646. else:
  647. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
  648. else:
  649. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
  650. else if arg 1 is "remove":
  651. if arg 2 is set:
  652. if arg 3 is "level":
  653. if arg 4 is set:
  654. if arg 4 is greater than -1:
  655. remove arg 4 from {level::%uuid of arg-2%}
  656. send "&fadded %arg 4% to %arg 2%'s level"
  657. else:
  658. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
  659. else if arg 3 is "bal":
  660. if arg 4 is set:
  661. if arg 4 is greater than -1:
  662. remove arg 4 from {bal::%uuid of arg-2%}
  663. send "&fremoved %arg 4%$ from %arg 2%'s bal"
  664. else:
  665. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
  666. else if arg 3 is "xp":
  667. if arg 4 is set:
  668. if arg 4 is greater than -1:
  669. set {xpnext::%uuid of arg-2%} to 100
  670. set {xp::%uuid of arg-2%} to 0
  671. else:
  672. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
  673. else:
  674. send "&f/currency (set/add/remove) (player) (level/bal/xp/genmax) (number)"
Add Comment
Please, Sign In to add comment