kjfalkeiae

Untitled

Jan 28th, 2019
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. command /openreport:
  2. permission: skript.admin
  3. trigger:
  4. open chest with 6 rows named "&b報告メニュー" to player
  5. wait a tick
  6. format slot 0 of player with ender chest named "&cすべて削除" with lore "&7クリックしてすべての報告を削除します。" to close then run [execute player command "/delallreport"]
  7. loop {reports::*}:
  8. add 1 to {_position}
  9. set {_id} to {_position}
  10. 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%"]
  11. add 1 to {_count}
  12.  
  13. command /preport [<offline player>] [<text>]:
  14. trigger:
  15. if arg 2 is not set:
  16. if arg 1 is not set:
  17. send "&b使用法: /preport <プレイヤー> <内容>"
  18. send "&7プレイヤーの不正行為やルール違反を報告できます。"
  19. send "&7内容はなるべく具体的に記述してください。"
  20. send ""
  21. send "&e例: /preport Steve Altアカウントの利用"
  22. send "&e例: /preport Alex Hack(飛行、KillAura)の利用"
  23. stop
  24. send "&b使用法: /preport %arg 1% <内容>"
  25. send "&7プレイヤーの不正行為やルール違反を報告できます。"
  26. send "&7内容はなるべく具体的に記述してください。"
  27. send ""
  28. send "&e例: /preport Steve Altアカウントの利用"
  29. send "&e例: /preport Alex Hack(飛行、KillAura)の利用"
  30. stop
  31. add arg 1 to {reports::*}
  32. set {%{reportid}%.from} to name of sender
  33. set {%{reportid}%.info} to coloured arg 2
  34. set {%{reportid}%.id} to {reportid}
  35. add 1 to {reportid}
  36. send "&b報告を受け付けました。報告ありがとうございます。"
  37.  
  38. command /delreport <number>:
  39. permission: skript.admin
  40. trigger:
  41. clear {%arg 1%.from}
  42. clear {%arg 1%.info}
  43. clear {%arg 1%.id}
  44. remove 1 from {reportid}
  45. remove {reports::%arg 1%} from {reports::*}
  46. send "&b報告を削除しました。"
  47. play raw sound "mob.bat.death" at player with pitch 1 volume 10
  48. wait 2 tick
  49. open chest with 6 rows named "&b報告メニュー" to player
  50. wait a tick
  51. format slot 0 of player with ender chest named "&cすべて削除" with lore "&7クリックしてすべての報告を削除します。" to close then run [execute player command "/delallreport"]
  52. loop {reports::*}:
  53. add 1 to {_position}
  54. 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%"]
  55. add 1 to {_count}
  56.  
  57. command /delallreport:
  58. permission: skript.admin
  59. trigger:
  60. loop {reports::*}:
  61. clear {%loop-index%.from}
  62. clear {%loop-index%.info}
  63. clear {%loop-index%.id}
  64. clear {reports::*}
  65. clear {reportid}
  66. play raw sound "entity.item.break" at player with pitch 1 volume 10
  67. send "&bすべての報告を削除しました。"
  68.  
  69. command /inforeport <number>:
  70. permission: skript.admin
  71. trigger:
  72. open chest with 2 rows named "&b%{reports::%arg 1%}%" to player
  73. wait 1 tick
  74. format slot 2 of player with book named "&b詳細情報をチャット欄に表示" with lore "&7クリックして詳細情報をチャット欄に表示します。" to close then run [execute player command "/moreinfo %arg 1%"]
  75. format slot 6 of player with lava bucket named "&c報告を削除" with lore "&7クリックして報告を削除します。" to close then run [execute player command "/delreport %arg 1%"]
  76. format slot 17 of player with book named "&e戻る" with lore "&7クリックして報告一覧に戻ります。" to run [execute player command "/openreport"]
  77.  
  78. command /moreinfo <number>:
  79. permission: skript.admin
  80. trigger:
  81. send "&d報告対象:&e%{reports::%arg 1%}%"
  82. send "&dプレイヤー:&e%{%arg 1 - 1%.from}%"
  83. send "&d詳細情報:&e%{%arg 1 - 1%.info}%"
  84. send "&d識別ID:&e%{%arg 1 - 1%.id}%"
Advertisement
Add Comment
Please, Sign In to add comment