NexRules 会在玩家进入世界前展示欢迎对话框。玩家可以阅读规则、勾选同意复选框并确认,或点击「离开」以断开连接。已经接受当前规则的玩家可正常加入服务器。
设置你的规则
- 在
rules.yml 中编写规则,并通过箭头导航和页码计数器将其拆分为多页。你可以要求玩家在确认前浏览每一页。
- 已经在其他地方托管了规则?将源设置为
url 并指向你的网站或 Discord。
- 在
config.yml 和 messages.yml 中自定义欢迎文本、颜色、按钮和布局。默认语言为英语,同时附带捷克语作为可选翻译。
无需手动重置即可更新规则
编辑 rules.yml,使用 /nexrules preview 检查草稿,然后运行 /nexrules publish。发布操作会备份文件并增加规则版本号。回归的玩家会被要求接受更新,并可以查看变更摘要。
命令与权限
| 命令 |
功能 |
权限 |
/rules |
打开规则页面 |
所有人 |
/nexrules 或 /nrules |
打开欢迎屏幕 |
所有人 |
/nexrules preview [first|changes] [locale] |
预览草案协议或变更摘要 |
nexrules.preview |
/nexrules publish [new-version] |
备份并发布新的规则版本 |
nexrules.publish |
/nexrules status <player|uuid> |
查看玩家接受的版本及时间 |
nexrules.status |
/nexrules reset <player|uuid> |
要求玩家在下次登录时重新同意 |
nexrules.reset |
/nexrules reload |
重载配置而不提升规则版本 |
nexrules.reload |
| 更新通知 |
接收兼容稳定版的更新通知 |
nexrules.update |
管理员权限默认为服务器操作员(OP)。
更新检查与指标
NexRules 会在启动时以及执行 /nexrules reload 后检查 Modrinth。它会在控制台向拥有 nexrules.update 权限的玩家报告兼容的稳定更新。在 config.yml 中设置 update-checker.enabled: false 可禁用检查,或设置 update-checker.notify-admins: false 仅在控制台中保留通知。
NexRules 使用标准的 bStats 指标。在 plugins/bStats/config.yml 中设置 enabled: false 可选择退出。
安装
将 JAR 文件放入 plugins/ 目录,启动服务器并编辑 plugins/NexRules/rules.yml。运行 /nexrules reload 应用初始设置。
支持 Minecraft 1.21.7 至 26.3 的 Paper 和 Purpur 服务器(需包含 Dialog API 构建版)。Folia 支持从 1.21.8 开始。Minecraft 1.21.x 请使用 Java 21,26.x 请使用 Java 25。Folia 26.3 已在 Alpha 构建版上测试通过。
NexRules shows new players a welcome dialog before they enter the world. They can read the rules, tick the agreement checkbox and confirm, or click Leave to disconnect. Players who already accepted the current rules can join as usual.
Set up your rules
- Write rules in
rules.yml and split them into pages with arrow navigation and a page counter. You can require players to open every page before confirming.
- Already host your rules elsewhere? Set the source to
url and point it at your website or Discord.
- Change the welcome text, colours, buttons and layout in
config.yml and messages.yml. English is the default, and Czech is included as an optional translation.
Update rules without resetting everyone by hand
Edit rules.yml, check the draft with /nexrules preview, then run /nexrules publish. Publishing backs up the file and increases the rules version. Returning players are asked to accept the update and can see a summary of what changed.
Commands and permissions
| Command |
What it does |
Permission |
/rules |
Open the rules |
Everyone |
/nexrules or /nrules |
Open the welcome screen |
Everyone |
/nexrules preview [first|changes] [locale] |
Preview the draft agreement or change summary |
nexrules.preview |
/nexrules publish [new-version] |
Back up and publish a new rules version |
nexrules.publish |
/nexrules status <player|uuid> |
Check which version a player accepted and when |
nexrules.status |
/nexrules reset <player|uuid> |
Ask a player to agree again on their next login |
nexrules.reset |
/nexrules reload |
Reload configuration without bumping the rules version |
nexrules.reload |
| Update notifications |
Receive notices about compatible stable releases |
nexrules.update |
Staff permissions default to server operators.
Update checks and metrics
NexRules checks Modrinth at startup and after /nexrules reload. It reports compatible stable updates in the console and to players with nexrules.update. Set update-checker.enabled: false in config.yml to disable the check, or set update-checker.notify-admins: false to keep notices in the console.
NexRules uses standard bStats metrics. Set enabled: false in plugins/bStats/config.yml to opt out.
Installation
Drop the JAR into plugins/, start the server and edit plugins/NexRules/rules.yml. Run /nexrules reload to apply your initial setup.
Supports Paper and Purpur from Minecraft 1.21.7 through 26.3 on builds with the Dialog API. Folia support starts with 1.21.8. Use Java 21 for Minecraft 1.21.x and Java 25 for 26.x. Folia 26.3 was tested on an alpha build.
评论 0
登录后参与评分
还没有评论,来抢沙发吧