Advertisement
Guest User

Untitled

a guest
Jul 4th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.01 KB | None | 0 0
  1. command Rank:
  2. aliases: rang
  3. trigger:
  4. if {sexe.%player%} is not set:
  5. make console execute "setsexmenu %player%"
  6. stop
  7. if {sexe.%player%} is "garcon":
  8. open chest with 5 row named "&9Rangs - Menu" to player
  9. play "BLOCK_NOTE_PLING" to player at volume 10
  10. format slot 0 of player with air to be unstealable
  11. format slot 1 of player with air to be unstealable
  12. format slot 2 of player with air to be unstealable
  13. if {rang.%player%.Roi} is true:
  14. format slot 3 of player with a diamond block of infinity 1 with no nbt named "&6Roi" with lore "&a&lAcheté" to be unstealable
  15. format slot 5 of player with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&c&lInaccessible" to be unstealable
  16. else:
  17. if {rang.%player%.Ecuyer} and {rang.%player%.Chevalier} and {rang.%player%.Baron} and {rang.%player%.Comte} and {rang.%player%.Marquis} and {rang.%player%.Duc} is true:
  18. format slot 3 of player with a diamond block named "&6Roi" with lore "&7Prix: &c400,000" to run "rangbuyadmin %player% Roi2"
  19. else:
  20. format slot 3 of player with a diamond block named "&6Roi" with lore "&7Prix: &c1,000,000" to run "rangbuyadmin %player% Roi"
  21. format slot 4 of player with air to be unstealable
  22. if {rang.%player%.Marchand} is true:
  23. format slot 5 of player with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&a&lAcheté" to be unstealable
  24. format slot 3 of player with a diamond block of infinity 1 with no nbt named "&6Roi" with lore "&c&LInaccessible" to be unstealable
  25. else:
  26. if {rang.%player%.Ecuyer} and {rang.%player%.Chevalier} and {rang.%player%.Baron} and {rang.%player%.Comte} and {rang.%player%.Marquis} and {rang.%player%.Duc} is true:
  27. format slot 5 of player with emerald block named "&6Marchand" with lore "&7Prix: &c400,000" to run "rangbuyadmin %player% Marchand2"
  28. else:
  29. format slot 5 of player with emerald block named "&6Marchand" with lore "&7Prix: &c1,000,000" to run "rangbuyadmin %player% Marchand"
  30. if {rang.%player%.Roi} is true:
  31. format slot 5 of player with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&c&lInaccessible" to be unstealable
  32. format slot 6 of player with air to be unstealable
  33. format slot 7 of player with air to be unstealable
  34. format slot 8 of player with air to be unstealable
  35. format slot 9 of player with air to be unstealable
  36. format slot 10 of player with air to be unstealable
  37. format slot 11 of player with air to be unstealable
  38. format slot 12 of player with air to be unstealable
  39. format slot 13 of player with air to be unstealable
  40. format slot 14 of player with air to be unstealable
  41. format slot 15 of player with air to be unstealable
  42. format slot 16 of player with air to be unstealable
  43. format slot 17 of player with air to be unstealable
  44. format slot 18 of player with air to be unstealable
  45. format slot 19 of player with air to be unstealable
  46. if {rang.%player%.Comte} is true:
  47. format slot 20 of player with iron block of infinity 1 with no nbt named "&dComte" with lore "&a&lAcheté" to be unstealable
  48. else:
  49. format slot 20 of player with iron block named "&dComte" with lore "&7Prix: &c100,000" to run "rangbuyadmin %player% Comte"
  50. format slot 21 of player with air to be unstealable
  51. if {rang.%player%.Marquis} is true:
  52. format slot 22 of player with lapis block of infinity 1 with no nbt named "&bMarquis" with lore "&a&lAcheté" to be unstealable
  53. else:
  54. format slot 22 of player with lapis block named "&bMarquis" with lore "&7Prix: &c150,000" to run "rangbuyadmin %player% Marquis"
  55. format slot 23 of player with air to be unstealable
  56. if {rang.%player%.Duc} is true:
  57. format slot 24 of player with gold block of infinity 1 with no nbt named "&2Duc" with lore "&a&lAcheté" to be unstealable
  58. else:
  59. format slot 24 of player with gold block named "&2Duc" with lore "&7Prix: &c200,000" to run "rangbuyadmin %player% Duc"
  60. format slot 25 of player with air to be unstealable
  61. format slot 26 of player with air to be unstealable
  62. format slot 27 of player with air to be unstealable
  63. format slot 28 of player with air to be unstealable
  64. format slot 29 of player with air to be unstealable
  65. format slot 30 of player with air to be unstealable
  66. format slot 31 of player with air to be unstealable
  67. format slot 32 of player with air to be unstealable
  68. format slot 33 of player with air to be unstealable
  69. format slot 34 of player with air to be unstealable
  70. format slot 35 of player with air to be unstealable
  71. format slot 36 of player with air to be unstealable
  72. if {rang.%player%.Ecuyer} is true:
  73. format slot 37 of player with oak log of infinity 1 with no nbt named "&fÉcuyer" with lore "&a&lAcheté" to be unstealable
  74. else:
  75. format slot 37 of player with oak log named "&fÉcuyer" with lore "&7Prix: &c10,000" to run "rangbuyadmin %player% Ecuyer"
  76. format slot 39 of player with air to be unstealable
  77. if {rang.%player%.Chevalier} is true:
  78. format slot 40 of player with quartz block of infinity 1 with no nbt named "&eChevalier" with lore "&a&lAcheté" to be unstealable
  79. else:
  80. format slot 40 of player with quartz block named "&eChevalier" with lore "&7Prix: &c20,000" to run "rangbuyadmin %player% Chevalier"
  81. format slot 41 of player with air to be unstealable
  82. format slot 42 of player with air to be unstealable
  83. if {rang.%player%.Baron} is true:
  84. format slot 43 of player with redstone block of infinity 1 with no nbt named "&aBaron" with lore "&a&lAcheté" to be unstealable
  85. else:
  86. format slot 43 of player with redstone block named "&aBaron" with lore "&7Prix: &c50,000" to run "rangbuyadmin %player% Baron"
  87. format slot 44 of player with air to be unstealable
  88. else:
  89. if {sexe.%player%} is "fille":
  90. open chest with 5 row named "&9Rangs - Menu" to player
  91. play "BLOCK_NOTE_PLING" to player at volume 10
  92. format slot 0 of player with air to be unstealable
  93. format slot 1 of player with air to be unstealable
  94. format slot 2 of player with air to be unstealable
  95. if {rang.%player%.Roi} is true:
  96. format slot 3 of player with a diamond block of infinity 1 with no nbt named "&6Reine" with lore "&a&lAcheté" to be unstealable
  97. format slot 5 of player with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&c&lInaccessible" to be unstealable
  98. else:
  99. if {rang.%player%.Ecuyer} and {rang.%player%.Chevalier} and {rang.%player%.Baron} and {rang.%player%.Comte} and {rang.%player%.Marquis} and {rang.%player%.Duc} is true:
  100. format slot 3 of player with a diamond block named "&6Reine" with lore "&7Prix: &c400,000" to run "rangbuyadmin %player% Reine2"
  101. else:
  102. format slot 3 of player with a diamond block named "&6Reine" with lore "&7Prix: &c1,000,000" to run "rangbuyadmin %player% Reine"
  103. format slot 4 of player with air to be unstealable
  104. if {rang.%player%.Marchand} is true:
  105. format slot 5 of player with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&a&lAcheté" to be unstealable
  106. format slot 3 of player with a diamond block of infinity 1 with no nbt named "&6Reine" with lore "&c&LInaccessible" to be unstealable
  107. else:
  108. if {rang.%player%.Ecuyer} and {rang.%player%.Chevalier} and {rang.%player%.Baron} and {rang.%player%.Comte} and {rang.%player%.Marquis} and {rang.%player%.Duc} is true:
  109. format slot 5 of player with emerald block named "&6Marchande" with lore "&7Prix: &c400,000" to run "rangbuyadmin %player% Marchande2"
  110. else:
  111. format slot 5 of player with emerald block named "&6Marchande" with lore "&7Prix: &c1,000,000" to run "rangbuyadmin %player% Marchande"
  112. if {rang.%player%.Roi} is true:
  113. format slot 5 of player with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&c&lInaccessible" to be unstealable
  114. format slot 6 of player with air to be unstealable
  115. format slot 7 of player with air to be unstealable
  116. format slot 8 of player with air to be unstealable
  117. format slot 9 of player with air to be unstealable
  118. format slot 10 of player with air to be unstealable
  119. format slot 11 of player with air to be unstealable
  120. format slot 12 of player with air to be unstealable
  121. format slot 13 of player with air to be unstealable
  122. format slot 14 of player with air to be unstealable
  123. format slot 15 of player with air to be unstealable
  124. format slot 16 of player with air to be unstealable
  125. format slot 17 of player with air to be unstealable
  126. format slot 18 of player with air to be unstealable
  127. format slot 19 of player with air to be unstealable
  128. if {rang.%player%.Comte} is true:
  129. format slot 20 of player with iron block of infinity 1 with no nbt named "&dComtesse" with lore "&a&lAcheté" to be unstealable
  130. else:
  131. format slot 20 of player with iron block named "&dComtesse" with lore "&7Prix: &c100,000" to run "rangbuyadmin %player% Comtesse"
  132. format slot 21 of player with air to be unstealable
  133. if {rang.%player%.Marquis} is true:
  134. format slot 22 of player with lapis block of infinity 1 with no nbt named "&bMarquise" with lore "&a&lAcheté" to be unstealable
  135. else:
  136. format slot 22 of player with lapis block named "&bMarquise" with lore "&7Prix: &c150,000" to run "rangbuyadmin %player% Marquise"
  137. format slot 23 of player with air to be unstealable
  138. if {rang.%player%.Duc} is true:
  139. format slot 24 of player with gold block of infinity 1 with no nbt named "&2Duchesse" with lore "&a&lAcheté" to be unstealable
  140. else:
  141. format slot 24 of player with gold block named "&2Duchesse" with lore "&7Prix: &c200,000" to run "rangbuyadmin %player% Duchesse"
  142. format slot 25 of player with air to be unstealable
  143. format slot 26 of player with air to be unstealable
  144. format slot 27 of player with air to be unstealable
  145. format slot 28 of player with air to be unstealable
  146. format slot 29 of player with air to be unstealable
  147. format slot 30 of player with air to be unstealable
  148. format slot 31 of player with air to be unstealable
  149. format slot 32 of player with air to be unstealable
  150. format slot 33 of player with air to be unstealable
  151. format slot 34 of player with air to be unstealable
  152. format slot 35 of player with air to be unstealable
  153. format slot 36 of player with air to be unstealable
  154. if {rang.%player%.Ecuyer} is true:
  155. format slot 37 of player with oak log of infinity 1 with no nbt named "&fÉcuyère" with lore "&a&lAcheté" to be unstealable
  156. else:
  157. format slot 37 of player with oak log named "&fÉcuyère" with lore "&7Prix: &10,000" to run "rangbuyadmin %player% Ecuyere"
  158. format slot 39 of player with air to be unstealable
  159. if {rang.%player%.Chevalier} is true:
  160. format slot 40 of player with quartz block of infinity 1 with no nbt named "&eChevalière" with lore "&a&lAcheté" to be unstealable
  161. else:
  162. format slot 40 of player with quartz block named "&eChevalière" with lore "&7Prix: &c20,000" to run "rangbuyadmin %player% Chevaliere"
  163. format slot 41 of player with air to be unstealable
  164. format slot 42 of player with air to be unstealable
  165. if {rang.%player%.Baron} is true:
  166. format slot 43 of player with redstone block of infinity 1 with no nbt named "&aBaronne" with lore "&a&lAcheté" to be unstealable
  167. else:
  168. format slot 43 of player with redstone block named "&aBaronne" with lore "&7Prix: &c50,000" to run "rangbuyadmin %player% Baronne"
  169. format slot 44 of player with air to be unstealable
  170.  
  171.  
  172. on join:
  173. if {timeplayed.%player%} is not set:
  174. set {timeplayed.%player%} to 0
  175.  
  176. every second:
  177. loop all players:
  178. wait 1 tick
  179. if {timeplayed.%loop-player%} is set:
  180. add 1 to {timeplayed.%loop-player%}
  181.  
  182.  
  183. command playtime:
  184. trigger:
  185. set {_pt} to {timeplayed.%player%} / 60
  186. set {_pt} to {_pt} / 60
  187. send "&7Temps de jeu: &c%{_pt}% &7heures" to player
  188.  
  189.  
  190. command rangbuyadmin <player> <text>:
  191. permission: op
  192. trigger:
  193. if arg 2 is "Ecuyer" or "Ecuyere":
  194. if {rang.%arg 1%.Ecuyer} is true:
  195. send "&cVous avez déjà Acheté ce rang" to arg 1
  196. stop
  197. if {rang.%arg 1%.Chevalier} or {rang.%arg 1%.Baron} or {rang.%arg 1%.Comte} or {rang.%arg 1%.Marquis} or {rang.%arg 1%.Duc} or {rang.%arg 1%.Roi} or {rang.%arg 1%.Marchand} is true:
  198. send "&cVous avez déjà un rang supérieur" to arg 1
  199. stop
  200. else:
  201. if arg 1's balance is more than 9999.99:
  202. set {rang.%arg 1%.Ecuyer} to true
  203. if arg 2 is "Ecuyer":
  204. wait 1 tick
  205. make console execute "lp user %arg 1% setprimarygroup ecuyer"
  206. wait 1 tick
  207. make console execute ""
  208. wait 1 tick
  209. make console execute "eco take %arg 1% 10000"
  210. send "&fFélicitation ! Vous avez Acheté le rang &aÉcuyer&f avec succès!" to arg 1
  211. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  212. format slot 37 of arg 1 with oak log of infinity 1 with no nbt named "&fÉcuyer" with lore "&a&lAcheté" to be unstealable
  213. if arg 2 is "Ecuyere":
  214. wait 1 tick
  215. make console execute "lp user %arg 1% setprimarygroup ecuyere"
  216. wait 1 tick
  217. make console execute "pex reload"
  218. wait 1 tick
  219. make console execute "eco take %arg 1% 10000"
  220. send "&fFélicitation ! Vous avez Acheté le rang &aÉcuyère&f avec succès!" to arg 1
  221. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  222. format slot 37 of arg 1 with oak log of infinity 1 with no nbt named "&fÉcuyère" with lore "&a&lAcheté" to be unstealable
  223. else:
  224. send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
  225. stop
  226.  
  227.  
  228.  
  229. if arg 2 is "Chevalier" or "Chevaliere":
  230. if {rang.%arg 1%.Chevalier} is true:
  231. send "&cVous avez déjà Acheté ce rang" to arg 1
  232. stop
  233. if {rang.%arg 1%.Baron} or {rang.%arg 1%.Comte} or {rang.%arg 1%.Marquis} or {rang.%arg 1%.Duc} or {rang.%arg 1%.Roi} or {rang.%arg 1%.Marchand} is true:
  234. send "&cVous avez déjà un rang supérieur" to arg 1
  235. stop
  236. else:
  237. if arg 1's balance is more than 19999.99:
  238. set {rang.%arg 1%.Chevalier} to true
  239. if arg 2 is "Chevalier":
  240. wait 1 tick
  241. make console execute "lp user %arg 1% setprimarygroup chevalier"
  242. wait 1 tick
  243. make console execute ""
  244. wait 1 tick
  245. make console execute "eco take %arg 1% 20000"
  246. send "&fFélicitation ! Vous avez Acheté le rang &aChevalier&f avec succès!" to arg 1
  247. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  248. format slot 40 of arg 1 with quartz block of infinity 1 with no nbt named "&eChevalier" with lore "&a&lAcheté" to be unstealable
  249. if arg 2 is "Chevaliere":
  250. wait 1 tick
  251. make console execute "lp user %arg 1% setprimarygroup chevaliere"
  252. wait 1 tick
  253. make console execute "pex reload"
  254. wait 1 tick
  255. make console execute "eco take %arg 1% 20000"
  256. send "&fFélicitation ! Vous avez Acheté le rang &aChevalière&f avec succès!" to arg 1
  257. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  258. format slot 40 of arg 1 with quartz block of infinity 1 with no nbt named "&eChevalière" with lore "&a&lAcheté" to be unstealable
  259. else:
  260. send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
  261. stop
  262.  
  263.  
  264.  
  265.  
  266. if arg 2 is "Baron" or "Baronne":
  267. if {rang.%arg 1%.Baron} is true:
  268. send "&cVous avez déjà Acheté ce rang" to arg 1
  269. stop
  270. if {rang.%arg 1%.Comte} or {rang.%arg 1%.Marquis} or {rang.%arg 1%.Duc} or {rang.%arg 1%.Roi} or {rang.%arg 1%.Marchand} is true:
  271. send "&cVous avez déjà un rang supérieur" to arg 1
  272. stop
  273. else:
  274. if arg 1's balance is more than 49999.99:
  275. set {rang.%arg 1%.Baron} to true
  276. if arg 2 is "Baron":
  277. make console execute "lp user %arg 1% setprimarygroup baron"
  278. wait 1 tick
  279. make console execute "pex reload"
  280. wait 1 tick
  281. make console execute "eco take %arg 1% 50000"
  282. send "&fFélicitation ! Vous avez Acheté le rang &aBaron&f avec succès!" to arg 1
  283. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  284. format slot 43 of arg 1 with redstone block of infinity 1 with no nbt named "&aBaron" with lore "&a&lAcheté" to be unstealable
  285. if arg 2 is "Baronne":
  286. make console execute "lp user %arg 1% setprimarygroup baronne"
  287. wait 1 tick
  288. make console execute "pex reload"
  289. wait 1 tick
  290. make console execute "eco take %arg 1% 50000"
  291. send "&fFélicitation ! Vous avez Acheté le rang &aBaronne&f avec succès!" to arg 1
  292. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  293. format slot 43 of arg 1 with redstone block of infinity 1 with no nbt named "&aBaronne" with lore "&a&lAcheté" to be unstealable
  294. else:
  295. send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
  296. stop
  297.  
  298.  
  299.  
  300.  
  301. if arg 2 is "Comte" or "Comtesse":
  302. if {rang.%arg 1%.Comte} is true:
  303. send "&cVous avez déjà Acheté ce rang" to arg 1
  304. stop
  305. if {rang.%arg 1%.Marquis} or {rang.%arg 1%.Duc} or {rang.%arg 1%.Roi} or {rang.%arg 1%.Marchand} is true:
  306. send "&cVous avez déjà un rang supérieur" to arg 1
  307. stop
  308. else:
  309. if arg 1's balance is more than 99999.99:
  310. set {rang.%arg 1%.Comte} to true
  311. if arg 2 is "Comte":
  312. make console execute "lp user %arg 1% setprimarygroup comte"
  313. wait 1 tick
  314. make console execute "pex reload"
  315. wait 1 tick
  316. make console execute "eco take %arg 1% 100000"
  317. send "&fFélicitation ! Vous avez Acheté le rang &aComte&f avec succès!" to arg 1
  318. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  319. format slot 20 of arg 1 with iron block of infinity 1 with no nbt named "&dComte" with lore "&a&lAcheté" to be unstealable
  320. if arg 2 is "Comtesse":
  321. make console execute "lp user %arg 1% setprimarygroup comtesse"
  322. wait 1 tick
  323. make console execute "pex reload"
  324. wait 1 tick
  325. make console execute "eco take %arg 1% 100000"
  326. send "&fFélicitation ! Vous avez Acheté le rang &aComtesse&f avec succès!" to arg 1
  327. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  328. format slot 20 of arg 1 with iron block of infinity 1 with no nbt named "&dComtesse" with lore "&a&lAcheté" to be unstealable
  329. else:
  330. send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
  331. stop
  332.  
  333. if arg 2 is "Marquis" or "Marquise":
  334. if {rang.%arg 1%.Marquis} is true:
  335. send "&cVous avez déjà Acheté ce rang" to arg 1
  336. stop
  337. if {rang.%arg 1%.Duc} or {rang.%arg 1%.Roi} or {rang.%arg 1%.Marchand} is true:
  338. send "&cVous avez déjà un rang supérieur" to arg 1
  339. stop
  340. else:
  341. if arg 1's balance is more than 149999.99:
  342. set {rang.%arg 1%.Marquis} to true
  343. if arg 2 is "Marquis":
  344. make console execute "lp user %arg 1% setprimarygroup marquis"
  345. wait 1 tick
  346. make console execute "pex reload"
  347. wait 1 tick
  348. make console execute "eco take %arg 1% 150000"
  349. send "&fFélicitation ! Vous avez Acheté le rang &aMarquis&f avec succès!" to arg 1
  350. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  351. format slot 22 of arg 1 with lapis block of infinity 1 with no nbt named "&bMarquis" with lore "&a&lAcheté" to be unstealable
  352. if arg 2 is "Marquise":
  353. make console execute "lp user %arg 1% setprimarygroup marquise"
  354. wait 1 tick
  355. make console execute "pex reload"
  356. wait 1 tick
  357. make console execute "eco take %arg 1% 150000"
  358. send "&fFélicitation ! Vous avez Acheté le rang &aMarquise&f avec succès!" to arg 1
  359. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  360. format slot 22 of arg 1 with lapis block of infinity 1 with no nbt named "&bMarquise" with lore "&a&lAcheté" to be unstealable
  361. else:
  362. send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
  363. stop
  364.  
  365.  
  366. if arg 2 is "Duc" or "Duchesse":
  367. if {rang.%arg 1%.Duc} is true:
  368. send "&cVous avez déjà Acheté ce rang" to arg 1
  369. stop
  370. if {rang.%arg 1%.Roi} or {rang.%arg 1%.Marchand} is true:
  371. send "&cVous avez déjà un rang supérieur" to arg 1
  372. stop
  373. else:
  374. if arg 1's balance is more than 199999.99:
  375. set {rang.%arg 1%.Duc} to true
  376. if arg 2 is "Duc":
  377. make console execute "lp user %arg 1% setprimarygroup duc"
  378. wait 1 tick
  379. make console execute "pex reload"
  380. wait 1 tick
  381. make console execute "eco take %arg 1% 200000"
  382. send "&fFélicitation ! Vous avez Acheté le rang &aDuc&f avec succès!" to arg 1
  383. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  384. format slot 24 of arg 1 with gold block of infinity 1 with no nbt named "&2Duc" with lore "&a&lAcheté" to be unstealable
  385. if {rang.%arg 1%.Ecuyer} and {rang.%arg 1%.Chevalier} and {rang.%arg 1%.Baron} and {rang.%arg 1%.Comte} and {rang.%arg 1%.Marquis} and {rang.%arg 1%.Duc} is true:
  386. wait 1 tick
  387. format slot 3 of arg 1 with a diamond block named "&6Roi" with lore "&7Prix: &c200,000" to run "rangbuyadmin %arg 1% Roi2"
  388. format slot 5 of arg 1 with emerald block named "&6Marchand" with lore "&7Prix: &c200,000" to run "rangbuyadmin %arg 1% Marchand2"
  389. if arg 2 is "Duchesse":
  390. make console execute "lp user %arg 1% setprimarygroup duchesse"
  391. wait 1 tick
  392. make console execute "pex reload"
  393. wait 1 tick
  394. make console execute "eco take %arg 1% 200000"
  395. send "&fFélicitation ! Vous avez Acheté le rang &aDuchesse&f avec succès!" to arg 1
  396. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  397. format slot 24 of arg 1 with gold block of infinity 1 with no nbt named "&2Duchesse" with lore "&a&lAcheté" to be unstealable
  398. if {rang.%arg 1%.Ecuyer} and {rang.%arg 1%.Chevalier} and {rang.%arg 1%.Baron} and {rang.%arg 1%.Comte} and {rang.%arg 1%.Marquis} and {rang.%arg 1%.Duc} is true:
  399. wait 1 tick
  400. format slot 3 of arg 1 with a diamond block named "&6Reine" with lore "&7Prix: &c200,000" to run "rangbuyadmin %arg 1% Reine2"
  401. format slot 5 of arg 1 with emerald block named "&6Marchande" with lore "&7Prix: &c200,000" to run "rangbuyadmin %arg 1% Marchande2"
  402. else:
  403. send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
  404. stop
  405.  
  406.  
  407. if arg 2 is "Roi" or "Reine":
  408. if {rang.%arg 1%.Roi} is true:
  409. send "&cVous avez déjà Acheté ce rang" to arg 1
  410. stop
  411. if {rang.%arg 1%.Marchand} is true:
  412. send "&cVous ne pouvez pas acheter ce rang." to arg 1
  413. stop
  414. else:
  415. if arg 1's balance is more than 999999.99:
  416. set {rang.%arg 1%.Roi} to true
  417. if arg 2 is "Roi":
  418. make console execute "lp user %arg 1% setprimarygroup roi"
  419. wait 1 tick
  420. make console execute "pex reload"
  421. wait 1 tick
  422. make console execute "eco take %arg 1% 1000000"
  423. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  424. format slot 3 of arg 1 with a diamond block of infinity 1 with no nbt named "&6Roi" with lore "&a&lAcheté" to be unstealable
  425. format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&c&lInaccessible" to be unstealable
  426. loop all players:
  427. send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Roi&f avec succès !" to loop-player
  428. play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
  429. play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
  430. play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
  431. play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
  432. if arg 2 is "Reine":
  433. make console execute "lp user %arg 1% setprimarygroup reine"
  434. wait 1 tick
  435. make console execute "pex reload"
  436. wait 1 tick
  437. make console execute "eco take %arg 1% 1000000"
  438. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  439. format slot 3 of arg 1 with a diamond block of infinity 1 with no nbt named "&6Reine" with lore "&a&lAcheté" to be unstealable
  440. format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&c&lInaccessible" to be unstealable
  441. loop all players:
  442. send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Reine&f avec succès !" to loop-player
  443. play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
  444. play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
  445. play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
  446. play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
  447.  
  448. else:
  449. send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
  450. stop
  451.  
  452. if arg 2 is "Marchand" or "Marchande":
  453. if {rang.%arg 1%.Marchand} is true:
  454. send "&cVous avez déjà Acheté ce rang" to arg 1
  455. stop
  456. if {rang.%arg 1%.Roi} is true:
  457. send "&cVous ne pouvez pas acheter ce rang." to arg 1
  458. stop
  459. else:
  460. if arg 1's balance is more than 999999.99:
  461. set {rang.%arg 1%.Marchand} to true
  462. if arg 2 is "Marchand":
  463. make console execute "lp user %arg 1% setprimarygroup marchand"
  464. wait 1 tick
  465. make console execute "pex reload"
  466. wait 1 tick
  467. make console execute "eco take %arg 1% 1000000"
  468. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  469. format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&a&lAcheté" to be unstealable
  470. format slot 3 of arg 1 with diamond block of infinity 1 with no nbt named "&6Roi" with lore "&c&lInaccessible" to be unstealable
  471. loop all players:
  472. send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Marchand&f avec succès !" to loop-player
  473. play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
  474. play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
  475. play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
  476. play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
  477. if arg 2 is "Marchande":
  478. make console execute "lp user %arg 1% setprimarygroup marchande"
  479. wait 1 tick
  480. make console execute "pex reload"
  481. wait 1 tick
  482. make console execute "eco take %arg 1% 1000000"
  483. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  484. format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&a&lAcheté" to be unstealable
  485. format slot 3 of arg 1 with diamond block of infinity 1 with no nbt named "&6Reine" with lore "&c&lInaccessible" to be unstealable
  486. loop all players:
  487. send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Marchande&f avec succès !" to loop-player
  488. play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
  489. play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
  490. play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
  491. play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
  492. else:
  493. send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
  494. stop
  495.  
  496.  
  497.  
  498. if arg 2 is "Roi2" or "Reine2":
  499. if {rang.%arg 1%.Roi} is true:
  500. send "&cVous avez déjà Acheté ce rang" to arg 1
  501. stop
  502. if {rang.%arg 1%.Marchand} is true:
  503. send "&cVous ne pouvez pas acheter ce rang." to arg 1
  504. stop
  505. else:
  506. if arg 1's balance is more than 399999.99:
  507. set {rang.%arg 1%.Roi} to true
  508. if arg 2 is "Roi2":
  509. make console execute "lp user %arg 1% setprimarygroup roi"
  510. wait 1 tick
  511. make console execute "pex reload"
  512. wait 1 tick
  513. make console execute "eco take %arg 1% 400000"
  514. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  515. format slot 3 of arg 1 with a diamond block of infinity 1 with no nbt named "&6Roi" with lore "&a&lAcheté" to be unstealable
  516. format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&c&lInaccessible" to be unstealable
  517. loop all players:
  518. send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Roi&f avec succès !" to loop-player
  519. play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
  520. play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
  521. play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
  522. play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
  523. if arg 2 is "Reine2":
  524. make console execute "lp user %arg 1% setprimarygroup reine"
  525. wait 1 tick
  526. make console execute "pex reload"
  527. wait 1 tick
  528. make console execute "eco take %arg 1% 400000"
  529. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  530. format slot 3 of arg 1 with a diamond block of infinity 1 with no nbt named "&6Reine" with lore "&a&lAcheté" to be unstealable
  531. format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&c&lInaccessible" to be unstealable
  532. loop all players:
  533. send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Reine&f avec succès !" to loop-player
  534. play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
  535. play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
  536. play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
  537. play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
  538.  
  539. else:
  540. send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
  541. stop
  542.  
  543. if arg 2 is "Marchand2" or "Marchande2":
  544. if {rang.%arg 1%.Marchand} is true:
  545. send "&cVous avez déjà Acheté ce rang" to arg 1
  546. stop
  547. if {rang.%arg 1%.Roi} is true:
  548. send "&cVous ne pouvez pas acheter ce rang." to arg 1
  549. stop
  550. else:
  551. if arg 1's balance is more than 399999.99:
  552. set {rang.%arg 1%.Marchand} to true
  553. if arg 2 is "Marchand2":
  554. make console execute "lp user %arg 1% setprimarygroup marchand"
  555. wait 1 tick
  556. make console execute "pex reload"
  557. wait 1 tick
  558. make console execute "eco take %arg 1% 400000"
  559. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  560. format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&a&lAcheté" to be unstealable
  561. format slot 3 of arg 1 with diamond block of infinity 1 with no nbt named "&6Roi" with lore "&c&lInaccessible" to be unstealable
  562. loop all players:
  563. send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Marchand&f avec succès !" to loop-player
  564. play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
  565. play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
  566. play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
  567. play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
  568. if arg 2 is "Marchande2":
  569. make console execute "lp user %arg 1% setprimarygroup marchande"
  570. wait 1 tick
  571. make console execute "pex reload"
  572. wait 1 tick
  573. make console execute "eco take %arg 1% 400000"
  574. play "BLOCK_NOTE_PLING" to arg 1 at volume 10
  575. format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&a&lAcheté" to be unstealable
  576. format slot 3 of arg 1 with diamond block of infinity 1 with no nbt named "&6Reine" with lore "&c&lInaccessible" to be unstealable
  577. loop all players:
  578. send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Marchande&f avec succès !" to loop-player
  579. play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
  580. play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
  581. play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
  582. play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
  583.  
  584. else:
  585. send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
  586. stop
  587.  
  588.  
  589. command clearrank:
  590. permission: op
  591. trigger:
  592. wait 1 tick
  593. set {rang.%player%.Ecuyer} to false
  594. set {rang.%player%.Chevalier} to false
  595. set {rang.%player%.Baron} to false
  596. set {rang.%player%.Duc} to false
  597. set {rang.%player%.Marquis} to false
  598. set {rang.%player%.Comte} to false
  599. set {rang.%player%.Roi} to false
  600. set {rang.%player%.Marchand} to false
  601. send "ok"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement