? Rapid Whitelist
适用于现代 Fabric 服务器的高性能、支持热重载的白名单系统。
Rapid Whitelist 完全取代了原版 Minecraft 的白名单功能,提供异步 I/O、热重载以及高级速率限制。它专为需要强大访问控制且不希望主线程受到性能影响的服务器而设计。
? 为什么要使用此模组?
- ⚡ 零延迟:所有白名单操作(添加/移除/检查)均使用异步 I/O,以保持你的服务器 TPS 处于高位。
- ? 热重载:可通过手动编辑或命令修改
whitelist.json,更改将立即生效,无需重启。
- ?️ 速率限制:内置防命令滥用保护,针对添加/移除玩家及重载操作进行限制。
- ? 开发者 API:包含
CustomWhitelistAPI,便于与其他模组或插件集成。
- ? 完全替换:完全绕过原版白名单逻辑,实现全面控制。
✨ 功能特性
? 核心白名单
- 异步存储:玩家数据存储在
config/customwhitelist/whitelist.json 中,并以异步方式加载。
- UUID 与名称支持:通过 GameProfile(UUID + 名称)进行白名单管理,确保安全性。
- 即时更新:命令会立即更新缓存;手动文件编辑则通过文件监听器进行检测。
⚙️ 管理与控制
- 完整命令套件:
/rapidwhitelist add、remove、list、enable、disable、reload。
- 可配置消息:在
config.json 中自定义踢出消息和反馈文本。
- 权限级别:限制特定 OP 等级才能使用命令(默认:3 级)。
?️ 防护机制
- 速率限制:可配置每分钟允许添加/移除的玩家数量。
- 日志记录:详细记录被拒绝的登录尝试和管理操作。
? 命令
管理员命令
(默认需要 OP 3 级)
/rapidwhitelist add <player> - 将玩家添加到白名单。
/rapidwhitelist remove <player> - 从白名单中移除玩家。
/rapidwhitelist list - 列出所有已列入白名单的玩家。
/rapidwhitelist reload - 从磁盘重新加载配置和白名单数据。
/rapidwhitelist enable - 启用白名单强制模式。
/rapidwhitelist disable - 禁用白名单(允许所有人加入)。
⚙️ 配置
主配置文件 config/customwhitelist/config.json 控制着模组行为:
{
"enableWhitelist": true,
"commandPermissionLevel": 3,
"storageMode": "json",
"messages": {
"kickMessage": "You are not whitelisted on this server.",
"whitelistEnabled": "Whitelist has been enabled.",
"whitelistDisabled": "Whitelist has been disabled."
},
"rateLimits": {
"addPerMinute": 10.0,
"removePerMinute": 10.0,
"reloadCooldownMs": 5000
}
}
如需额外的 Minecraft 版本支持,请通过我的 Discord 服务器联系我(链接如下):
-- 这是我们的 SMP 服务器,上面有我所有的模组……来试试我们的服务器吧?谢谢!
[免责声明:本项目的部分内容是在 PhaseZero Labs 的工作流程中,借助 AI 辅助工具开发的。]
? Rapid Whitelist
A high-performance, hot-reloadable whitelist system for modern Fabric servers.
Rapid Whitelist replaces the vanilla Minecraft whitelist entirely, offering asynchronous I/O, hot-reloading, and advanced rate limiting. It is designed for servers that need a robust access control system without the performance hit of the main thread.
? Why Use This Mod?
- ⚡ Zero Lag: All whitelist operations (add/remove/check) use async I/O to keep your server TPS high.
- ? Hot-Reloadable: Edit
whitelist.json manually or via command, and changes apply instantly without restarting.
- ?️ Rate Limiting: Built-in protection against command spam for adding/removing players and reloading.
- ? Developer API: Includes a
CustomWhitelistAPI for easy integration with other mods or plugins.
- ? Complete Replacement: Fully bypasses the vanilla whitelist logic for total control.
✨ Features
? Core Whitelist
- Async Storage: Player data is stored in
config/customwhitelist/whitelist.json and loaded asynchronously.
- UUID & Name Support: Whitelists by GameProfile (UUID + Name) for security.
- Instant Updates: Commands update the cache immediately; manual file edits are detected via file watcher.
⚙️ Management & Control
- Full Command Suite:
/rapidwhitelist add, remove, list, enable, disable, reload.
- Configurable Messages: Customize kick messages and feedback text in
config.json.
- Permission Levels: Restrict commands to specific OP levels (default: Level 3).
?️ Protection
- Rate Limits: Configurable limits on how many players can be added/removed per minute.
- Logging: detailed logs for denied joins and administrative actions.
? Commands
Admin Commands
(Requires OP Level 3 by default)
/rapidwhitelist add <player> - Add a player to the whitelist.
/rapidwhitelist remove <player> - Remove a player from the whitelist.
/rapidwhitelist list - List all whitelisted players.
/rapidwhitelist reload - Reload config and whitelist data from disk.
/rapidwhitelist enable - Enable the whitelist enforcement.
/rapidwhitelist disable - Disable the whitelist (allow everyone).
⚙️ Configuration
The main configuration file config/customwhitelist/config.json controls behavior:
{
"enableWhitelist": true,
"commandPermissionLevel": 3,
"storageMode": "json",
"messages": {
"kickMessage": "You are not whitelisted on this server.",
"whitelistEnabled": "Whitelist has been enabled.",
"whitelistDisabled": "Whitelist has been disabled."
},
"rateLimits": {
"addPerMinute": 10.0,
"removePerMinute": 10.0,
"reloadCooldownMs": 5000
}
}
For additional Minecraft version support, contact me at my discord server(link bellow):
-- our SMP with all my mods on it...test our server out will ya? thx!
[DISCLAIMER: Portions of this project were developed with AI‑assisted tools as part of PhaseZero Labs’ workflow.]
评论 0
登录后参与评分
还没有评论,来抢沙发吧