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