MineCourt
MineCourt 是一款面向 Paper 服务器的轻量级法庭系统插件。玩家可以对其他玩家提交诉讼案件,管理员则可以指派法官并结案。
功能
- 输入玩家名称和理由来提交法庭案件。
- 当案件提交时,通知所有在线玩家。
- 向被指派的法官发送包含案件理由的额外通知。
- 通知被告必须在 3–5 分钟内出庭。
- 浏览所有未结案件,包括原告、被告、理由和提交日期。
- 指派一名法官。
- 关闭并从列表中移除案件。
- 在服务器重启后保留法官信息和所有未结案件的数据。
命令
/court 和 /суд 是相同的命令别名。
| 命令 |
描述 |
权限 |
/court create <player> <reason> |
对某名玩家提交法庭案件。 |
所有人 |
/court view |
查看所有未结的法庭案件。 |
所有人 |
/court close <number> |
关闭并永久移除一个案件。使用 /court view 显示的案件编号。 |
minecourt.setjudge / OP |
/court setjudge <player> |
将某名玩家指派为法庭法官。 |
minecourt.setjudge / OP |
通知
当案件创建时:
- 所有在线玩家收到:
Player <plaintiff> filed a court case against <defendant>.
- 被指派的法官收到带有案件理由的相同消息。
- 被告收到:
A court case has been filed against you! Appear within 3–5 minutes!
当案件关闭时,所有在线玩家都会收到一条通知。
权限
| 权限 |
描述 |
默认值 |
minecourt.setjudge |
允许指派法官并关闭案件。 |
OP |
语言
在 plugins/MineCourt/config.yml 中设置 Languale 值以选择插件语言:
Languale: RU
可用值为 RU 和 EN。首次启动时,MineCourt 会在其插件文件夹中创建 RU.yml 和 EN.yml。编辑所选的语言文件来自定义任何面向玩家的消息。更改语言或消息后请重启服务器。
安装
- 从 Modrinth 发布页面或 GitHub Actions 制品下载
MineCourt.jar。
- 将其放入 Paper 服务器的
plugins 文件夹中。
- 启动或重启服务器。
- 使用
/court setjudge <player> 指派一名法官。
要求
数据存储
MineCourt 将被指派的法官和未结的法庭案件存储在以下位置:
plugins/MineCourt/config.yml
在 create 或 setjudge 中指定的玩家必须处于在线状态,或者至少曾加入过服务器一次。
从源码构建
此仓库包含一个 GitHub Actions 工作流,会在每次推送(push)和拉取请求(pull request)时构建插件。编译后的 JAR 文件会作为 MineCourt 工作流制品上传。
MineCourt
MineCourt is a lightweight court system plugin for Paper servers. Players can submit court cases against other players, while administrators can appoint a judge and close cases.
Features
- Submit a court case with a player name and reason.
- Notify every online player when a case is submitted.
- Send the appointed judge an additional notification containing the reason.
- Notify the defendant that they must appear in court within 3–5 minutes.
- Browse all open cases, including plaintiff, defendant, reason, and submission date.
- Appoint a judge.
- Close and remove cases from the list.
- Persist the judge and all open cases across server restarts.
Commands
/court and /суд are identical command aliases.
| Command |
Description |
Permission |
/court create <player> <reason> |
Submit a court case against a player. |
Everyone |
/court view |
View all open court cases. |
Everyone |
/court close <number> |
Close and permanently remove a case. Use its number from /court view. |
minecourt.setjudge / OP |
/court setjudge <player> |
Appoint a player as the court judge. |
minecourt.setjudge / OP |
Notifications
When a case is created:
- All online players receive:
Player <plaintiff> filed a court case against <defendant>.
- The appointed judge receives the same message with the case reason.
- The defendant receives:
A court case has been filed against you! Appear within 3–5 minutes!
When a case is closed, every online player receives a notification.
Permissions
| Permission |
Description |
Default |
minecourt.setjudge |
Allows appointing a judge and closing cases. |
OP |
Language
Set the Languale value in plugins/MineCourt/config.yml to choose the plugin language:
Languale: RU
Available values are RU and EN. On first launch, MineCourt creates RU.yml and EN.yml in its plugin folder. Edit the selected language file to customise any player-facing message. Restart the server after changing the language or messages.
Installation
- Download
MineCourt.jar from the Modrinth release or GitHub Actions artifact.
- Place it in your Paper server's
plugins folder.
- Start or restart the server.
- Appoint a judge with
/court setjudge <player>.
Requirements
Data storage
MineCourt stores the appointed judge and open court cases in:
plugins/MineCourt/config.yml
Players specified in create or setjudge must be online or have joined the server at least once.
Building from source
This repository includes a GitHub Actions workflow that builds the plugin on every push and pull request. The compiled JAR is uploaded as the MineCourt workflow artifact.
评论 0
登录后参与评分
还没有评论,来抢沙发吧