Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &6&lCloutFarms&7 |
- function shop(player: player, group: string, cost: number):
- if {_player}'s balance < {_cost}:
- send "{@prefix} You haven't got enough money!" to {_player}
- else:
- remove {_cost} from {_player}'s balance
- console command "pex user {_player} group set {_group}"
- command /rankup:
- aliases: lu
- trigger:
- open virtual chest with size 3 to player
- set {_a} to 0
- loop 45 times:
- format gui slot {_a} of player with gray stained glass pane named " " to do nothing
- add 1 to {_a}
- format gui slot 0,4,8,22 and 26 of player with yellow stained glass pane named " " to do nothing
- format gui slot 18 of player with yellow stained glass pane named "&cBack" to close:
- player command "/shop"
- format gui slot 10 of player with paper named "&aSprout&f 10,000" with lore "&72 Plots" to close:
- if player's balance < 10000:
- send "{@prefix} You haven't got enough money!" to player
- else:
- remove 10000 from player's balance
- console command "pex user %player% group set sprout"
- format gui slot 11 of player with paper named "&2Seedling &f50,000" with lore "&73 Plots" to close:
- if player's balance < 50000:
- send "{@prefix} You haven't got enough money!" to player
- else:
- remove 50000 from player's balance
- console command "pex user %player% group set seedling"
- format gui slot 12 of player with paper named "&3Sapling&f 100,000" with lore "&74 Plots" to close:
- if player's balance < 100000:
- send "{@prefix} You haven't got enough money!" to player
- else:
- remove 100000 from player's balance
- console command "pex user %player% group set sapling"
- format gui slot 13 of player with paper named "&9Tree&f 1,000,000" with lore "&7/Fly" to close:
- if player's balance < 1000000:
- send "{@prefix} You haven't got enough money!" to player
- else:
- remove 1000000 from player's balance
- console command "pex user %player% group set tree"
- format gui slot 14 of player with paper named "&6King&f 10,500,000" with lore "&7/God" to close:
- if player's balance < 10500000:
- send "{@prefix} You haven't got enough money!" to player
- else:
- remove 10500000 from player's balance
- console command "pex user %player% group set king"
- format gui slot 15 of player with paper named "&5Ender&f 50,000,000" with lore "&7/Tp" to close:
- if player's balance < 50000000:
- send "{@prefix} You haven't got enough money!" to player
- else:
- remove 50000000 from player's balance
- console command "pex user %player% group set ender"
- format gui slot 16 of player with paper named "&DDragon&f 1,000,000,000" with lore "&7/Fix" to close:
- if player's balance < 1000000000:
- send "{@prefix} You haven't got enough money!" to player
- else:
- remove 1000000000 from player's balance
- console command "pex user %player% group set dragon"
- command /ranks:
- trigger:
- send "&7-------| {@prefix}-------"
- send "&aSprout &f$10,000"
- send "&2Seedling &f$50,000"
- send "&3Sapling &f$100,000"
- send "&9Tree &f$1,000,000"
- send "&6King &f$10,500,000"
- send "&5Ender &f$50,000,000"
- send "&dDragon &f$1,000,000,000"
- send "&7-------| {@prefix}-------"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement