Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set {level::%uuid of player%} to 0
- set {xp::%uuid of player%} to 0
- set {xpmax::%uuid of player%} to 50
- execute console command "/nte player %player% prefix &e%{level::%uuid of player%}% &7"
- command /tabfix [<player>]:
- aliases: core:tabfix
- trigger:
- if player does not have permission "&ccore.admin":
- message "&cYou must have permission rank admin or higher to use this command!"
- else:
- if arg 1 is not set:
- message "&cUsage: /tabfix <player>"
- else:
- execute console command "/nte player %player% prefix &e%{level::%uuid of player%}% &7"
- set {level::%uuid of player%} to 0
- set {xp::%uuid of player%} to 0
- set {xpmax::%uuid of player%} to 50
- command /shop [<text>]:
- aliases: core:shop, market, core:market
- trigger:
- if arg 1 is not set:
- if player does not have permission "donor.shop":
- execute player command "/needrank"
- else:
- open chest with 5 rows named "Market" to player
- wait 0.6 ticks
- format slot 0 of player with nether star named "&6&lYour Balance" with lore "&fMoney &e%player's balance%" to be unstealable
- format slot 10 of player with 64 oak wood planks named "&6&lOak Wood Planks" with lore "&r ||&fAmount &e64||&fCost &a$500||&r ||&eClick to buy this item" to run [player command "/shop oakwood"]
- format slot 11 of player with 32 20:0 named "&6&lGlass" with lore "&r ||&fAmount &e32||&fCost &a$300||&r ||&eClick to buy this item" to run [player command "/shop glass"]
- if arg 1 is "oakwood":
- if player's balance >= 500:
- remove 500 from player's balance
- give 64 oak wood planks to player
- message "&6&lMarket > &fYou purchased &e64 Oak Wood Planks &ffor &a$500"
- else:
- message "&6&lMarket > &cInsufficient funds."
- if arg 1 is "glass":
- if player's balance >= 300:
- remove 300 from player's balance
- give 32 20:0 to player
- message "&6&lMarket > &fYou purchased &e32 Glass &ffor &a$300"
- else:
- message "&6&lMarket > &cInsufficient funds."
- command /needrank:
- aliases: core:needrank
- trigger:
- message "&cYou must have permission rank vip or higher to use this command!"
- message "&cPurchase a rank by typing &b/buy &cin chat."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement