Move the report commands into exp_reports

The create-report, get-reports and clear-reports commands now live in the
plugin's own module next to the functions they call, with their locale.
The permissions keep their exp_scenario.command names because the command
authority derives them from the command name.

The Discord report alert in exp_scenario is gone since exp_reports posts to
its own webhook. The shared add_player stub takes an options table with
connected and admin defaulting to true and false, replacing the copy in
the exp_reports test environment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bbassieandClaude Opus 5.5 committed 2026-09-26 23:22:18 +00:00
1 parent e47f41d440
commit 9ddb7b362b
20 files changed
+95 -155

No files matched your search

+12
View File
@@ -8,3 +8,15 @@ list-all-entry=__1__: __2__ __plural_for_parameter__2__{1=report|rest=reports}__
list-all-none=No players have reports against them.
deleted=__1__ had __2__ __plural_for_parameter__2__{1=report|rest=reports}__ removed by __3__.
deleted-none=__1__ has no reports against them.
[exp-reports_commands]
description-create=Reports a player and notifies moderators
description-get=Gets a list of all reports that a player has on them. If no player then lists all players and the number of reports on them.
description-clear=Clears all reports from a player or just the report from one player.
arg-player-create=Player you want to report.
arg-player-get=Player to get the reports of.
arg-player-clear=Player to clear the reports of.
arg-reason=Reason you want to report this player.
arg-from-player=Only remove the report from this player.
player-immune=This player can not be reported.
self-report=You cannot report yourself.
+12
View File
@@ -8,3 +8,15 @@ list-all-entry=__1__: __2__
list-all-none=沒有用戶被舉報。
deleted=__1__ 被舉報的 __2__ 個紀錄已被 __3__ 清除。
deleted-none=__1__ 沒有被舉報的紀錄。
[exp-reports_commands]
description-create=檢舉用戶並通知管理員。
description-get=取得用戶的報告清單。如果沒有設定用戶,則列出所有用戶以及有關他們的報告數量。
description-clear=清除一名用戶的所有報告或僅清除一名用戶的報告。
arg-player-create=用戶
arg-player-get=用戶
arg-player-clear=用戶
arg-reason=原因
arg-from-player=用戶
player-immune=用戶不能被舉報
self-report=你不能舉報自己。
+12
View File
@@ -8,3 +8,15 @@ list-all-entry=__1__: __2__
list-all-none=沒有用戶被舉報。
deleted=__1__ 被舉報的 __2__ 個紀錄已被 __3__ 清除。
deleted-none=__1__ 沒有被舉報的紀錄。
[exp-reports_commands]
description-create=檢舉用戶並通知管理員。
description-get=取得用戶的報告清單。如果沒有設定用戶,則列出所有用戶以及有關他們的報告數量。
description-clear=清除一名用戶的所有報告或僅清除一名用戶的報告。
arg-player-create=用戶
arg-player-get=用戶
arg-player-clear=用戶
arg-reason=原因
arg-from-player=用戶
player-immune=用戶不能被舉報
self-report=你不能舉報自己。