sora200507

Untitled

Apr 10th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. command /pay [<player>] [<number>]:
  2. trigger:
  3. if arg 1 is not set:
  4. message "&c[Error] >>> Playerを設定してください"
  5. stop
  6. if arg 1 is set:
  7. if arg 2 is not set:
  8. message "&c[Error] >>>金額を設定してください"
  9. stop
  10. if arg 2 is set:
  11. if arg 2 is less than 0:
  12. message "&c[Error] >>>金額は0より上の金額にしてください"
  13. stop
  14. if arg 2 is more than 0:
  15. if {money.%player%} is less than arg 2:
  16. message "&c[Error] >>>お金が足りません"
  17. stop
  18. if {money.%player%} is more than arg 2:
  19. add arg 2 to {money.%arg-1%}
  20. set {pay.%player%} to arg 2
  21. reduce {money.%player%} by {pay.%player%}
  22. delete {pay.%player%}
  23. message "&a[Money] >>>%arg-1%に%arg-2%G与えました"
  24. message "&a[Money] >>>%player%に%arg-2%Gもらいました" to arg 1
  25. stop
Advertisement
Add Comment
Please, Sign In to add comment