Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================
- #/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