View difference between Paste ID: kEafanVP and jNCNEa6c
SHOW: | | - or go back to the newest paste.
1
#===============================================
2-
#/conttimeコマンド
2+
3
#===============================================
4-
command /conttime <offline player> <text> [<number=0>] [<text="s">]:
4+
5-
	aliases: ad-ws
5+
6
		teleport player to {spawnpoint}
7
		message "&9&l[system] &6&lテレポートしました"
8-
		if arg 4 is "s":
8+
9-
			set {unit} to "second"
9+
10-
		else if arg 4 is "m":
10+
11-
			set {unit} to "minute"
11+
12-
		else if arg 4 is "h":
12+
13-
			set {unit} to "hour"
13+
14-
		else if arg 4 is "d":
14+
15-
			set {unit} to "day"
15+
16-
		else:
16+
17-
			stop
17+
18-
		if arg 2 is "set":
18+
19-
			set {playtime.%{unit}%.%arg 1%} to arg 3
19+
20-
			message "&9&l[admin] &7%arg 1%さんのプレイ時間を%{playtime.day.%arg 1%}%d %{playtime.hour.%arg 1%}%h %{playtime.minute.%arg 1%}%m %{playtime.second.%arg 1%}%sに設定しました"
20+
21-
			message "&e&l[system] &a%player%さんによりあなたのプレイ時間が%{playtime.day.%arg 1%}%d %{playtime.hour.%arg 1%}%h %{playtime.minute.%arg 1%}%m %{playtime.second.%arg 1%}%sに設定されました" to arg 1
21+
22-
		if arg 2 is "add":
22+
23-
			add arg 3 to {playtime.%{unit}%.%arg 1%}
23+
24-
			message "&9&l[admin] &7%arg 1%さんのプレイ時間を%{playtime.day.%arg 1%}%d %{playtime.hour.%arg 1%}%h %{playtime.minute.%arg 1%}%m %{playtime.second.%arg 1%}%sに設定しました"
24+
		message "&6&lスポーンを設定しました"