Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /openreport:
- permission: skript.admin
- trigger:
- open chest with 6 rows named "&b報告メニュー" to player
- wait a tick
- format slot 0 of player with ender chest named "&cすべて削除" with lore "&7クリックしてすべての報告を削除します。" to close then run [execute player command "/delallreport"]
- loop {reports::*}:
- add 1 to {_position}
- set {_id} to {_position}
- format slot {_position} of player with white wool named "&b%loop-value%" with lore "&d報告者:&e%{%{_count}%.from}%||&d内容:||&e%{%{_count}%.info}%||||&7クリックで削除します。" to run [execute player command "/inforeport %slot of format item%"]
- add 1 to {_count}
- command /preport [<offline player>] [<text>]:
- trigger:
- if arg 2 is not set:
- if arg 1 is not set:
- send "&b使用法: /preport <プレイヤー> <内容>"
- send "&7プレイヤーの不正行為やルール違反を報告できます。"
- send "&7内容はなるべく具体的に記述してください。"
- send ""
- send "&e例: /preport Steve Altアカウントの利用"
- send "&e例: /preport Alex Hack(飛行、KillAura)の利用"
- stop
- send "&b使用法: /preport %arg 1% <内容>"
- send "&7プレイヤーの不正行為やルール違反を報告できます。"
- send "&7内容はなるべく具体的に記述してください。"
- send ""
- send "&e例: /preport Steve Altアカウントの利用"
- send "&e例: /preport Alex Hack(飛行、KillAura)の利用"
- stop
- add arg 1 to {reports::*}
- set {%{reportid}%.from} to name of sender
- set {%{reportid}%.info} to coloured arg 2
- set {%{reportid}%.id} to {reportid}
- add 1 to {reportid}
- send "&b報告を受け付けました。報告ありがとうございます。"
- command /delreport <number>:
- permission: skript.admin
- trigger:
- clear {%arg 1%.from}
- clear {%arg 1%.info}
- clear {%arg 1%.id}
- remove 1 from {reportid}
- remove {reports::%arg 1%} from {reports::*}
- send "&b報告を削除しました。"
- play raw sound "mob.bat.death" at player with pitch 1 volume 10
- wait 2 tick
- open chest with 6 rows named "&b報告メニュー" to player
- wait a tick
- format slot 0 of player with ender chest named "&cすべて削除" with lore "&7クリックしてすべての報告を削除します。" to close then run [execute player command "/delallreport"]
- loop {reports::*}:
- add 1 to {_position}
- format slot {_position} of player with white wool named "&b%loop-value%" with lore "&d報告者:&e%{%{_count}%.from}%||&d内容:||&e%{%{_count}%.info}%||||&7クリックで削除します。" to run [execute player command "/inforeport %loop-index%"]
- add 1 to {_count}
- command /delallreport:
- permission: skript.admin
- trigger:
- loop {reports::*}:
- clear {%loop-index%.from}
- clear {%loop-index%.info}
- clear {%loop-index%.id}
- clear {reports::*}
- clear {reportid}
- play raw sound "entity.item.break" at player with pitch 1 volume 10
- send "&bすべての報告を削除しました。"
- command /inforeport <number>:
- permission: skript.admin
- trigger:
- open chest with 2 rows named "&b%{reports::%arg 1%}%" to player
- wait 1 tick
- format slot 2 of player with book named "&b詳細情報をチャット欄に表示" with lore "&7クリックして詳細情報をチャット欄に表示します。" to close then run [execute player command "/moreinfo %arg 1%"]
- format slot 6 of player with lava bucket named "&c報告を削除" with lore "&7クリックして報告を削除します。" to close then run [execute player command "/delreport %arg 1%"]
- format slot 17 of player with book named "&e戻る" with lore "&7クリックして報告一覧に戻ります。" to run [execute player command "/openreport"]
- command /moreinfo <number>:
- permission: skript.admin
- trigger:
- send "&d報告対象:&e%{reports::%arg 1%}%"
- send "&dプレイヤー:&e%{%arg 1 - 1%.from}%"
- send "&d詳細情報:&e%{%arg 1 - 1%.info}%"
- send "&d識別ID:&e%{%arg 1 - 1%.id}%"
Advertisement
Add Comment
Please, Sign In to add comment