Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command Rank:
- aliases: rang
- trigger:
- if {sexe.%player%} is not set:
- make console execute "setsexmenu %player%"
- stop
- if {sexe.%player%} is "garcon":
- open chest with 5 row named "&9Rangs - Menu" to player
- play "BLOCK_NOTE_PLING" to player at volume 10
- format slot 0 of player with air to be unstealable
- format slot 1 of player with air to be unstealable
- format slot 2 of player with air to be unstealable
- if {rang.%player%.Roi} is true:
- format slot 3 of player with a diamond block of infinity 1 with no nbt named "&6Roi" with lore "&a&lAcheté" to be unstealable
- format slot 5 of player with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&c&lInaccessible" to be unstealable
- else:
- 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:
- format slot 3 of player with a diamond block named "&6Roi" with lore "&7Prix: &c400,000" to run "rangbuyadmin %player% Roi2"
- else:
- format slot 3 of player with a diamond block named "&6Roi" with lore "&7Prix: &c1,000,000" to run "rangbuyadmin %player% Roi"
- format slot 4 of player with air to be unstealable
- if {rang.%player%.Marchand} is true:
- format slot 5 of player with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&a&lAcheté" to be unstealable
- format slot 3 of player with a diamond block of infinity 1 with no nbt named "&6Roi" with lore "&c&LInaccessible" to be unstealable
- else:
- 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:
- format slot 5 of player with emerald block named "&6Marchand" with lore "&7Prix: &c400,000" to run "rangbuyadmin %player% Marchand2"
- else:
- format slot 5 of player with emerald block named "&6Marchand" with lore "&7Prix: &c1,000,000" to run "rangbuyadmin %player% Marchand"
- if {rang.%player%.Roi} is true:
- format slot 5 of player with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&c&lInaccessible" to be unstealable
- format slot 6 of player with air to be unstealable
- format slot 7 of player with air to be unstealable
- format slot 8 of player with air to be unstealable
- format slot 9 of player with air to be unstealable
- format slot 10 of player with air to be unstealable
- format slot 11 of player with air to be unstealable
- format slot 12 of player with air to be unstealable
- format slot 13 of player with air to be unstealable
- format slot 14 of player with air to be unstealable
- format slot 15 of player with air to be unstealable
- format slot 16 of player with air to be unstealable
- format slot 17 of player with air to be unstealable
- format slot 18 of player with air to be unstealable
- format slot 19 of player with air to be unstealable
- if {rang.%player%.Comte} is true:
- format slot 20 of player with iron block of infinity 1 with no nbt named "&dComte" with lore "&a&lAcheté" to be unstealable
- else:
- format slot 20 of player with iron block named "&dComte" with lore "&7Prix: &c100,000" to run "rangbuyadmin %player% Comte"
- format slot 21 of player with air to be unstealable
- if {rang.%player%.Marquis} is true:
- format slot 22 of player with lapis block of infinity 1 with no nbt named "&bMarquis" with lore "&a&lAcheté" to be unstealable
- else:
- format slot 22 of player with lapis block named "&bMarquis" with lore "&7Prix: &c150,000" to run "rangbuyadmin %player% Marquis"
- format slot 23 of player with air to be unstealable
- if {rang.%player%.Duc} is true:
- format slot 24 of player with gold block of infinity 1 with no nbt named "&2Duc" with lore "&a&lAcheté" to be unstealable
- else:
- format slot 24 of player with gold block named "&2Duc" with lore "&7Prix: &c200,000" to run "rangbuyadmin %player% Duc"
- format slot 25 of player with air to be unstealable
- format slot 26 of player with air to be unstealable
- format slot 27 of player with air to be unstealable
- format slot 28 of player with air to be unstealable
- format slot 29 of player with air to be unstealable
- format slot 30 of player with air to be unstealable
- format slot 31 of player with air to be unstealable
- format slot 32 of player with air to be unstealable
- format slot 33 of player with air to be unstealable
- format slot 34 of player with air to be unstealable
- format slot 35 of player with air to be unstealable
- format slot 36 of player with air to be unstealable
- if {rang.%player%.Ecuyer} is true:
- format slot 37 of player with oak log of infinity 1 with no nbt named "&fÉcuyer" with lore "&a&lAcheté" to be unstealable
- else:
- format slot 37 of player with oak log named "&fÉcuyer" with lore "&7Prix: &c10,000" to run "rangbuyadmin %player% Ecuyer"
- format slot 39 of player with air to be unstealable
- if {rang.%player%.Chevalier} is true:
- format slot 40 of player with quartz block of infinity 1 with no nbt named "&eChevalier" with lore "&a&lAcheté" to be unstealable
- else:
- format slot 40 of player with quartz block named "&eChevalier" with lore "&7Prix: &c20,000" to run "rangbuyadmin %player% Chevalier"
- format slot 41 of player with air to be unstealable
- format slot 42 of player with air to be unstealable
- if {rang.%player%.Baron} is true:
- format slot 43 of player with redstone block of infinity 1 with no nbt named "&aBaron" with lore "&a&lAcheté" to be unstealable
- else:
- format slot 43 of player with redstone block named "&aBaron" with lore "&7Prix: &c50,000" to run "rangbuyadmin %player% Baron"
- format slot 44 of player with air to be unstealable
- else:
- if {sexe.%player%} is "fille":
- open chest with 5 row named "&9Rangs - Menu" to player
- play "BLOCK_NOTE_PLING" to player at volume 10
- format slot 0 of player with air to be unstealable
- format slot 1 of player with air to be unstealable
- format slot 2 of player with air to be unstealable
- if {rang.%player%.Roi} is true:
- format slot 3 of player with a diamond block of infinity 1 with no nbt named "&6Reine" with lore "&a&lAcheté" to be unstealable
- format slot 5 of player with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&c&lInaccessible" to be unstealable
- else:
- 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:
- format slot 3 of player with a diamond block named "&6Reine" with lore "&7Prix: &c400,000" to run "rangbuyadmin %player% Reine2"
- else:
- format slot 3 of player with a diamond block named "&6Reine" with lore "&7Prix: &c1,000,000" to run "rangbuyadmin %player% Reine"
- format slot 4 of player with air to be unstealable
- if {rang.%player%.Marchand} is true:
- format slot 5 of player with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&a&lAcheté" to be unstealable
- format slot 3 of player with a diamond block of infinity 1 with no nbt named "&6Reine" with lore "&c&LInaccessible" to be unstealable
- else:
- 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:
- format slot 5 of player with emerald block named "&6Marchande" with lore "&7Prix: &c400,000" to run "rangbuyadmin %player% Marchande2"
- else:
- format slot 5 of player with emerald block named "&6Marchande" with lore "&7Prix: &c1,000,000" to run "rangbuyadmin %player% Marchande"
- if {rang.%player%.Roi} is true:
- format slot 5 of player with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&c&lInaccessible" to be unstealable
- format slot 6 of player with air to be unstealable
- format slot 7 of player with air to be unstealable
- format slot 8 of player with air to be unstealable
- format slot 9 of player with air to be unstealable
- format slot 10 of player with air to be unstealable
- format slot 11 of player with air to be unstealable
- format slot 12 of player with air to be unstealable
- format slot 13 of player with air to be unstealable
- format slot 14 of player with air to be unstealable
- format slot 15 of player with air to be unstealable
- format slot 16 of player with air to be unstealable
- format slot 17 of player with air to be unstealable
- format slot 18 of player with air to be unstealable
- format slot 19 of player with air to be unstealable
- if {rang.%player%.Comte} is true:
- format slot 20 of player with iron block of infinity 1 with no nbt named "&dComtesse" with lore "&a&lAcheté" to be unstealable
- else:
- format slot 20 of player with iron block named "&dComtesse" with lore "&7Prix: &c100,000" to run "rangbuyadmin %player% Comtesse"
- format slot 21 of player with air to be unstealable
- if {rang.%player%.Marquis} is true:
- format slot 22 of player with lapis block of infinity 1 with no nbt named "&bMarquise" with lore "&a&lAcheté" to be unstealable
- else:
- format slot 22 of player with lapis block named "&bMarquise" with lore "&7Prix: &c150,000" to run "rangbuyadmin %player% Marquise"
- format slot 23 of player with air to be unstealable
- if {rang.%player%.Duc} is true:
- format slot 24 of player with gold block of infinity 1 with no nbt named "&2Duchesse" with lore "&a&lAcheté" to be unstealable
- else:
- format slot 24 of player with gold block named "&2Duchesse" with lore "&7Prix: &c200,000" to run "rangbuyadmin %player% Duchesse"
- format slot 25 of player with air to be unstealable
- format slot 26 of player with air to be unstealable
- format slot 27 of player with air to be unstealable
- format slot 28 of player with air to be unstealable
- format slot 29 of player with air to be unstealable
- format slot 30 of player with air to be unstealable
- format slot 31 of player with air to be unstealable
- format slot 32 of player with air to be unstealable
- format slot 33 of player with air to be unstealable
- format slot 34 of player with air to be unstealable
- format slot 35 of player with air to be unstealable
- format slot 36 of player with air to be unstealable
- if {rang.%player%.Ecuyer} is true:
- 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
- else:
- format slot 37 of player with oak log named "&fÉcuyère" with lore "&7Prix: &10,000" to run "rangbuyadmin %player% Ecuyere"
- format slot 39 of player with air to be unstealable
- if {rang.%player%.Chevalier} is true:
- format slot 40 of player with quartz block of infinity 1 with no nbt named "&eChevalière" with lore "&a&lAcheté" to be unstealable
- else:
- format slot 40 of player with quartz block named "&eChevalière" with lore "&7Prix: &c20,000" to run "rangbuyadmin %player% Chevaliere"
- format slot 41 of player with air to be unstealable
- format slot 42 of player with air to be unstealable
- if {rang.%player%.Baron} is true:
- format slot 43 of player with redstone block of infinity 1 with no nbt named "&aBaronne" with lore "&a&lAcheté" to be unstealable
- else:
- format slot 43 of player with redstone block named "&aBaronne" with lore "&7Prix: &c50,000" to run "rangbuyadmin %player% Baronne"
- format slot 44 of player with air to be unstealable
- on join:
- if {timeplayed.%player%} is not set:
- set {timeplayed.%player%} to 0
- every second:
- loop all players:
- wait 1 tick
- if {timeplayed.%loop-player%} is set:
- add 1 to {timeplayed.%loop-player%}
- command playtime:
- trigger:
- set {_pt} to {timeplayed.%player%} / 60
- set {_pt} to {_pt} / 60
- send "&7Temps de jeu: &c%{_pt}% &7heures" to player
- command rangbuyadmin <player> <text>:
- permission: op
- trigger:
- if arg 2 is "Ecuyer" or "Ecuyere":
- if {rang.%arg 1%.Ecuyer} is true:
- send "&cVous avez déjà Acheté ce rang" to arg 1
- stop
- 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:
- send "&cVous avez déjà un rang supérieur" to arg 1
- stop
- else:
- if arg 1's balance is more than 9999.99:
- set {rang.%arg 1%.Ecuyer} to true
- if arg 2 is "Ecuyer":
- wait 1 tick
- make console execute "lp user %arg 1% setprimarygroup ecuyer"
- wait 1 tick
- make console execute ""
- wait 1 tick
- make console execute "eco take %arg 1% 10000"
- send "&fFélicitation ! Vous avez Acheté le rang &aÉcuyer&f avec succès!" to arg 1
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- 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
- if arg 2 is "Ecuyere":
- wait 1 tick
- make console execute "lp user %arg 1% setprimarygroup ecuyere"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 10000"
- send "&fFélicitation ! Vous avez Acheté le rang &aÉcuyère&f avec succès!" to arg 1
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- 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
- else:
- send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
- stop
- if arg 2 is "Chevalier" or "Chevaliere":
- if {rang.%arg 1%.Chevalier} is true:
- send "&cVous avez déjà Acheté ce rang" to arg 1
- stop
- 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:
- send "&cVous avez déjà un rang supérieur" to arg 1
- stop
- else:
- if arg 1's balance is more than 19999.99:
- set {rang.%arg 1%.Chevalier} to true
- if arg 2 is "Chevalier":
- wait 1 tick
- make console execute "lp user %arg 1% setprimarygroup chevalier"
- wait 1 tick
- make console execute ""
- wait 1 tick
- make console execute "eco take %arg 1% 20000"
- send "&fFélicitation ! Vous avez Acheté le rang &aChevalier&f avec succès!" to arg 1
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- format slot 40 of arg 1 with quartz block of infinity 1 with no nbt named "&eChevalier" with lore "&a&lAcheté" to be unstealable
- if arg 2 is "Chevaliere":
- wait 1 tick
- make console execute "lp user %arg 1% setprimarygroup chevaliere"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 20000"
- send "&fFélicitation ! Vous avez Acheté le rang &aChevalière&f avec succès!" to arg 1
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- 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
- else:
- send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
- stop
- if arg 2 is "Baron" or "Baronne":
- if {rang.%arg 1%.Baron} is true:
- send "&cVous avez déjà Acheté ce rang" to arg 1
- stop
- 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:
- send "&cVous avez déjà un rang supérieur" to arg 1
- stop
- else:
- if arg 1's balance is more than 49999.99:
- set {rang.%arg 1%.Baron} to true
- if arg 2 is "Baron":
- make console execute "lp user %arg 1% setprimarygroup baron"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 50000"
- send "&fFélicitation ! Vous avez Acheté le rang &aBaron&f avec succès!" to arg 1
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- format slot 43 of arg 1 with redstone block of infinity 1 with no nbt named "&aBaron" with lore "&a&lAcheté" to be unstealable
- if arg 2 is "Baronne":
- make console execute "lp user %arg 1% setprimarygroup baronne"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 50000"
- send "&fFélicitation ! Vous avez Acheté le rang &aBaronne&f avec succès!" to arg 1
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- format slot 43 of arg 1 with redstone block of infinity 1 with no nbt named "&aBaronne" with lore "&a&lAcheté" to be unstealable
- else:
- send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
- stop
- if arg 2 is "Comte" or "Comtesse":
- if {rang.%arg 1%.Comte} is true:
- send "&cVous avez déjà Acheté ce rang" to arg 1
- stop
- if {rang.%arg 1%.Marquis} or {rang.%arg 1%.Duc} or {rang.%arg 1%.Roi} or {rang.%arg 1%.Marchand} is true:
- send "&cVous avez déjà un rang supérieur" to arg 1
- stop
- else:
- if arg 1's balance is more than 99999.99:
- set {rang.%arg 1%.Comte} to true
- if arg 2 is "Comte":
- make console execute "lp user %arg 1% setprimarygroup comte"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 100000"
- send "&fFélicitation ! Vous avez Acheté le rang &aComte&f avec succès!" to arg 1
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- format slot 20 of arg 1 with iron block of infinity 1 with no nbt named "&dComte" with lore "&a&lAcheté" to be unstealable
- if arg 2 is "Comtesse":
- make console execute "lp user %arg 1% setprimarygroup comtesse"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 100000"
- send "&fFélicitation ! Vous avez Acheté le rang &aComtesse&f avec succès!" to arg 1
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- format slot 20 of arg 1 with iron block of infinity 1 with no nbt named "&dComtesse" with lore "&a&lAcheté" to be unstealable
- else:
- send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
- stop
- if arg 2 is "Marquis" or "Marquise":
- if {rang.%arg 1%.Marquis} is true:
- send "&cVous avez déjà Acheté ce rang" to arg 1
- stop
- if {rang.%arg 1%.Duc} or {rang.%arg 1%.Roi} or {rang.%arg 1%.Marchand} is true:
- send "&cVous avez déjà un rang supérieur" to arg 1
- stop
- else:
- if arg 1's balance is more than 149999.99:
- set {rang.%arg 1%.Marquis} to true
- if arg 2 is "Marquis":
- make console execute "lp user %arg 1% setprimarygroup marquis"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 150000"
- send "&fFélicitation ! Vous avez Acheté le rang &aMarquis&f avec succès!" to arg 1
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- format slot 22 of arg 1 with lapis block of infinity 1 with no nbt named "&bMarquis" with lore "&a&lAcheté" to be unstealable
- if arg 2 is "Marquise":
- make console execute "lp user %arg 1% setprimarygroup marquise"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 150000"
- send "&fFélicitation ! Vous avez Acheté le rang &aMarquise&f avec succès!" to arg 1
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- format slot 22 of arg 1 with lapis block of infinity 1 with no nbt named "&bMarquise" with lore "&a&lAcheté" to be unstealable
- else:
- send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
- stop
- if arg 2 is "Duc" or "Duchesse":
- if {rang.%arg 1%.Duc} is true:
- send "&cVous avez déjà Acheté ce rang" to arg 1
- stop
- if {rang.%arg 1%.Roi} or {rang.%arg 1%.Marchand} is true:
- send "&cVous avez déjà un rang supérieur" to arg 1
- stop
- else:
- if arg 1's balance is more than 199999.99:
- set {rang.%arg 1%.Duc} to true
- if arg 2 is "Duc":
- make console execute "lp user %arg 1% setprimarygroup duc"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 200000"
- send "&fFélicitation ! Vous avez Acheté le rang &aDuc&f avec succès!" to arg 1
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- format slot 24 of arg 1 with gold block of infinity 1 with no nbt named "&2Duc" with lore "&a&lAcheté" to be unstealable
- 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:
- wait 1 tick
- format slot 3 of arg 1 with a diamond block named "&6Roi" with lore "&7Prix: &c200,000" to run "rangbuyadmin %arg 1% Roi2"
- format slot 5 of arg 1 with emerald block named "&6Marchand" with lore "&7Prix: &c200,000" to run "rangbuyadmin %arg 1% Marchand2"
- if arg 2 is "Duchesse":
- make console execute "lp user %arg 1% setprimarygroup duchesse"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 200000"
- send "&fFélicitation ! Vous avez Acheté le rang &aDuchesse&f avec succès!" to arg 1
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- format slot 24 of arg 1 with gold block of infinity 1 with no nbt named "&2Duchesse" with lore "&a&lAcheté" to be unstealable
- 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:
- wait 1 tick
- format slot 3 of arg 1 with a diamond block named "&6Reine" with lore "&7Prix: &c200,000" to run "rangbuyadmin %arg 1% Reine2"
- format slot 5 of arg 1 with emerald block named "&6Marchande" with lore "&7Prix: &c200,000" to run "rangbuyadmin %arg 1% Marchande2"
- else:
- send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
- stop
- if arg 2 is "Roi" or "Reine":
- if {rang.%arg 1%.Roi} is true:
- send "&cVous avez déjà Acheté ce rang" to arg 1
- stop
- if {rang.%arg 1%.Marchand} is true:
- send "&cVous ne pouvez pas acheter ce rang." to arg 1
- stop
- else:
- if arg 1's balance is more than 999999.99:
- set {rang.%arg 1%.Roi} to true
- if arg 2 is "Roi":
- make console execute "lp user %arg 1% setprimarygroup roi"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 1000000"
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- 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
- format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&c&lInaccessible" to be unstealable
- loop all players:
- send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Roi&f avec succès !" to loop-player
- play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
- play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
- play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
- play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
- if arg 2 is "Reine":
- make console execute "lp user %arg 1% setprimarygroup reine"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 1000000"
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- 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
- format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&c&lInaccessible" to be unstealable
- loop all players:
- send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Reine&f avec succès !" to loop-player
- play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
- play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
- play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
- play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
- else:
- send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
- stop
- if arg 2 is "Marchand" or "Marchande":
- if {rang.%arg 1%.Marchand} is true:
- send "&cVous avez déjà Acheté ce rang" to arg 1
- stop
- if {rang.%arg 1%.Roi} is true:
- send "&cVous ne pouvez pas acheter ce rang." to arg 1
- stop
- else:
- if arg 1's balance is more than 999999.99:
- set {rang.%arg 1%.Marchand} to true
- if arg 2 is "Marchand":
- make console execute "lp user %arg 1% setprimarygroup marchand"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 1000000"
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&a&lAcheté" to be unstealable
- format slot 3 of arg 1 with diamond block of infinity 1 with no nbt named "&6Roi" with lore "&c&lInaccessible" to be unstealable
- loop all players:
- send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Marchand&f avec succès !" to loop-player
- play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
- play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
- play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
- play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
- if arg 2 is "Marchande":
- make console execute "lp user %arg 1% setprimarygroup marchande"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 1000000"
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&a&lAcheté" to be unstealable
- format slot 3 of arg 1 with diamond block of infinity 1 with no nbt named "&6Reine" with lore "&c&lInaccessible" to be unstealable
- loop all players:
- send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Marchande&f avec succès !" to loop-player
- play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
- play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
- play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
- play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
- else:
- send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
- stop
- if arg 2 is "Roi2" or "Reine2":
- if {rang.%arg 1%.Roi} is true:
- send "&cVous avez déjà Acheté ce rang" to arg 1
- stop
- if {rang.%arg 1%.Marchand} is true:
- send "&cVous ne pouvez pas acheter ce rang." to arg 1
- stop
- else:
- if arg 1's balance is more than 399999.99:
- set {rang.%arg 1%.Roi} to true
- if arg 2 is "Roi2":
- make console execute "lp user %arg 1% setprimarygroup roi"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 400000"
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- 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
- format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&c&lInaccessible" to be unstealable
- loop all players:
- send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Roi&f avec succès !" to loop-player
- play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
- play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
- play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
- play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
- if arg 2 is "Reine2":
- make console execute "lp user %arg 1% setprimarygroup reine"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 400000"
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- 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
- format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&c&lInaccessible" to be unstealable
- loop all players:
- send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Reine&f avec succès !" to loop-player
- play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
- play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
- play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
- play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
- else:
- send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
- stop
- if arg 2 is "Marchand2" or "Marchande2":
- if {rang.%arg 1%.Marchand} is true:
- send "&cVous avez déjà Acheté ce rang" to arg 1
- stop
- if {rang.%arg 1%.Roi} is true:
- send "&cVous ne pouvez pas acheter ce rang." to arg 1
- stop
- else:
- if arg 1's balance is more than 399999.99:
- set {rang.%arg 1%.Marchand} to true
- if arg 2 is "Marchand2":
- make console execute "lp user %arg 1% setprimarygroup marchand"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 400000"
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchand" with lore "&a&lAcheté" to be unstealable
- format slot 3 of arg 1 with diamond block of infinity 1 with no nbt named "&6Roi" with lore "&c&lInaccessible" to be unstealable
- loop all players:
- send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Marchand&f avec succès !" to loop-player
- play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
- play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
- play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
- play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
- if arg 2 is "Marchande2":
- make console execute "lp user %arg 1% setprimarygroup marchande"
- wait 1 tick
- make console execute "pex reload"
- wait 1 tick
- make console execute "eco take %arg 1% 400000"
- play "BLOCK_NOTE_PLING" to arg 1 at volume 10
- format slot 5 of arg 1 with emerald block of infinity 1 with no nbt named "&6Marchande" with lore "&a&lAcheté" to be unstealable
- format slot 3 of arg 1 with diamond block of infinity 1 with no nbt named "&6Reine" with lore "&c&lInaccessible" to be unstealable
- loop all players:
- send "&6Félicitation &fau joueur &6%arg 1%&f pour avoir acheté le rang &6Marchande&f avec succès !" to loop-player
- play "ENTITY_ENDERDRAGON_GROWL" to loop-player at volume 10
- play "BLOCK_ANVIL_BREAK" to loop-player at volume 10
- play "ENTITY_FIREWORK_LARGE_BLAST" to loop-player at volume 10
- play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 10
- else:
- send "&cVous n'avez pas les fonds suffisant pour acheter ce rang." to arg 1
- stop
- command clearrank:
- permission: op
- trigger:
- wait 1 tick
- set {rang.%player%.Ecuyer} to false
- set {rang.%player%.Chevalier} to false
- set {rang.%player%.Baron} to false
- set {rang.%player%.Duc} to false
- set {rang.%player%.Marquis} to false
- set {rang.%player%.Comte} to false
- set {rang.%player%.Roi} to false
- set {rang.%player%.Marchand} to false
- send "ok"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement