Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================
- #/conttimeコマンド
- #===============================================
- command /conttime <offline player> <text> [<number=0>] [<text="s">]:
- aliases: ad-ws
- permission: skript.admin
- trigger:
- if arg 4 is "s":
- set {unit} to "second"
- else if arg 4 is "m":
- set {unit} to "minute"
- else if arg 4 is "h":
- set {unit} to "hour"
- else if arg 4 is "d":
- set {unit} to "day"
- else:
- stop
- if arg 2 is "set":
- set {playtime.%{unit}%.%arg 1%} to arg 3
- 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に設定しました"
- 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
- if arg 2 is "add":
- add arg 3 to {playtime.%{unit}%.%arg 1%}
- 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に設定しました"
- 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
- if arg 2 is "remove":
- remove arg 3 from {playtime.%{unit}%.%arg 1%}
- 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に設定しました"
- 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
- #===============================================
- #/ontimeコマンド
- #===============================================
- on join:
- loop all players:
- if {playtime.second.%loop-player%} is not set:
- set {playtime.second.%loop-player%} to 0
- if {playtime.minute.%loop-player%} is not set:
- set {playtime.minute.%loop-player%} to 0
- if {playtime.hour.%loop-player%} is not set:
- set {playtime.hour.%loop-player%} to 0
- if {playtime.day.%loop-player%} is not set:
- set {playtime.day.%loop-player%} to 0
- every second:
- loop all players:
- add 1 to {playtime.second.%loop-player%}
- if {playtime.second.%loop-player%} is more than 59:
- add 1 to {playtime.minute.%loop-player%}
- set {playtime.second.%loop-player%} to 0
- if {playtime.minute.%loop-player%} is more than 59:
- add 1 to {playtime.hour.%loop-player%}
- set {playtime.minute.%loop-player%} to 0
- if {playtime.hour.%loop-player%} is more than 23:
- add 1 to {playtime.day.%loop-player%}
- set {playtime.hour.%loop-player%} to 0
- command /ontime <offline player>:
- trigger:
- if arg 4 is "s":
- set {unit} to "second"
- else if arg 4 is "m":
- set {unit} to "minute"
- else if arg 4 is "h":
- set {unit} to "hour"
- else if arg 4 is "d":
- set {unit} to "day"
- message "&e&l[プレイ時間]"
- message "&6現在のプレイ時間: &d%{playtime.day.%player%}%d %{playtime.hour.%player%}%h %{playtime.minute.%player%}%m %{playtime.second.%player%}%s "
- #===============================================
- #/timeprefixコマンド
- #===============================================
- command /timeprefix [<number=0>] [<text="h">] <text>:
- aliases: tpf
- permission: skript.admin
- trigger:
- stop
- #===============================================
- #/spawnコマンド
- #===============================================
- command /spawn:
- trigger:
- teleport player to {spawnpoint}
- message "&6&lテレポートしました"
- execute console command "/execute %player% ~ ~ ~ setspawn %player% ~ ~ ~"
- play sound "block.note.pling" with pitch 1.5 at player
- play sound "block.note.snare" with pitch 1 at player
- play sound "block.note.basedrum" with pitch 1 at player
- wait 2 minecraft ticks
- play sound "block.note.pling" with pitch 1.25 at player
- play sound "block.note.snare" with pitch 0.5 at player
- play sound "block.note.basedrum" with pitch 1 at player
- #===============================================
- #/setspawnコマンド
- #===============================================
- command /setspawn:
- permission: skript.admin
- trigger:
- set {spawnpoint} to location of player
- message "&6&lスポーンを設定しました"
- #===============================================
- #SPAM対策
- #===============================================
- on chat:
- add 15 to {%player%.spamscore}
- if {%player%.spamscore} is more than 22:
- add 10 to {%player%.warnscore}
- message "&e&l[system] &c&lSPAM判定されたため警告スコアが10増えました"
- message "&c&l異議がある場合は運営に連絡してください"
- message "&7&l(現在の警告スコア:%{%player%.warnscore}%)"
- every minecraft tick:
- loop all players:
- remove 1 from {%loop-player%.spamscore}
- if {%loop-player%.spamscore} is less than 0:
- set {%loop-player%.spamscore} to 0
- every minecraft tick:
- loop all players:
- if {%loop-player%.warnscore} is more than 99:
- set {%loop-player%.warnscore} to 0
- loop-player has the permission "skript.admin":
- stop
- broadcast "&e&l[system] &d%loop-player%&cさんの警告スコアが100を超えた為&nBAN&cされました"
- ban loop-player
- #===============================================
- #/admin-warnscoreコマンド
- #===============================================
- command /admin-warnscore <offline player> <text> [<number=0>]:
- aliases: ad-ws
- permission: skript.admin
- trigger:
- if arg 2 is "set":
- set {%player%.warnscore} to arg 3
- message "&9&l[admin] &7%arg 1%さんの警告スコアを%{%arg 1%.warnscore}%に設定しました"
- message "&e&l[system] &a%player%さんによりあなたのスコアが%{%arg 1%.warnscore}%に設定されました" to arg 1
- if arg 2 is "add":
- add arg 3 to {%player%.warnscore}
- message "&9&l[admin] &7%arg 1%さんの警告スコアを%{%arg 1%.warnscore}%に設定しました"
- message "&e&l[system] &a%player%さんによりあなたのスコアが%{%arg 1%.warnscore}%に設定されました" to arg 1
- if arg 2 is "remove":
- remove arg 3 from {%player%.warnscore}
- message "&9&l[admin] &7%arg 1%さんの警告スコアを%{%arg 1%.warnscore}%に設定しました"
- message "&e&l[system] &a%player%さんによりあなたのスコアが%{%arg 1%.warnscore}%に設定されました" to arg 1
- if arg 2 is "disp":
- message "&9&l[admin] &7%arg 1%さんの警告スコアは%{%arg 1%.warnscore}%です"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement