Server Rules

模组

· 作者 DrEmixam

该模组旨在通过向新玩家展示强制性的规则界面来执行服务器规则。玩家必须在阅读并接受规则后才能加入游戏,从而确保友好且尊重的社区环境。

0 本站下载 0 关注 更新于 1 年前

最新 1.0-SNAPSHOT · 1.20.1 · Fabric

一键开服(送7天)

Minecraft Fabric 服务器规则模组

Server Rules 是一款适用于 Minecraft Fabric 的模组,旨在通过向新玩家展示强制性的规则界面来执行服务器规则。玩家必须在加入游戏前阅读并接受这些规则,从而确保社区环境友好且相互尊重。

功能特性

规则系统

  • 自定义规则界面:自动向新玩家展示服务器规则
  • 强制验证:玩家必须接受规则才能进行游戏
  • 图形化界面:包含滚动条、复选框和可自定义按钮的界面

一个标题为“Server Rules”的 Minecraft 服务器规则对话框。规则内容如下:1. 尊重其他玩家及其建筑作品。2. 禁止破坏、盗窃或故意破坏。3. 禁止使用冒犯性语言或骚扰他人。4. 尊重受保护区域和私人财产。5. 禁止作弊、黑客攻击或利用漏洞。6. 听从并尊重管理员和管理员组。底部有一行红色警告:“违反这些规则可能会导致警告。”下方有一个标有“I understand and accept the rules(我理解并接受规则)”的复选框,以及两个分别标有“I Accept(我接受)”和“I Decline(我拒绝)”的按钮。

同一个对话框,但玩家已向下滚动,展示了更多的服务器规则以及违反规则的更新后果。出现了一条新的黄色消息,感谢玩家帮助维护友好的社区环境,表示接受规则的复选框现在已被勾选。

依赖要求

  • Minecraft: 版本 1.20.1 + Fabric

安装方法

  1. 安装模组:

    • 将 serverrules-1.0-SNAPSHOT.jar 文件放入 mods/ 文件夹中
  2. 启动服务器:

    • 模组将在首次启动时自动配置自身
    • 配置文件将生成于 config/serverrules/config.yml

配置说明

config/serverrules/config.yml 文件允许您自定义配置内容

rules:
   enabled: true
   title: §6§lServer Rules
   content: |
      §b§lWelcome to our community server!

      §fBy playing on this server, you agree to follow these rules:

      §a1. §fRespect other players and their builds
      §a2. §fNo griefing, stealing or intentional destruction
      §a3. §fNo offensive language or harassment
      §a4. §fRespect protected areas and private properties
      §a5. §fNo cheating, hacking or bug exploitation
      §a6. §fListen to and respect moderators and administrators

      §c§lBreaking these rules may result in a warning,
      §c§ltemporary suspension or permanent ban.

      §e§lThank you for helping maintain a friendly community!
   accept_button: I Accept
   decline_button: I Decline
   checkbox_text: I understand and accept the rules
   declined_message: You must accept the rules to play on this server.
   accepted_message: You have accepted the server rules. Welcome!
   sending_error_message: 'Error sending rules: %error%'

使用方法

当新玩家连接到服务器时:

  1. 自动显示:规则界面会自动弹出
  2. 强制阅读:玩家必须滚动至底部
  3. 验证选项:完整阅读后,复选框变为可用状态
  4. 接受操作:玩家必须勾选该框并点击“I Accept(我接受)”
  5. 记忆保存:接受状态会被保存,无需重复验证

许可证

本项目采用 AGPL-3.0 许可证授权 - 详情请参阅 LICENSE 文件。

作者

DrEmixam - 主要开发者

支持

如需报告错误或请求新功能,请在项目仓库中创建 Issue。


你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源