UDON_JP

Untitled

Apr 28th, 2020
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. command /hensai <integer>:
  2. usage: /hensai <返済金額>
  3. trigger:
  4. if arg is less than 1:
  5. send "&c返済金額は1以上にしてください"
  6. else:
  7. if player's money is less than arg:
  8. send "&c所持金が足りません"
  9. else:
  10. if arg > {syakkin::%player%}:
  11. send "&c返済金額は借金以下にしてください"
  12. else:
  13. remove arg from player's money
  14. remove arg from {syakkin::%player%}
  15. send "&b借金を%arg%円返済しました"
  16. execute console command "/execute %player% ~ ~ ~ /playsound minecraft:entity.experience_orb.pickup master %player% ~ ~ ~ 1 1"
  17. if {syakkin::%player%} = 0:
  18. loop all players:
  19. send title "&a%player%が借金を完済しました!" to loop-player
  20. execute console command "/execute @a ~ ~ ~ /playsound minecraft:ui.toast.challenge_complete master @a ~ ~ ~ 1 1"
  21. else:
  22. send "&c残りの借金:%{syakkin::%player%}%"
  23.  
  24. command /syakkin:
  25. trigger:
  26. send "&c残りの借金:%{syakkin::%player%}%"
  27.  
  28. command /syakkinjoin:
  29. trigger:
  30. loop all players:
  31. if {syakkin::%loop-player%} is not set:
  32. set {syakkin::%loop-player%} to 10000000
  33.  
  34. command /syakkinset [<offline player>] <integer>:
  35. permission: admin
  36. trigger:
  37. set {syakkin::%arg-1%} to arg-2
  38. send "&a%arg-1%の借金を%arg-2%にセットしました"
Add Comment
Please, Sign In to add comment