Advertisement
taktie0304

Untitled

Jun 1st, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. command /buy [<text>] [<offline player>]:
  2. permission: skript.buy
  3. trigger:
  4. if arg 1 is "potato":
  5. if {coin.%uuid of arg 2%} is more than 49:
  6. remove 50 from {coin.%uuid of arg 2%}
  7. command "give %arg 2% potato 16"
  8. send "&aじゃがいもを購入しました" to arg 2
  9. else:
  10. send "&cお金が足りません" to arg 2
  11. if arg 1 is "bread":
  12. if {coin.%uuid of arg 2%} is more than 299:
  13. remove 300 from {coin.%uuid of arg 2%}
  14. command "give %arg 2% bread 16"
  15. send "&aパンを購入しました" to arg 2
  16. else:
  17. send "&cお金が足りません" to arg 2
  18. if arg 1 is "steak":
  19. if {coin.%uuid of arg 2%} is more than 1499:
  20. remove 1500 from {coin.%uuid of arg 2%}
  21. command "give %arg 2% cooked_beef 16"
  22. send "&aステーキを購入しました" to arg 2
  23. else:
  24. send "&cお金が足りません" to arg 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement