Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /givemoney [<text>] [<number>] [<player>]:
- permission: givemoney.sk
- trigger:
- if arg 1 is "supercoins":
- if arg 2 is set:
- if arg 3 is set:
- add arg 2 to {supercoins.%uuid of player%}
- send "&7Tu as donné &e%arg 2% SuperCoins &7à &6%arg 3%" to player
- send "&c%player% &7t'a donné &e%arg 2% SuperCoins &7!" to arg 3
- send "&7Tu as désormais &e%{supercoins.%uuid of player%}% SuperCoins &7!" to arg 3
- if arg 1 is "megacoins":
- if arg 2 is set:
- if arg 3 is set:
- add arg 2 to {megacoins.%uuid of player%}
- send "&7Tu as donné &e%arg 2% MégaCoins &7à &6%arg 3%" to player
- send "&c%player% &7t'a donné &e%arg 2% MégaCoins &7!" to arg 3
- send "&7Tu as désormais &e%{megacoins.%uuid of player%}% MégaCoins &7!" to arg 3
- on death:
- if attacker is a player:
- add 2 to {supercoins.%uuid of attacker%}
- send "&7Tu viens de gagner &e2 SuperCoins &7!" to player
- command /boutique:
- trigger:
- open chest with 3 rows named "&8Boutique" to player
- wait 3 ticks
- format slot 26 of player with player's skull named "&6%player%" with lore "&7SuperCoins: &e%{supercoins.%uuid of player%}%||&7MégaCoins: &d%{megacoins.%uuid of player%}%" to be unstealable
- format slot 3 of player with diamond named "&6Grade" with lore "&7Achete un nouveau grade" to run [make player execute command "/achat grades"]
- format slot 4 of player with emerald named "&6Boutique de jeu" with lore "&7Achete toi de nouveaux kits" to run [make player execute command "/achat kits"]
- format slot 5 of player with paper named "&6Soon..." to be unstealable
- command /achat [<text>] [<text>] [<time span>]:
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- if arg 3 is not set:
- send "&6Boutique >> &cFais /boutique !"
- if arg 1 is "grades":
- if arg 2 is not set:
- if arg 3 is not set:
- open chest with 6 rows named "&6Grades" to player
- wait 3 ticks
- format slot 20 of player with coal named "&fMiniVIP" with lore "&fCe grade coûte 150 MégaCoins||||&fDure 3 semaines.||||&7Avec ce grade, tu débloques||&7..." to close then run [make player execute command "/achat grades minivip 3 weeks"]
- format slot 53 of player with red wool named "&4Retour" to run [make player execute command "/boutique"]
- format slot 44 of player with player's skull named "&6%player%" with lore "&7SuperCoins: &e%{supercoins.%uuid of player%}%||&7MégaCoins: &d%{megacoins.%uuid of player%}%" to be unstealable
- if arg 2 is "minivip":
- if arg 3 is not set:
- send "&6Boutique >> &cFais /boutique."
- if arg 3 is set:
- if {megacoins.%uuid of player%} is greater than 149:
- execute console command "/manuadd %player% minivip"
- send "&6Boutique >> &aBravo ! Tu as bien acheté le grade MiniVIP pendant 3 semaines !"
- send "&6Boutique >> &aEzolia te remercie de ton achat !"
- wait arg 3
- execute console command "/manuadd %player% default"
- else:
- send "&6Boutique >> &cTu n'as pas assez de MégaCoins !"
- if arg 1 is "kits":
- if arg 2 is not set:
- if arg 3 is not set:
- open chest with 3 rows named "&6Kits" to player
- wait 3 ticks
- format slot 10 of player with leather tunic named "&fKit MiniVIP" with lore "&fCe kit coûte 30 MégaCoins.||&7Ce kit contient:||&7..." to run [make player execute command "/achat kits minivip"]
- format slot 12 of player with iron chestplate named "&bKit VIP" with lore "&fCe kit coûte 80 MégaCoins.||&7Ce kit contient||&7..." to run [make player execute command "/achat kits vip"]
- format slot 14 of player with diamond chestplate named "&aKit VIP+" with lore "&fCe kit coûte 120 MégaCoins.||&7Ce kit contient||&7..." to run [make player execute command "/achat kits vip+"]
- format slot 26 of player with red wool named "&4Retour" to run [make player execute command "/boutique"]
- format slot 17 of player with player's skull named "&6%player%" with lore "&7SuperCoins: &e%{supercoins.%uuid of player%}%||&7MégaCoins: &d%{megacoins.%uuid of player%}%" to be unstealable
- if arg 2 is "minivip":
- if arg 3 is not set:
- if {megacoins.%uuid of player%} is greater than 29:
- execute console command "/manuaddp %player% essentials.kits.minivip"
- remove 30 from {megacoins.%uuid of player%}
- send "&6Boutique >> &aTu as bien acheté le kit MiniVIP."
- send "&6Boutique >> &aEzolia te remercie de ton achat."
- else:
- send "&6Boutique >> &cTu n'as pas assez de MégaCoins !"
- if arg 3 is set:
- send "&6Boutique >> &cFais /boutique."
- if arg 2 is "vip":
- if arg 3 is not set:
- if {megacoins.%uuid of player%} is greater than 79:
- execute console command "/manuaddp %player% essentials.kits.vip"
- send "&6Boutique >> &aTu as bien acheté le kit VIP."
- send "&6Boutique >> &aEzolia te remercie de ton achat."
- else:
- send "&6Boutique >> &cTu n'as pas assez de MégaCoins !"
- if arg 3 is set:
- send "&6Boutique >> &cFais /boutique."
- if arg 2 is "vip+":
- if arg 3 is not set:
- if {megacoins.%uuid of player%} is greater than 119:
- execute console command "/manuaddp %player% essentials.kits.vip+"
- send "&6Boutique >> &aTu as bien acheté le kit VIP+."
- send "&6Boutique >> &aEzolia te remercie de ton achat."
- else:
- send "&6Boutique >> &cTu n'as pas assez de MégaCoins !"
- if arg 3 is set:
- send "&6Boutique >> &cFais /boutique."
- every 600 seconds:
- if player have permission "receive.coins":
- add 1 to {supercoins.%uuid of player%}
- send "&7Tu as reçu ta paye :) Bon jeu sur ezolia"
- on join:
- if {supercoins.%uuid of player%} is less than 0:
- set {supercoins.%uuid of player%} to 0
- if {megacoins.%uuid of player%} is less than 0:
- set {supercoins.%uuid of player%} to 0
Add Comment
Please, Sign In to add comment