Advertisement
TE1TO9_

Untitled

Apr 22nd, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.73 KB | None | 0 0
  1. command /ta [<text>]:
  2.    trigger:
  3.       if arg-1 is "start":
  4.          set {time} to now
  5.       if arg-1 is "finish":
  6.          set {_a} to difference between {time} and now
  7.          set {_a} to "%{_n}% seconds" parsed as timespan
  8.          set {_a} to "%{_a}%"
  9.          replace all " seconds" or " second" with "秒" in {_a}
  10.          replace all " minutes" or " minutes " or "minutes " or " minute" with "分" in {_a}
  11.          replace all " hours" or " hours" or "hours " or "hour" with "時間" in {_a}
  12.          replace all " days" or " day" with "日" in {_a}
  13.          replace all " and" or " and" or " and " with "" in {_a}
  14.          replace all " " with "" in {_a}
  15.          send "&l%player%の記録は&l&n&d%{_a}%&rです" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement