Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. options:
  2. prefix: &6&lCloutFarms&7 |
  3.  
  4.  
  5. function shop(player: player, group: string, cost: number):
  6. if {_player}'s balance < {_cost}:
  7. send "{@prefix} You haven't got enough money!" to {_player}
  8. else:
  9. remove {_cost} from {_player}'s balance
  10. console command "pex user {_player} group set {_group}"
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17. command /rankup:
  18. aliases: lu
  19. trigger:
  20. open virtual chest with size 3 to player
  21. set {_a} to 0
  22. loop 45 times:
  23. format gui slot {_a} of player with gray stained glass pane named " " to do nothing
  24. add 1 to {_a}
  25. format gui slot 0,4,8,22 and 26 of player with yellow stained glass pane named " " to do nothing
  26. format gui slot 18 of player with yellow stained glass pane named "&cBack" to close:
  27. player command "/shop"
  28. format gui slot 10 of player with paper named "&aSprout&f 10,000" with lore "&72 Plots" to close:
  29. if player's balance < 10000:
  30. send "{@prefix} You haven't got enough money!" to player
  31. else:
  32. remove 10000 from player's balance
  33. console command "pex user %player% group set sprout"
  34.  
  35. format gui slot 11 of player with paper named "&2Seedling &f50,000" with lore "&73 Plots" to close:
  36. if player's balance < 50000:
  37. send "{@prefix} You haven't got enough money!" to player
  38. else:
  39. remove 50000 from player's balance
  40. console command "pex user %player% group set seedling"
  41.  
  42. format gui slot 12 of player with paper named "&3Sapling&f 100,000" with lore "&74 Plots" to close:
  43. if player's balance < 100000:
  44. send "{@prefix} You haven't got enough money!" to player
  45. else:
  46. remove 100000 from player's balance
  47. console command "pex user %player% group set sapling"
  48.  
  49. format gui slot 13 of player with paper named "&9Tree&f 1,000,000" with lore "&7/Fly" to close:
  50. if player's balance < 1000000:
  51. send "{@prefix} You haven't got enough money!" to player
  52. else:
  53. remove 1000000 from player's balance
  54. console command "pex user %player% group set tree"
  55.  
  56. format gui slot 14 of player with paper named "&6King&f 10,500,000" with lore "&7/God" to close:
  57. if player's balance < 10500000:
  58. send "{@prefix} You haven't got enough money!" to player
  59. else:
  60. remove 10500000 from player's balance
  61. console command "pex user %player% group set king"
  62.  
  63. format gui slot 15 of player with paper named "&5Ender&f 50,000,000" with lore "&7/Tp" to close:
  64. if player's balance < 50000000:
  65. send "{@prefix} You haven't got enough money!" to player
  66. else:
  67. remove 50000000 from player's balance
  68. console command "pex user %player% group set ender"
  69.  
  70. format gui slot 16 of player with paper named "&DDragon&f 1,000,000,000" with lore "&7/Fix" to close:
  71. if player's balance < 1000000000:
  72. send "{@prefix} You haven't got enough money!" to player
  73. else:
  74. remove 1000000000 from player's balance
  75. console command "pex user %player% group set dragon"
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84. command /ranks:
  85. trigger:
  86. send "&7-------| {@prefix}-------"
  87. send "&aSprout &f$10,000"
  88. send "&2Seedling &f$50,000"
  89. send "&3Sapling &f$100,000"
  90. send "&9Tree &f$1,000,000"
  91. send "&6King &f$10,500,000"
  92. send "&5Ender &f$50,000,000"
  93. send "&dDragon &f$1,000,000,000"
  94. send "&7-------| {@prefix}-------"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement