Advertisement
twogz

Untitled

Jul 19th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. on first join:
  2. set {level::%uuid of player%} to 0
  3. set {xp::%uuid of player%} to 0
  4. set {xpmax::%uuid of player%} to 50
  5. execute console command "/nte player %player% prefix &e%{level::%uuid of player%}% &7"
  6.  
  7. command /tabfix [<player>]:
  8. aliases: core:tabfix
  9. trigger:
  10. if player does not have permission "&ccore.admin":
  11. message "&cYou must have permission rank admin or higher to use this command!"
  12. else:
  13. if arg 1 is not set:
  14. message "&cUsage: /tabfix <player>"
  15. else:
  16. execute console command "/nte player %player% prefix &e%{level::%uuid of player%}% &7"
  17. set {level::%uuid of player%} to 0
  18. set {xp::%uuid of player%} to 0
  19. set {xpmax::%uuid of player%} to 50
  20.  
  21. command /shop [<text>]:
  22. aliases: core:shop, market, core:market
  23. trigger:
  24. if arg 1 is not set:
  25. if player does not have permission "donor.shop":
  26. execute player command "/needrank"
  27. else:
  28. open chest with 5 rows named "Market" to player
  29. wait 0.6 ticks
  30. format slot 0 of player with nether star named "&6&lYour Balance" with lore "&fMoney &e%player's balance%" to be unstealable
  31.  
  32. 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"]
  33.  
  34. 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"]
  35.  
  36. if arg 1 is "oakwood":
  37. if player's balance >= 500:
  38. remove 500 from player's balance
  39. give 64 oak wood planks to player
  40. message "&6&lMarket > &fYou purchased &e64 Oak Wood Planks &ffor &a$500"
  41.  
  42. else:
  43. message "&6&lMarket > &cInsufficient funds."
  44.  
  45. if arg 1 is "glass":
  46. if player's balance >= 300:
  47. remove 300 from player's balance
  48. give 32 20:0 to player
  49. message "&6&lMarket > &fYou purchased &e32 Glass &ffor &a$300"
  50.  
  51. else:
  52. message "&6&lMarket > &cInsufficient funds."
  53.  
  54. command /needrank:
  55. aliases: core:needrank
  56. trigger:
  57. message "&cYou must have permission rank vip or higher to use this command!"
  58. message "&cPurchase a rank by typing &b/buy &cin chat."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement