EduGuard
EduGuard 是一款适用于 Minecraft Java Edition 的 PaperMC 插件,旨在管理课程表并根据课表自动执行各种游戏内操作。它提供了诸如在特定时间自动踢出玩家、启用/禁用白名单以及根据预设的下课时间重置游戏内白天时间等功能。
功能
- 自动踢人:在下课时自动踢出玩家。
- 白名单管理:在下课前后启用和禁用白名单,以防止玩家重新加入。
- 白天时间重置:根据课程表重置游戏内的白天时间,使每次会话拥有相似的游戏体验。
- 脏话过滤:内置聊天消息和用户名的脏话过滤功能。
- 可配置设置:所有功能均可通过 YAML 配置文件进行高度自定义。
安装
- 从 Modrinth、Hangar 或 GitHub Releases 下载 EduGuard 的最新版本。
- 将
.jar 文件放入 Minecraft 服务器的 plugins/ 目录中。
- 启动服务器以生成默认配置文件。
- 通过编辑位于
plugins/EduGuard/ 目录中的 config.yml 文件来配置插件。
配置
主配置文件为 config.yml。您可以在这里启用或禁用各项功能,并设置各种参数,如下课时间、自动踢人设置、白名单设置和重置白天设置等。
示例配置
配置使用 YAML 格式。
auto-kick:
enabled: true
message: Server is now closed. Time to exit the Dojo!
before-end-of-class: 60 # seconds
show-warning: true
enable-whitelist-on-kick: true
disable-whitelist-after: 360 # seconds (six minutes)
reset-day:
enabled: true
before-end-of-class: 600 # seconds (ten minutes)
minecraft-world-name: "world"
minecraft-time: 6000 # ticks (Minecraft world time)
use-absolute-time: false
end-of-class-times:
monday:
- "15:00"
- "17:00"
tuesday:
- "15:00"
- "17:00"
# Add more days and times as needed
profanity-filter:
filter-chat: true
filter-usernames: true
prohibited-words:
- prohibited word 1
- prohibited word 2
# Add more words as needed
常见问题
关于 Minecraft 版本……?
您可以在 Modrinth、Hangar 或 GitHub Releases 上找到适用于最新 Minecraft 版本的发布包。如有需要,可提供对旧版本的支持。如果您希望看到某个 Minecraft 版本得到支持,请 提交 Issue。
v1.0.0 到 v3.1.0 的版本去哪了?
v1.0.0 至 v3.1.0 均使用了一个混乱且难以维护的旧配置系统。在 v4.0.0 中,我重命名了该项目,并认为现在是实施一些我期待已久的破坏性更改的好时机。不幸的是,虽然这些更改使得未来的编辑更加容易,但从旧配置升级却相当困难。因此,为了减少代码库中的遗留代码量,我已放弃对 v1.0.0 至 v3.1.0 版本的支持。请勿 不要 使用这些旧版本。这些旧版本中的所有功能都已包含在 v4.0.0 中,并且理应存在于所有未来版本中,因此完全没有必要去折腾那些遗留版本。
许可证
本项目基于 GPLv3 许可证开源。
EduGuard
EduGuard is a PaperMC plugin for Minecraft Java Edition designed to manage class schedules and automate various in-game actions based on those schedules. It provides features such as automatic kicking of players, enabling/disabling the whitelist, and resetting the in-game day time based on predefined end-of-class times.
Features
- Automatic Kicking: Automatically kicks players at the end of class.
- Whitelist Management: Enables and disables the whitelist around class end times to prevent rejoins.
- Day Time Reset: Resets the in-game day time based on class schedules so each session has a similar experience.
- Profanity Filter: Built in profanity filtering for chat messages and usernames.
- Configurable Settings: All features are highly configurable through a YAML configuration file.
Installation
- Download the latest release of EduGuard from either Modrinth, Hangar, or GitHub Releases.
- Place the
.jar file in your Minecraft server's plugins/ directory.
- Start your server to generate the default configuration files.
- Configure the plugin by editing the
config.yml file located in the plugins/EduGuard/ directory.
Configuration
The main configuration file is config.yml. Here you can enable or disable features and set various parameters such as class end times, auto-kick settings, whitelist settings, and reset day settings.
Example Configuration
Configuration uses YAML.
auto-kick:
enabled: true
message: Server is now closed. Time to exit the Dojo!
before-end-of-class: 60 # seconds
show-warning: true
enable-whitelist-on-kick: true
disable-whitelist-after: 360 # seconds (six minutes)
reset-day:
enabled: true
before-end-of-class: 600 # seconds (ten minutes)
minecraft-world-name: "world"
minecraft-time: 6000 # ticks (Minecraft world time)
use-absolute-time: false
end-of-class-times:
monday:
- "15:00"
- "17:00"
tuesday:
- "15:00"
- "17:00"
# Add more days and times as needed
profanity-filter:
filter-chat: true
filter-usernames: true
prohibited-words:
- prohibited word 1
- prohibited word 2
# Add more words as needed
FAQ
What about Minecraft version...?
You can find a release for the latest version of Minecraft on Modrinth, Hangar, or under GitHub Releases. Support for older version can be made available upon request. If there is a version of Minecraft you wish to see supported, submit an issue.
What happened to versions 1.0.0 to 3.1.0?
v1.0.0 through to v3.1.0 all used an old config system that was messy and difficult to maintain. In v4.0.0, I renamed the project and felt it was a good time to implement some breaking changes I've been wanting to bring about for a while now. Unfortunately, while these changes make future edits much easier, upgrading from older configs is quite difficult. As such, to reduce the amount of legacy code in the codebase, I have dropped support for versions v1.0.0 to v3.1.0. Please do not use those versions. All features from those versions are present in v4.0.0 and should exist, one way or another, in all future versions so there really is no reason to use bother with those legacy versions.
License
This project is licensed under GPLv3.
评论 0
登录后参与评分
还没有评论,来抢沙发吧