## 公共插件在网络上:
- [SpigotMC](https://www.spigotmc.org/resources/htgloggers-public-api.119346/)
- [Curseforge](https://www.curseforge.com/minecraft/bukkit-plugins/htgloggers-beta-public-api-beta)
## 文档
我们刚刚发布了插件的文档,欢迎访问[HTG Docs 关于 HTGLoggers 的页面](https://htg-docs.gitbook.io/htg-docs/)。
## HTGLoggers
HTGLoggers 是一款功能强大且易于使用的 Spigot 服务器日志插件,非常适合需要详细记录玩家活动和服务器事件的管理员。
## 功能
- **加入/退出玩家日志**: 自动记录玩家加入或离开服务器。
- **聊天和命令日志**: 记录所有聊天消息和使用的命令,便于监控。
- **可定制的日志格式**: 可以配置日志格式,包括时间戳和消息样式。
- **易于集成**: 可与 HTGClient 等其他插件无缝协作,以更好地管理事件。
- **轻量级和高效**: 针对性能进行了优化,对服务器性能的影响最小。
- **用于管理文件的 API**: 提供 API,用于创建日志文件并将日志直接发送到这些文件。
## 配置
轻松控制要记录哪些事件以及如何在 `config.yml` 文件中显示:
```
logging:
enabled: true # 是否启用日志记录
format:
timestamp_format: "yyyy-MM-dd HH:mm:ss" # 时间戳格式
join_format: "[{time}] 玩家加入: {player}"
quit_format: "[{time}] 玩家离开: {player}"
chat_format: "[{time}] 聊天 - {player}: {message}"
command_format: "[{time}] 命令 - {player}: {command}"
teleport_format: "[{time}] 传送 - {player} 到 {location}" # 新的传送日志格式
advancement_format: "[{time}] 成就 - {player}: {advancement}" # 新的成就日志格式
block_break_format: "[{time}] 破坏方块 - {player}: {block}" # 新的方块破坏日志格式
events:
log_join: true # 记录玩家加入
log_quit: true # 记录玩家退出
log_chat: true # 记录聊天消息
log_commands: true # 记录命令使用
log_teleport: true # 记录玩家传送
log_advancement: true # 记录玩家获得成就
log_block_break: true # 记录玩家破坏方块
```
了解更多详情,请访问 [HTGLogger 维基百科](https://github.com/WaleonGames/htgloggers/wiki) 和 [HTG Docs 关于 HTGLoggers 的页面](https://htg-docs.gitbook.io/htg-docs/)。

