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 | trigger: | |
| 6 | teleport player to {spawnpoint}
| |
| 7 | message "&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 | #/setspawnコマンド | |
| 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 | trigger: | |
| 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 | + | |
| 25 | - | 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
|
| 25 | + | |
| 26 | #=============================================== | |
| 27 | - | remove arg 3 from {playtime.%{unit}%.%arg 1%}
|
| 27 | + | |
| 28 | - | 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に設定しました"
|
| 28 | + | |
| 29 | - | message "&e&l[system] &a%player%さんによりあなたのプレイ時間が%{playtime.day.%player%}%d %{playtime.hour.%player%}%h %{playtime.minute.%player%}%m %{playtime.second.%player%}%sに設定されました" to arg 1
|
| 29 | + | |
| 30 | add 15 to {%player%.spamscore}
| |
| 31 | if {%player%.spamscore} is more than 22:
| |
| 32 | - | #/ontimeコマンド |
| 32 | + | |
| 33 | message "&e&l[system] &c&lSPAM判定されたため警告スコアが10増えました" | |
| 34 | - | on join: |
| 34 | + | |
| 35 | message "&7&l(現在の警告スコア:%{%player%.warnscore}%)"
| |
| 36 | - | if {playtime.second.%loop-player%} is not set:
|
| 36 | + | |
| 37 | - | set {playtime.second.%loop-player%} to 0
|
| 37 | + | |
| 38 | - | if {playtime.minute.%loop-player%} is not set:
|
| 38 | + | |
| 39 | - | set {playtime.minute.%loop-player%} to 0
|
| 39 | + | |
| 40 | - | if {playtime.hour.%loop-player%} is not set:
|
| 40 | + | |
| 41 | - | set {playtime.hour.%loop-player%} to 0
|
| 41 | + | |
| 42 | - | if {playtime.day.%loop-player%} is not set:
|
| 42 | + | |
| 43 | - | set {playtime.day.%loop-player%} to 0
|
| 43 | + | |
| 44 | loop all players: | |
| 45 | - | every second: |
| 45 | + | |
| 46 | set {%loop-player%.warnscore} to 0
| |
| 47 | - | add 1 to {playtime.second.%loop-player%}
|
| 47 | + | |
| 48 | - | if {playtime.second.%loop-player%} is more than 59:
|
| 48 | + | |
| 49 | - | add 1 to {playtime.minute.%loop-player%}
|
| 49 | + | |
| 50 | - | set {playtime.second.%loop-player%} to 0
|
| 50 | + | |
| 51 | - | if {playtime.minute.%loop-player%} is more than 59:
|
| 51 | + | |
| 52 | - | add 1 to {playtime.hour.%loop-player%}
|
| 52 | + | |
| 53 | - | set {playtime.minute.%loop-player%} to 0
|
| 53 | + | |
| 54 | - | if {playtime.hour.%loop-player%} is more than 23:
|
| 54 | + | |
| 55 | - | add 1 to {playtime.day.%loop-player%}
|
| 55 | + | |
| 56 | - | set {playtime.hour.%loop-player%} to 0
|
| 56 | + | |
| 57 | permission: skript.admin | |
| 58 | - | command /ontime: |
| 58 | + | |
| 59 | if arg 2 is "set": | |
| 60 | - | message "&e&l[プレイ時間]" |
| 60 | + | |
| 61 | - | message "&6現在のプレイ時間: &d%{playtime.day.%player%}%d %{playtime.hour.%player%}%h %{playtime.minute.%player%}%m %{playtime.second.%player%}%s "
|
| 61 | + | |
| 62 | message "&e&l[system] &a%player%さんによりあなたのスコアが%{%arg 1%.warnscore}%に設定されました" to arg 1
| |
| 63 | if arg 2 is "add": | |
| 64 | - | #/timeprefixコマンド |
| 64 | + | |
| 65 | message "&9&l[admin] &7%arg 1%さんの警告スコアを%{%arg 1%.warnscore}%に設定しました"
| |
| 66 | - | command /timeprefix [<number=0>] [<text="h">] <text>: |
| 66 | + | |
| 67 | - | aliases: tpf |
| 67 | + | |
| 68 | remove arg 3 from {%player%.warnscore}
| |
| 69 | message "&9&l[admin] &7%arg 1%さんの警告スコアを%{%arg 1%.warnscore}%に設定しました"
| |
| 70 | - | stop |
| 70 | + | |
| 71 | if arg 2 is "disp": | |
| 72 | message "&9&l[admin] &7%arg 1%さんの警告スコアは%{%arg 1%.warnscore}%です" |