View difference between Paste ID: 28N5B4qg and aTnL7rED
SHOW: | | - or go back to the newest paste.
1
on join:
2
    if scoreboard team "collision" in scoreboard scoreboard of player is not set:
3
        register new scoreboard team "collision" in scoreboard scoreboard of player
4
    set {_team} to scoreboard team "collision" in scoreboard scoreboard of player
5
    set scoreboard team option COLLISION_RULE of team {_team} to NEVER
6
    loop all players:
7
        loop-player is not player
8
        scoreboard add entry "%loop-player%" to team {_team}
9
        scoreboard team "collision" in scoreboard scoreboard of loop-player is set
10
        scoreboard add entry "%player%" to team scoreboard team "collision" in scoreboard scoreboard of loop-player
11
12
command /ping [<player>]:
13
	trigger:
14
		if arg 1 is not set:
15
			set {_ping} to player's ping
16
			message "&6Your Ping &a%{_ping}%ms" to player
17
			stop
18
		if arg 1 is set:
19
			set {_ping} to arg-player's ping
20
			message "&6Your Ping &a%{_ping}%ms" to player
21
			stop
22
23
command /spy:
24
	permission: skript.admin
25
	trigger:
26
		hide player to all players
27
		message "&6Spy mode &aON"
28
		stop
29
 
30
command /unspy:
31
	permission: skript.admin
32
	trigger:
33
		reveal player to all players
34
		message "&6Spy mode &cOFF"
35
		stop
36
37
on right click on sign:
38
	line 1 of clicked block is "&0&lΩ∺∺∺∺∺∺∺∺∺∺∺∺∺∺∺Ω"
39
	line 2 of clicked block is "&0&l∬  &a&lNormal-Type  &0&l∬"
40
	line 3 of clicked block is "&0&lⅡ  &6&lCheckPoint  &0&lⅡ"
41
	line 4 of clicked block is "&0&lΩ∺∺∺∺∺∺∺∺∺∺∺∺∺∺∺Ω"
42
	if player is on ground:
43
		set {_cooldown} to difference between {cp.%player%.lastused} and now
44
		if {_cooldown} is less than 1 seconds:
45
			send "&c1秒間待ってください。"
46
			stop
47
		set {checkpoint.%region at player%.%player%} to location of player
48
		set {cp.%player%.lastused} to now
49
		send "&a&nCheckPoint&7を設定しました。 &6(%region at player%)"
50
		execute console command "playsound entity.player.levelup master %player% ~ ~ ~ 1 2 1"
51
52
	else:
53
		send "&c空中では設定できません。"
54
on sign change:
55
	line 1 is "cp"
56
	set line 4 to "&0&lΩ∺∺∺∺∺∺∺∺∺∺∺∺∺∺∺Ω"
57
	set line 3 to "&0&l∬  &a&lNormal  &0&l∬"
58
	set line 2 to "&0&lⅡ  &6&lCheckPoint  &0&lⅡ"
59
	set line 1 to "&0&lΩ∺∺∺∺∺∺∺∺∺∺∺∺∺∺∺Ω"
60
on rightclick with diamond:
61
	teleport player to {checkpoint.%region at player%.%player%}
62
63
command /mute [<player>] [<text>]:
64
	permission: mkp.owner
65
	trigger:
66
		if arg-1 is set:
67
			if arg-2 is set:
68
				set {mute::%uuid of arg-1%} to true
69-
				broadcast "&4・-|>&a%arg-1%&7がMuteされました。&4<|-・"
69+
				broadcast "&a%arg-1%&7がMuteされました。"
70-
				broadcast "&4・-|>&7理由:%coloured arg-2% &7From:&a%player%&4<|-・"
70+
				broadcast "&7理由:%coloured arg-2% &7From:&a%player%"
71
			else:
72
				message "&7・-|>&4理由を記入&7<|-・"
73
		else:
74
			message "&7・-|>&4プレイヤーを記入&7<|-・"
75
 
76
command /unmute [<player>]:
77
	permission: mkp.owner
78
	trigger:
79
		if arg-1 is set:
80
			set {mute::%uuid of arg-1%} to false
81-
			broadcast "&d・-|>&a%arg-1%&7がUnMuteされました。&d<|-・"
81+
			broadcast "&a%arg-1%&7がMuteが解除されました。"
82-
			broadcast "&d・-|>&7From:&a%player%&d<|-・"
82+
			broadcast "&7From:&a%player%"
83
		else:
84
			message "&7・-|>&4プレイヤーを記入&7<|-・"
85
 
86
on chat:
87
	if {mute::%uuid of player%} is true:
88
		cancel event
89-
		message "&7・-|>&4貴方はMuteされています。&7<|-・"
89+
		message "&cMuteされています"
90
 
91
on command:
92
	if command contains "me":
93
		if {mute::%uuid of player%} is true:
94
			cancel event
95-
			message "&7・-|>&4貴方はMuteされています。&7<|-・"
95+
			message "&cMuteされています"
96
97
#|------------------------------------------------------|
98
#|                                                      |
99
#|   -----------------         ^         |-------\      |
100
#|           |                / \        |        |     |
101
#|           |               /   \       |--------/     |
102
#|           |              /-----\      |        \     |
103
#|           |             /       \     |         \    |
104
#|           |            /         \    |---------/    |
105
#|                                                      |
106
#|                                                      |
107
#|  |-----  |---\  -----  -----   /----\  |----\        |
108
#|  |---    |   |    |      |    |      | |----/        |
109
#|  |-----  |---/  -----    |     \----/  |    \        |
110
#|                                                      |
111
#|------------------------------------------------------|
112
 
113
 
114
 
115
 
116
command /setheader [<text>]:
117
	permission: admin
118
	trigger:
119
		if arg-1 is set:
120
			set {header} to coloured arg
121
			loop all players:
122
				set tab header to coloured arg and footer to "%{footer}%" for loop-player
123
			send "&7Headerを変更しました。変更後: %coloured arg%"
124
		else:
125
			send "&c文字を入力してください。"
126
 
127
command /setfooter [<text>]:
128
	permission: admin
129
	trigger:
130
		if arg-1 is set:
131
			set {footer} to coloured arg
132
			loop all players:
133
				set tab header to {header} and footer to coloured arg for loop-player
134
			send "&7Footerを変更しました。変更後: %coloured arg%"
135
		else:
136
			send "&c文字を入力してください。"
137
 
138
on join:
139
	set tab header to {header} and footer to {footer} for player
140
141
on command:
142
    command is "pl" or "plugins"
143
    cancel event
144
    loop {pl::*}:
145
        set {_pl} to "%{_pl}%&f, &a%loop-value%"
146
    replace "<none>&f, " with "" in {_pl}
147
    send "&fPlugins (%{pl}%): %{_pl}%"
148
 
149
command /pledit [<text>] [<text>]:
150
    permission: skript.admin
151
    trigger:
152
        if arg-1 is not "add" or "remove" or "reset":
153
            send "-- <PLedit> --", "/pledit <text> <text>" and "arg-1 is ""add"" or ""remove"" or ""reset"""
154
        else if arg-1 is "add":
155
            if {pl::%arg-2%} is set:
156
                send "-- <PLedit> --" and "%arg-2%は既に存在します"
157
                stop
158
            send "-- <PLedit> --" and "%arg-2%を追加しました"
159
            set {pl::%arg-2%} to "%arg-2%"
160
            add 1 to {pl}
161
        else if arg-1 is "remove":
162
            if {pl::%arg-2%} is not set:
163
                send "-- <PLedit> --" and "%arg-2%は存在しません"
164
                stop
165
            send "-- <PLedit> --" and "%arg-2%を削除しました"
166
            delete {pl::%arg-2%}
167
            add -1 to {pl}
168
        else if arg-1 is "reset":
169
            send "-- <PLedit> --" and "リセットしました"        
170
            delete {pl::*}
171
            delete {pl}
172
173-
on packet event play_client_update_sign:
173+
174-
	cancel event
174+
175-
	set {_lines::*} to string array pinfo 0 of event-packet
175+
176-
	set {_loc} to location pinfo 0 of event-packet
176+
177-
	set line 1 of block at {_loc} to colored {_lines::1}
177+
178-
	set line 2 of block at {_loc} to colored {_lines::2}
178+
179-
	set line 3 of block at {_loc} to colored {_lines::3}
179+
180-
	set line 4 of block at {_loc} to colored {_lines::4}
180+
181-
on rightclick:
181+
182-
	player is op
182+
183-
	player is sneaking
183+
184-
	player's tool is air
184+
185-
	id of clicked block is 63 or 68
185+
186-
	set {_signdata} to new play_server_tile_entity_data packet
186+
187-
	set location pinfo 0 of {_signdata} to location of clicked block
187+
188-
	set int pnum 0 of {_signdata} to 9
188+
189-
	set {_linevalue::1} to "{\""text\"":\""%line 1 of clicked block%\""}"
189+
190-
	set {_linevalue::2} to "{\""text\"":\""%line 2 of clicked block%\""}"
190+
	prefix: &8[CMD]#CommandLOGのPrefixの変更#default: &8[CMD]#
191-
	set {_linevalue::3} to "{\""text\"":\""%line 3 of clicked block%\""}"
191+
192-
	set {_linevalue::4} to "{\""text\"":\""%line 4 of clicked block%\""}"
192+
193-
	replace "§" in {_linevalue::*} with "&"
193+
194-
	set "Nbt" pjson 0 of {_signdata} to "{""name"":null,""type"":""compound"",""value"":{""x"":{""name"":""x"",""type"":""int"",""value"":%floor(x-loc of clicked block)%},""y"":{""name"":""y"",""type"":""int"",""value"":%floor(y-loc of clicked block)%},""z"":{""name"":""z"",""type"":""int"",""value"":%floor(z-loc of clicked block)%},""Text1"":{""name"":""Text1"",""type"":""string"",""value"":""%{_linevalue::1}%""},""Text2"":{""name"":""Text2"",""type"":""string"",""value"":""%{_linevalue::2}%""},""Text3"":{""name"":""Text3"",""type"":""string"",""value"":""%{_linevalue::3}%""},""Text4"":{""name"":""Text4"",""type"":""string"",""value"":""%{_linevalue::4}%""}}}" parsed as jsonobject
194+
195-
	set {_openeditor} to new play_server_open_sign_editor packet
195+
196-
	set location pinfo 0 of {_openeditor} to location of clicked block
196+
197-
	send player packet {_signdata}
197+
198-
	send player packet {_openeditor}
198+
199
					stop
200
				message " {@prefix} &7%player%: /%full command%" to loop-player
201
 
202
command /cmd [<text>]:#Logの表示のON/OFFの切り替え#
203
	permission: siso
204
	permission message: Unknown command. Type "/help" for help.
205
	trigger:
206
		if arg-1 is set:
207
			if arg-1 is "on":
208
				set {logs.%player%} to true
209
				message " {@prefix}&7Log表示を&aon&7にしました。"
210
				stop
211
			if arg-1 is "off":
212
				set {logs.%player%} to false
213
				message " {@prefix}&7Log表示を&coff&7にしました。"
214
				stop		
215
		else:
216
			message "{@prefix}&7/cmd <on,off>"
217
218
options:
219
	spm: &7[&dfreeze system!!]&r
220
 
221
command /freeze [<player>] [<text>]:
222
	permission: siso
223
	permission message: Unknown command. Type "/help" for help.
224
	trigger:
225
		if arg 1 is not set:
226
			send "{@spm} &bエラー: &cプレイヤー名などが記入されていません。"
227
			send "{@spm} Usage: /freeze <プレイヤー> <理由>"
228
			stop
229
		if arg 1 is set:
230
			broadcast "{@spm} &c%arg 1% は %arg 2% という理由で動きを止められた。"
231
			set {spm.freeze.%arg 1%} to true
232
			play sound "entity.wither.ambient" at arg 1
233
 
234
command /unfreeze [<player>] [<text>]:
235
	permission: siso
236
	permission message: Unknown command. Type "/help" for help.
237
	trigger:
238
		if arg 1 is not set:
239
			send "{@spm} &bエラー: &cプレイヤー名などが記入されていません。"
240
			send "{@spm} Usage: /unfreeze <プレイヤー> <理由>"
241
		if arg 2 is not set:
242
			send "{@spm} &bエラー: &c理由などが記入されていません。"
243
			send "{@spm} Usage: /unfreeze <プレイヤー> <理由>"
244
		if arg 1 is set:
245
			if arg 2 is set:
246
				broadcast " &a%arg 1% は %arg 2% という理由で Freeze を解除された!"
247
				set {spm.freeze.%arg 1%} to false
248
				play sound "entity.wither.death" at arg 1
249
 
250
on any movement:
251
	if {spm.freeze.%player%} is true:
252
		cancel event
253
		message " &cあなたはfreezeされています!"
254
 
255
on break:
256
	if {spm.freeze.%player%} is true:
257
		cancel event
258
		message " &cあなたはfreezeされています!"
259
 
260
on place:
261
	if {spm.freeze.%player%} is true:
262
		cancel event
263
		message " &cあなたはfreezeされています!"
264
265
command /prefix [<player>] [<text>]: #fix
266
	aliases: /pre
267
	permission: siso
268
	permission message: Unknown command. Type "/help" for help.
269
	trigger:
270
		if arg 1 is not set:
271
			message "&8使い方"
272
			message "&a&o/prefix &e(player) &5(text) &7※/pre"
273
			message "&8prefixを消したいときは/prefix (reset|delete|remove)"
274
			stop
275
		if arg 2 is "reset" or "delete" or "remove":
276
			delete {prefix.%arg 1%}
277
			message "&6prefixを削除しました"
278
			stop
279
		if arg 1 is set:
280
			if arg 2 is set:
281
				set {prefix.%arg 1%} to colored arg 2
282
				message "&e%arg 1%&6のprefixを%arg 2%&6に設定しました"
283
				stop
284
 
285
on chat:
286
	if {prefix.%player%} is set:
287
		set the chat format to "%{prefix.%player%}%%player%&8: &r[message]"
288
		stop
289
		
290
on join:
291
	if {prefix.%player%} is not set:
292
		set {prefix.%player%}
293
		stop
294
295
command /tabcomplete:
296
	permission: siso
297
	permission message: Unknown command. Type "/help" for help.
298
	trigger:
299
		if {tabcomplete} is not set:
300
			set {tabcomplete} to true
301
			send "&6Tab補完ができなくなりました"
302
			stop
303
		if {tabcomplete} is true:
304
			set {tabcomplete} to false
305
			send "&6Tab補完ができるようになりました"
306
			stop
307
		if {tabcomplete} is false:
308
			set {tabcomplete} to true
309
			send "&6Tab補完ができなくなりました"
310
			stop
311
 
312
on tab complete:
313
	if player is not op:
314
		if {tabcomplete} is true:
315
			send "&6Tab補完が禁止されています"
316
			cancel event
317
318
command /commandblocker [<text>] [<text>]:
319
	permission: admin
320
	permission message: Unknown command. Type "/help" for help.
321
	aliases: /cmdblock, /cmb, /cmdblocker
322
	trigger:
323
		if arg 1 is not set:
324
			send "&b特定のコマンドを使用できないようにします"
325
			send "&a&o/cmdblock &6(add|remove|list|removeall)"
326
			stop
327
		if arg 1 is set:
328
			if arg 1 is "list" or "lists":
329
				if {commands.blocked::*} is not set:
330
					send "&cブロックされているコマンドはありません"
331
				else:
332
					loop {commands.blocked::*}:
333
						send "&6ブロックされているコマンド&8➜ &b/%loop-value%"  
334
			if arg 1 is "add":
335
				if arg 2 is set:
336
					if {commands.blocked::*} contains arg 2:
337
						send "&c既にそのコマンドは登録されています"
338
						stop
339
					else:
340
						add arg 2 to {commands.blocked::*}
341
						send "&a%arg 2%を登録しました"
342
			if arg 1 is "remove":
343
				if arg 2 is set: 
344
					if {commands.blocked::*} contains arg 2:
345
						remove arg 2 from {commands.blocked::*}
346
						send "&6%arg 2%を登録から解除しました"
347
						stop
348
					else: 
349
						send "&c%arg 2%は登録されていません" 
350
						stop
351
			if arg 1 is "removeall":
352
				delete {commands.blocked::*}
353
				send "&c登録されているコマンドをすべて削除しました"
354
				stop
355
 
356
on command:
357
	loop {commands.blocked::*}:
358
		if command contains loop-value:
359
			if player is op:
360
				send "&cそのコマンドはコマンドブロックに登録されているので使用できません"
361
				cancel event
362
				stop
363
			else:
364
				cancel event
365
				stop
366
367
on first join:
368
	broadcast "&e✿ &d%player% が初めて参加しました!&e✿"
369
	stop
370
371
on join:
372
	broadcast "&e%player% が参加しました"
373
	stop
374
375
on quit:
376
	broadcast "&7%player% が退出しました"
377
	stop