Advertisement
TE1TO9_

Untitled

Apr 28th, 2019
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.72 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.             message "&l%player%の記録は&l&n&d%{_a}%&rです" to player
  10.       replace all " seconds" or " second" with "秒" in {_a}
  11.       replace all " minutes" or " minutes " or "minutes " or " minute" with "分" in {_a}
  12.       replace all " hours" or " hours" or "hours " or "hour" with "時間" in {_a}
  13.       replace all " days" or " day" with "日" in {_a}
  14.       replace all " and" or " and" or " and " with "" in {_a}
  15.       replace all " " with "" in {_a}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement