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 "&a%arg-1%&7がMuteされました。" | |
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 "&a%arg-1%&7がMuteが解除されました。" | |
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 "&cMuteされています" | |
90 | ||
91 | on command: | |
92 | if command contains "me": | |
93 | if {mute::%uuid of player%} is true: | |
94 | cancel event | |
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 | ||
145 | on tool change: | |
146 | play sound "ui.button.click" with volume 0.5 and pitch 1 at player | |
147 | ||
148 | on inventory click: | |
149 | play sound "ui.button.click" with volume 0.5 and pitch 0.7 at player | |
150 | ||
151 | options: | |
152 | prefix: &8[CMD] | |
153 | ||
154 | on command: | |
155 | loop all players: | |
156 | if loop-player has permission "sk.admin": | |
157 | if {logs.%loop-player%} is not set: | |
158 | set {logs.%loop-player%} to true | |
159 | - | message " {@prefix} &7%player%: /%full command%" to loop-player |
159 | + | |
160 | if player is not set: | |
161 | message "{@prefix} &2%player%: &7/%full command%" to loop-player | |
162 | stop | |
163 | ||
164 | command /cmd [<text>]:#Logの表示のON/OFFの切り替え# | |
165 | permission: admin | |
166 | permission message: Unknown command. Type "/help" for help. | |
167 | trigger: | |
168 | if arg-1 is set: | |
169 | if arg-1 is "on": | |
170 | set {logs.%player%} to true | |
171 | - | message "{@prefix} &7%player%: /%full command%" to loop-player |
171 | + | |
172 | stop | |
173 | if arg-1 is "off": | |
174 | set {logs.%player%} to false | |
175 | message " {@prefix}&7Log表示を&coff&7にしました。" | |
176 | stop | |
177 | else: | |
178 | message "{@prefix}&7/cmd <on,off>" | |
179 | ||
180 | options: | |
181 | spm: &7[&dfreeze system!!]&r | |
182 | ||
183 | command /freeze [<player>] [<text>]: | |
184 | permission: admin | |
185 | permission message: Unknown command. Type "/help" for help. | |
186 | trigger: | |
187 | if arg 1 is not set: | |
188 | send "{@spm} &bエラー: &cプレイヤー名などが記入されていません。" | |
189 | send "{@spm} Usage: /freeze <プレイヤー> <理由>" | |
190 | stop | |
191 | if arg 1 is set: | |
192 | broadcast "{@spm} &c%arg 1% は %arg 2% という理由で動きを止められた。" | |
193 | set {spm.freeze.%arg 1%} to true | |
194 | play sound "entity.wither.ambient" at arg 1 | |
195 | ||
196 | command /unfreeze [<player>] [<text>]: | |
197 | permission: admin | |
198 | permission message: Unknown command. Type "/help" for help. | |
199 | trigger: | |
200 | if arg 1 is not set: | |
201 | send "{@spm} &bエラー: &cプレイヤー名などが記入されていません。" | |
202 | send "{@spm} Usage: /unfreeze <プレイヤー> <理由>" | |
203 | if arg 2 is not set: | |
204 | send "{@spm} &bエラー: &c理由などが記入されていません。" | |
205 | send "{@spm} Usage: /unfreeze <プレイヤー> <理由>" | |
206 | if arg 1 is set: | |
207 | if arg 2 is set: | |
208 | broadcast " &a%arg 1% は %arg 2% という理由で Freeze を解除された!" | |
209 | set {spm.freeze.%arg 1%} to false | |
210 | play sound "entity.wither.death" at arg 1 | |
211 | ||
212 | on any movement: | |
213 | if {spm.freeze.%player%} is true: | |
214 | cancel event | |
215 | message " &cあなたはfreezeされています!" | |
216 | ||
217 | on break: | |
218 | if {spm.freeze.%player%} is true: | |
219 | cancel event | |
220 | message " &cあなたはfreezeされています!" | |
221 | ||
222 | on place: | |
223 | if {spm.freeze.%player%} is true: | |
224 | cancel event | |
225 | message " &cあなたはfreezeされています!" | |
226 | ||
227 | command /prefix [<player>] [<text>]: #fix | |
228 | aliases: /pre | |
229 | permission: admin | |
230 | permission message: Unknown command. Type "/help" for help. | |
231 | trigger: | |
232 | if arg 1 is not set: | |
233 | message "&8使い方" | |
234 | message "&a&o/prefix &e(player) &5(text) &7※/pre" | |
235 | message "&8prefixを消したいときは/prefix (reset|delete|remove)" | |
236 | stop | |
237 | if arg 2 is "reset" or "delete" or "remove": | |
238 | delete {prefix.%arg 1%} | |
239 | message "&6prefixを削除しました" | |
240 | stop | |
241 | if arg 1 is set: | |
242 | if arg 2 is set: | |
243 | set {prefix.%arg 1%} to colored arg 2 | |
244 | message "&e%arg 1%&6のprefixを%arg 2%&6に設定しました" | |
245 | stop | |
246 | ||
247 | on chat: | |
248 | if {prefix.%player%} is set: | |
249 | set the chat format to "%{prefix.%player%}%%player%&8: &r[message]" | |
250 | stop | |
251 | ||
252 | command /tabcomplete: | |
253 | permission: admin | |
254 | permission message: Unknown command. Type "/help" for help. | |
255 | trigger: | |
256 | if {tabcomplete} is not set: | |
257 | set {tabcomplete} to true | |
258 | send "&6Tab補完ができなくなりました" | |
259 | stop | |
260 | if {tabcomplete} is true: | |
261 | set {tabcomplete} to false | |
262 | send "&6Tab補完ができるようになりました" | |
263 | stop | |
264 | if {tabcomplete} is false: | |
265 | set {tabcomplete} to true | |
266 | send "&6Tab補完ができなくなりました" | |
267 | stop | |
268 | ||
269 | on tab complete: | |
270 | if player is not op: | |
271 | if {tabcomplete} is true: | |
272 | send "&6Tab補完が禁止されています" | |
273 | cancel event | |
274 | ||
275 | command /commandblocker [<text>] [<text>]: | |
276 | permission: admin | |
277 | permission message: Unknown command. Type "/help" for help. | |
278 | aliases: /cmdblock, /cmb, /cmdblocker | |
279 | trigger: | |
280 | if arg 1 is not set: | |
281 | send "&b特定のコマンドを使用できないようにします" | |
282 | send "&a&o/cmdblock &6(add|remove|list|removeall)" | |
283 | stop | |
284 | if arg 1 is set: | |
285 | if arg 1 is "list" or "lists": | |
286 | if {commands.blocked::*} is not set: | |
287 | send "&cブロックされているコマンドはありません" | |
288 | else: | |
289 | loop {commands.blocked::*}: | |
290 | send "&6ブロックされているコマンド&8➜ &b/%loop-value%" | |
291 | if arg 1 is "add": | |
292 | if arg 2 is set: | |
293 | if {commands.blocked::*} contains arg 2: | |
294 | send "&c既にそのコマンドは登録されています" | |
295 | stop | |
296 | else: | |
297 | add arg 2 to {commands.blocked::*} | |
298 | send "&a%arg 2%を登録しました" | |
299 | if arg 1 is "remove": | |
300 | if arg 2 is set: | |
301 | if {commands.blocked::*} contains arg 2: | |
302 | remove arg 2 from {commands.blocked::*} | |
303 | send "&6%arg 2%を登録から解除しました" | |
304 | stop | |
305 | else: | |
306 | send "&c%arg 2%は登録されていません" | |
307 | stop | |
308 | if arg 1 is "removeall": | |
309 | delete {commands.blocked::*} | |
310 | send "&c登録されているコマンドをすべて削除しました" | |
311 | stop | |
312 | ||
313 | on command: | |
314 | loop {commands.blocked::*}: | |
315 | if command contains loop-value: | |
316 | if player is op: | |
317 | send "&cそのコマンドはコマンドブロックに登録されているので使用できません" | |
318 | cancel event | |
319 | stop | |
320 | else: | |
321 | cancel event | |
322 | stop | |
323 | ||
324 | on first join: | |
325 | broadcast "&e✿ &d%player% が初めて参加しました!&e✿" | |
326 | stop | |
327 | ||
328 | on join: | |
329 | broadcast "&e%player% が参加しました" | |
330 | stop | |
331 | ||
332 | on quit: | |
333 | broadcast "&7%player% が退出しました" | |
334 | stop |