Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /pay [<player>] [<number>]:
- trigger:
- if arg 1 is not set:
- message "&c[Error] >>> Playerを設定してください"
- stop
- if arg 1 is set:
- if arg 2 is not set:
- message "&c[Error] >>>金額を設定してください"
- stop
- if arg 2 is set:
- if arg 2 is less than 0:
- message "&c[Error] >>>金額は0より上の金額にしてください"
- stop
- if arg 2 is more than 0:
- if {money.%player%} is less than arg 2:
- message "&c[Error] >>>お金が足りません"
- stop
- if {money.%player%} is more than arg 2:
- add arg 2 to {money.%arg-1%}
- set {pay.%player%} to arg 2
- reduce {money.%player%} by {pay.%player%}
- delete {pay.%player%}
- message "&a[Money] >>>%arg-1%に%arg-2%G与えました"
- message "&a[Money] >>>%player%に%arg-2%Gもらいました" to arg 1
- stop
Advertisement
Add Comment
Please, Sign In to add comment