SHOW:
|
|
- or go back to the newest paste.
| 1 | #=============================================== | |
| 2 | #/conttimeコマンド | |
| 3 | #=============================================== | |
| 4 | command /conttime <offline player> <text> [<number=0>] [<text="s">]: | |
| 5 | aliases: ad-ws | |
| 6 | permission: skript.admin | |
| 7 | trigger: | |
| 8 | if arg 4 is "s": | |
| 9 | set {unit} to "second"
| |
| 10 | else if arg 4 is "m": | |
| 11 | set {unit} to "minute"
| |
| 12 | else if arg 4 is "h": | |
| 13 | set {unit} to "hour"
| |
| 14 | else if arg 4 is "d": | |
| 15 | set {unit} to "day"
| |
| 16 | else: | |
| 17 | stop | |
| 18 | if arg 2 is "set": | |
| 19 | set {playtime.%{unit}%.%arg 1%} to arg 3
| |
| 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に設定しました"
| |
| 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
| |
| 22 | if arg 2 is "add": | |
| 23 | add arg 3 to {playtime.%{unit}%.%arg 1%}
| |
| 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に設定しました"
| |
| 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
| |
| 26 | if arg 2 is "remove": | |
| 27 | remove arg 3 from {playtime.%{unit}%.%arg 1%}
| |
| 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に設定しました"
| |
| 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
| |
| 30 | ||
| 31 | #=============================================== | |
| 32 | #/ontimeコマンド | |
| 33 | #=============================================== | |
| 34 | on join: | |
| 35 | loop all players: | |
| 36 | if {playtime.second.%loop-player%} is not set:
| |
| 37 | set {playtime.second.%loop-player%} to 0
| |
| 38 | if {playtime.minute.%loop-player%} is not set:
| |
| 39 | set {playtime.minute.%loop-player%} to 0
| |
| 40 | if {playtime.hour.%loop-player%} is not set:
| |
| 41 | set {playtime.hour.%loop-player%} to 0
| |
| 42 | if {playtime.day.%loop-player%} is not set:
| |
| 43 | set {playtime.day.%loop-player%} to 0
| |
| 44 | ||
| 45 | every second: | |
| 46 | loop all players: | |
| 47 | add 1 to {playtime.second.%loop-player%}
| |
| 48 | if {playtime.second.%loop-player%} is more than 59:
| |
| 49 | add 1 to {playtime.minute.%loop-player%}
| |
| 50 | set {playtime.second.%loop-player%} to 0
| |
| 51 | if {playtime.minute.%loop-player%} is more than 59:
| |
| 52 | add 1 to {playtime.hour.%loop-player%}
| |
| 53 | set {playtime.minute.%loop-player%} to 0
| |
| 54 | if {playtime.hour.%loop-player%} is more than 23:
| |
| 55 | add 1 to {playtime.day.%loop-player%}
| |
| 56 | set {playtime.hour.%loop-player%} to 0
| |
| 57 | ||
| 58 | - | command /ontime: |
| 58 | + | command /ontime <offline player>: |
| 59 | trigger: | |
| 60 | if arg 4 is "s": | |
| 61 | set {unit} to "second"
| |
| 62 | else if arg 4 is "m": | |
| 63 | set {unit} to "minute"
| |
| 64 | else if arg 4 is "h": | |
| 65 | set {unit} to "hour"
| |
| 66 | else if arg 4 is "d": | |
| 67 | set {unit} to "day"
| |
| 68 | message "&e&l[プレイ時間]" | |
| 69 | message "&6現在のプレイ時間: &d%{playtime.day.%player%}%d %{playtime.hour.%player%}%h %{playtime.minute.%player%}%m %{playtime.second.%player%}%s "
| |
| 70 | ||
| 71 | #=============================================== | |
| 72 | #/timeprefixコマンド | |
| 73 | #=============================================== | |
| 74 | command /timeprefix [<number=0>] [<text="h">] <text>: | |
| 75 | aliases: tpf | |
| 76 | permission: skript.admin | |
| 77 | trigger: | |
| 78 | stop | |
| 79 | ||
| 80 | #=============================================== | |
| 81 | #/spawnコマンド | |
| 82 | #=============================================== | |
| 83 | command /spawn: | |
| 84 | trigger: | |
| 85 | teleport player to {spawnpoint}
| |
| 86 | message "&6&lテレポートしました" | |
| 87 | execute console command "/execute %player% ~ ~ ~ setspawn %player% ~ ~ ~" | |
| 88 | play sound "block.note.pling" with pitch 1.5 at player | |
| 89 | play sound "block.note.snare" with pitch 1 at player | |
| 90 | play sound "block.note.basedrum" with pitch 1 at player | |
| 91 | wait 2 minecraft ticks | |
| 92 | play sound "block.note.pling" with pitch 1.25 at player | |
| 93 | play sound "block.note.snare" with pitch 0.5 at player | |
| 94 | play sound "block.note.basedrum" with pitch 1 at player | |
| 95 | ||
| 96 | #=============================================== | |
| 97 | #/setspawnコマンド | |
| 98 | #=============================================== | |
| 99 | command /setspawn: | |
| 100 | permission: skript.admin | |
| 101 | trigger: | |
| 102 | set {spawnpoint} to location of player
| |
| 103 | message "&6&lスポーンを設定しました" | |
| 104 | ||
| 105 | #=============================================== | |
| 106 | #SPAM対策 | |
| 107 | #=============================================== | |
| 108 | on chat: | |
| 109 | add 15 to {%player%.spamscore}
| |
| 110 | if {%player%.spamscore} is more than 22:
| |
| 111 | add 10 to {%player%.warnscore}
| |
| 112 | message "&e&l[system] &c&lSPAM判定されたため警告スコアが10増えました" | |
| 113 | message "&c&l異議がある場合は運営に連絡してください" | |
| 114 | message "&7&l(現在の警告スコア:%{%player%.warnscore}%)"
| |
| 115 | ||
| 116 | every minecraft tick: | |
| 117 | loop all players: | |
| 118 | remove 1 from {%loop-player%.spamscore}
| |
| 119 | if {%loop-player%.spamscore} is less than 0:
| |
| 120 | set {%loop-player%.spamscore} to 0
| |
| 121 | ||
| 122 | every minecraft tick: | |
| 123 | loop all players: | |
| 124 | if {%loop-player%.warnscore} is more than 99:
| |
| 125 | set {%loop-player%.warnscore} to 0
| |
| 126 | loop-player has the permission "skript.admin": | |
| 127 | stop | |
| 128 | broadcast "&e&l[system] &d%loop-player%&cさんの警告スコアが100を超えた為&nBAN&cされました" | |
| 129 | ban loop-player | |
| 130 | ||
| 131 | #=============================================== | |
| 132 | #/admin-warnscoreコマンド | |
| 133 | #=============================================== | |
| 134 | command /admin-warnscore <offline player> <text> [<number=0>]: | |
| 135 | aliases: ad-ws | |
| 136 | permission: skript.admin | |
| 137 | trigger: | |
| 138 | if arg 2 is "set": | |
| 139 | set {%player%.warnscore} to arg 3
| |
| 140 | message "&9&l[admin] &7%arg 1%さんの警告スコアを%{%arg 1%.warnscore}%に設定しました"
| |
| 141 | message "&e&l[system] &a%player%さんによりあなたのスコアが%{%arg 1%.warnscore}%に設定されました" to arg 1
| |
| 142 | if arg 2 is "add": | |
| 143 | add arg 3 to {%player%.warnscore}
| |
| 144 | message "&9&l[admin] &7%arg 1%さんの警告スコアを%{%arg 1%.warnscore}%に設定しました"
| |
| 145 | message "&e&l[system] &a%player%さんによりあなたのスコアが%{%arg 1%.warnscore}%に設定されました" to arg 1
| |
| 146 | if arg 2 is "remove": | |
| 147 | remove arg 3 from {%player%.warnscore}
| |
| 148 | message "&9&l[admin] &7%arg 1%さんの警告スコアを%{%arg 1%.warnscore}%に設定しました"
| |
| 149 | message "&e&l[system] &a%player%さんによりあなたのスコアが%{%arg 1%.warnscore}%に設定されました" to arg 1
| |
| 150 | if arg 2 is "disp": | |
| 151 | message "&9&l[admin] &7%arg 1%さんの警告スコアは%{%arg 1%.warnscore}%です" |