Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /buykeys:
- # NO PERMS NEEDED!!
- trigger:
- open chest with 1 rows named "&6&lPurchase Keys" to player
- wait 4 ticks
- format slot 1 of player with tripwire hook named "&7&lBASIC CRATE &b&lKEY" with lore "&cCosts: $5,000" to close then run [make console execute command "basiccrate %player%"]
- format slot 3 of player with tripwire hook named "&a&lRARE CRATE &b&lKEY" with lore "&cCosts: 20,000" to close then run [make console execute command "rarecrate %player%"]
- format slot 5 of player with tripwire hook named "&e&lMONEY CRATE &b&lKEY" with lore "&cCosts: 5,000" to close then run [make console execute command "moneycrate %player%"]
- command /basiccrate [<player>]:
- permission: console.givekeys.command.console
- permission message: &cNo permission!
- trigger:
- if arg-1's balance is less than 5000:
- send "&cNot enough money!" to arg-1
- stop
- if arg-1's balance is greater than 999:
- remove 1000 from player's balance
- execute console command "cc give virtual Basic 1 %arg-1%"
- send "&aSuccessfully bought 1 &7&lCOMMON CRATE &b&lKEY&a!" to arg-1
- command /rarecrate [<player>]:
- permission: console.givekeys.command.console
- permission message: &cNo permission!
- trigger:
- if arg-1's balance is less than 20000:
- send "&cNot enough money!" to arg-1
- stop
- if arg-1's balance is greater than 19999:
- remove 20000 from player's balance
- execute console command "cc give virtual Rare 1 %arg-1%"
- send "&aSuccessfully bought 1 &a&lRARE CRATE &b&lKEY&a!" to arg-1
- command /moneycrate [<player>]:
- permission: console.givekeys.command.console
- permission message: &cNo permission!
- trigger:
- if arg-1's balance is less than 5000:
- send "&cNot enough money" to arg-1
- stop
- if arg-1's balance is greater than 4999:
- remove 5000 from player's balance
- execute console command "cc give virtual Money 1 %arg-1%"
- send "&aSuccessfully bought 1 &e&lMONEY CRATE &b&lKEY&a!" to arg-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement