Oxalist

Untitled

Jan 5th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. command /minebpurchase:
  2. trigger:
  3. if player's balance is more than or equal to 10000:
  4. remove 10000 from player's balance
  5. send "&6» &eSuccess! you have purchased the mine"
  6. make console execute command "/manuaddp %player% essentials.warps.B"
  7. stop
  8. else:
  9. send "&6» &eError! &eyou do not have enough money, you need &6$10000"
  10.  
  11. command /minecpurchasesfsfsfsf:
  12. trigger:
  13. if player's balance is more than or equal to 20000:
  14. remove 20000 from player's balance
  15. send "&6» &eSuccess! you have purchased the mine"
  16. make console execute command "/manuaddp %player% essentials.warps.C"
  17. stop
  18. else:
  19. send "&6» &eError! &eyou do not have enough money, you need &6$2000"
  20.  
  21. command /mines:
  22. trigger:
  23. open chest with 3 rows named "&6&lMines" to player
  24. wait 5 ticks
  25. format slot 4 of player with player's skull named "&f&l%player%" with lore "&eMoney: &f%player's money%" to be unstealable
  26. if player has permission "essentials.warps.b":
  27. format slot 10 of player with 160:5 named "&6Mine B &e» &a&lUNLOCKED" with lore " || &eClick to warp" to close then run [make player execute "/warp b"]
  28. if player doesn't have permission "essentials.warps.b":
  29. format slot 10 of player with 160:14 named "&6Mine B &e» &c&lLOCKED" with lore " || &eCost: &f10000" to close then run [make player execute "/minebpurchase"]
  30. if player has permission "essentials.warps.c":
  31. format slot 11 of player with 160:5 named "&6Mine C &e» &a&lUNLOCKED &c&l(BROKEN)" with lore " || &eClick to warp" to close then run [make player execute "/warp c"]
  32. if player doesn't have permission "essentials.warps.c":
  33. format slot 11 of player with 160:14 named "&6Mine C &e» &c&lLOCKED &c&l(BROKEN)" with lore " || &eCost: &f20000" to close then run [make player execute "/minecpurchase"]
Advertisement
Add Comment
Please, Sign In to add comment