一个允许玩家控制生物生成的Spigot插件。
## 概述
TotemGuard 是一个轻量级的反作弊插件,旨在检测玩家使用 AutoTotem。 它异步运行以
最大限度地减少服务器影响,并提供广泛的可配置性,使用户能够根据自己的
特定需求定制插件。
### 先决条件
TotemGuard 需要 [PacketEvents](https://modrinth.com/plugin/packetevents) 库才能运行。 确保它已
安装在你的服务器上。
### 赞助商
[](https://www.ej-technologies.com/jprofiler)
## 目录
- [展示](#showcase)
- [支持的平台和版本](#supported-platforms--versions)
- [检查](#checks)
- [功能](#features)
- [命令](#commands)
- [权限节点](#permission-nodes)
- [安装](#installation)
- [鸣谢](#credits)
- [许可](#license)
## 展示

## 支持的平台和版本
| 平台 | 支持的版本 |
|---------------------------------|--------------------|
| Paper, Folia 和相关分支 | 1.20 - 1.21.5 |
## 检查
有关检查的更详细说明,请参见 [wiki!](https://github.com/Bram1903/TotemGuard/wiki/Checks)
### AutoTotem
- **AutoTotemA** - 点击时间差
- **AutoTotemB** - 不可能的标准偏差
- **AutoTotemC** - 不可能的平均标准偏差
- **AutoTotemD** - 疑似的重新保护符数据包序列
- **AutoTotemE** - 不可能的低异常值
- **AutoTotemF** - 在库存关闭期间无效的交互
### BadPackets
- **BadPacketsA** - 在 mod 配置频道中选择退出消息
- **BadPacketsB** - 禁止的客户端品牌
- **BadPacketsC** - 相同的槽位更改数据包
### ManualTotem
- **ManualTotemA** - 移除保护符后更换之间的时间差
## 功能
- **性能** - 异步操作可确保对服务器性能的影响最小。
- **数据库支持** - 与 MySQL 和 SQLite 兼容。
- **Folia 集成** - 支持 [Folia](https://papermc.io/software/folia) 进行区域化多线程。
- **Webhook** - 将警报和惩罚发送到 Discord webhook。
- **高度可配置** - 可以在运行时调整几乎每个设置以满足服务器的需求。
- **更新检查器** - 启动时自动检查更新。
- **绕过权限** - 允许具有 `TotemGuard.Bypass` 权限的玩家绕过检查。
- **跨服务器警报** - 通过插件消息或
Redis 轻松在多个服务器之间发送和检索警报。
- **基岩版异常** - 自动忽略基岩版玩家以防止误报。
## 命令
- `/totemguard` 或 `/tg` - TotemGuard 的主命令。
- `/totemguard reload` - 重新加载插件配置。
- `/totemguard alerts` - 切换玩家的警报。
- `/totemguard check ` - 检查玩家是否使用了 AutoTotem。
- `/totemguard alerts ` - 切换另一名玩家的警报。
- `/totemguard profile` - 显示玩家的资料。
- `/totemguard stats` - 显示插件统计信息。
- `/totemguard clearlogs` - 清空日志。
- `/totemguard track/untrack ` - 跟踪玩家。
- `/totemguard top` - 显示前 10 名违规者。
- `/totemguard manualban ` - 手动封禁玩家。
- `/totemguard database trim` - 修剪数据库。
- `/totemguard database clear` - 清空数据库。
## 权限节点
操作员 (OP) 默认拥有这些权限,不包括 `TotemGuard.Debug`:
- `TotemGuard.*` - 访问所有 TotemGuard 权限。
- `TotemGuard.Staff` - 访问 `/totemcheck`、`/totemguard alerts` 和 `/totemguard profile` 命令。
- `TotemGuard.Databases.*` - 访问所有数据库相关的命令。
- `TotemGuard.Reload` - 访问 `/totemguard reload` 命令。
- `TotemGuard.Check` - 访问 `/totemcheck` 命令.
- `TotemGuard.Alerts` - 访问 `/totemguard alerts` 命令。
- `TotemGuard.Alerts.Others` - 切换其他玩家的警报。
- `TotemGuard.Profile` - 访问 `/totemguard profile` 命令.
- `TotemGuard.Stats` - 访问 `/totemguard stats` 命令.
- `TotemGuard.ClearLogs` - 访问 `/totemguard clearlogs` 命令。
- `TotemGuard.Track` - 访问 `/totemguard track` 命令。
- `TotemGuard.Bypass` - 绕过插件的检查。
- `TotemGuard.Update` - 接收更新通知。
- `TotemGuard.Top` - 访问 `/totemguard top` 命令。
- `TotemGuard.ManualBan` - 访问 `/totemguard manualban` 命令。
- `TotemGuard.Database.Trim` - 访问 `/totemguard database trim` 命令。
- `TotemGuard.Database.Clear` - 访问 `/totemguard database clear` 命令。
- `TotemGuard.Debug` - 查看调试消息。
## 安装
1. **先决条件**: 确保安装了 [PacketEvents](https://modrinth.com/plugin/packetevents)。
2. **下载**: 从
[GitHub 发布页面](https://github.com/Bram1903/TotemGuard/releases/latest) 获取最新版本。
3. **安装**: 将插件 JAR 文件放入服务器的 `plugins` 目录中。
4. **配置**: 如有必要,自定义 `config.yml` 文件。
5. **重新加载**: 使用 `/totemguard reload` 应用更改。
## 鸣谢
**维护者: [@OutDev](https://github.com/OutDev0)**
因其富有创造力的想法和维护项目所做的奉献努力。
## 许可
本项目采用 [GPL3 许可](LICENSE) 许可。
## 功能
- **性能** - 异步操作可确保对服务器性能的影响最小。
- **数据库支持** - 与 MySQL 和 SQLite 兼容。
- **Folia 集成** - 支持 [Folia](https://papermc.io/software/folia) 进行区域化多线程。
- **Webhook** - 将警报和惩罚发送到 Discord webhook。
- **高度可配置** - 可以在运行时调整几乎每个设置以满足服务器的需求。
- **更新检查器** - 启动时自动检查更新。
- **绕过权限** - 允许具有 `TotemGuard.Bypass` 权限的玩家绕过检查。
- **跨服务器警报** - 通过插件消息或
Redis 轻松在多个服务器之间发送和检索警报。
- **基岩版异常** - 自动忽略基岩版玩家以防止误报。
- **BetterReload 支持** - 与 [BetterReload](https://modrinth.com/plugin/betterreload) 集成,可实现无缝
配置重新加载。
## 命令
- `/totemguard` 或 `/tg` - TotemGuard 的主命令。
- `/totemguard reload` - 重新加载插件配置。
- `/totemguard alerts` - 切换玩家的警报。
- `/totemguard check ` - 检查玩家是否使用了 AutoTotem。
- `/totemguard alerts ` - 切换另一名玩家的警报。
- `/totemguard profile` - 显示玩家的资料。
- `/totemguard stats` - 显示插件统计信息。
- `/totemguard clearlogs` - 清空日志。
- `/totemguard track/untrack ` - 跟踪玩家。
- `/totemguard top` - 显示前 10 名违规者。
- `/totemguard database trim` - 修剪数据库。
- `/totemguard database clear` - 清空数据库。
## 权限节点
操作员 (OP) 默认拥有这些权限,不包括 `TotemGuard.Debug`:
- `TotemGuard.*` - 访问所有 TotemGuard 权限。
- `TotemGuard.Staff` - 访问 `TotemGuard.Check`、`TotemGuard.Alerts` 和 `TotemGuard.Profile`。
- `TotemGuard.Databases.*` - 访问所有数据库相关的命令。
- `TotemGuard.Reload` - 访问 `/totemguard reload` 命令。
- `TotemGuard.Check` - 访问 `/totemcheck` 命令。
- `TotemGuard.Alerts` - 访问 `/totemguard alerts` 命令。
- `TotemGuard.Alerts.Others` - 切换其他玩家的警报。
- `TotemGuard.Profile` - 访问 `/totemguard profile` 命令。
- `TotemGuard.Stats` - 访问 `/totemguard stats` 命令。
- `TotemGuard.ClearLogs` - 访问 `/totemguard clearlogs` 命令。
- `TotemGuard.Track` - 访问 `/totemguard track` 命令。
- `TotemGuard.Bypass` - 绕过插件的检查。
- `TotemGuard.Update` - 接收更新通知。
- `TotemGuard.Top` - 访问 `/totemguard top` 命令。
- `TotemGuard.Database.Trim` - 访问 `/totemguard database trim` 命令。
- `TotemGuard.Database.Clear` - 访问 `/totemguard database clear` 命令。
- `TotemGuard.Debug` - 查看调试消息。
## 安装
1. **先决条件**: 确保安装了 [PacketEvents](https://modrinth.com/plugin/packetevents)。
2. **下载**: 从
[GitHub 发布页面](https://github.com/Bram1903/TotemGuard/releases/latest) 获取最新版本。
3. **安装**: 将插件 JAR 文件放入服务器的 `plugins` 目录中。
4. **配置**: 如有必要,自定义 `config.yml` 文件。
5. **重新加载**: 使用 `/totemguard reload` 应用更改。
## 鸣谢
**维护者: [@OutDev](https://github.com/OutDev0)**
因其富有创造力的想法和维护项目所做的奉献努力。
### 特别感谢我们的贡献者
- **[@Retrooper](https://github.com/retrooper)**
因开发 [PacketEvents](https://github.com/retrooper/packetevents),该库是项目的成功的基础。
- **[@MattMX](https://github.com/Matt-MX)**
因提供服务器访问权限并贡献 PvPHub [https://github.com/PvPHubLLC](https://github.com/PvPHubLLC) 通过有价值的见解。
## 许可
本项目采用 [GPL3 许可](LICENSE) 许可。