Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /hensai <integer>:
- usage: /hensai <返済金額>
- trigger:
- if arg is less than 1:
- send "&c返済金額は1以上にしてください"
- else:
- if player's money is less than arg:
- send "&c所持金が足りません"
- else:
- if arg > {syakkin::%player%}:
- send "&c返済金額は借金以下にしてください"
- else:
- remove arg from player's money
- remove arg from {syakkin::%player%}
- send "&b借金を%arg%円返済しました"
- execute console command "/execute %player% ~ ~ ~ /playsound minecraft:entity.experience_orb.pickup master %player% ~ ~ ~ 1 1"
- if {syakkin::%player%} = 0:
- loop all players:
- send title "&a%player%が借金を完済しました!" to loop-player
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:ui.toast.challenge_complete master @a ~ ~ ~ 1 1"
- else:
- send "&c残りの借金:%{syakkin::%player%}%"
- command /syakkin:
- trigger:
- send "&c残りの借金:%{syakkin::%player%}%"
- command /syakkinjoin:
- trigger:
- loop all players:
- if {syakkin::%loop-player%} is not set:
- set {syakkin::%loop-player%} to 10000000
- command /syakkinset [<offline player>] <integer>:
- permission: admin
- trigger:
- set {syakkin::%arg-1%} to arg-2
- send "&a%arg-1%の借金を%arg-2%にセットしました"
Add Comment
Please, Sign In to add comment