
FoxLogger
FoxLogger 是一款适用于 Minecraft 服务器(Purpur 1.21.5)的插件,允许你记录管理员命令、向 Discord 和 Telegram 发送通知,并提供统计和日志导出功能。
功能
- 将玩家和控制台命令记录到文件 (
plugins/FoxLogger/logs/admin_commands.log)
- 通过 Webhook 在 Discord 中发送通知(支持自定义玩家头像)
- 通过 Bot 在 Telegram 中发送通知
- 命令防刷屏(可配置冷却时间)
- 命令使用统计 (
/adminlog stats)
- 将日志导出为 CSV (
/adminlog export)
- 支持本地化(俄语和英语)
- 可配置时区(默认为莫斯科时间)
安装
- 下载最新版本
- 将 JAR 文件放入服务器的
plugins 文件夹
- 重启服务器
- 配置
plugins/FoxLogger/config.yml
设置
config.yml
debug: 启用调试日志 (true/false)
- Webhook 的 Discord URL
- Telegram Bot Token
- 时区(例如
Europe/Moscow)
详细信息请参阅 config.yml。
Discord
在 Discord 中创建 Webhook:服务器 → 频道设置 → 集成 → 创建 Webhook
复制 Webhook URL 并粘贴到 webhook url 字段中。
Telegram
使用 @BotFather 创建 Bot 并获取 Token
将 Bot 添加到聊天室,并通过 @GetIDsBot 获取 Chat ID
指定 chatId(topicId 可选)
命令
/adminlog reload - 重新加载配置
/adminlog toggle - 启用/禁用日志记录
/adminlog stats - 显示团队统计信息
/adminlog export <start_date> <end_date> - 导出指定日期范围的日志
权限
foxlogger.log - 记录命令(操作员默认拥有)
foxlogger.admin - 访问插件命令(操作员默认拥有)

FoxLogger
FoxLogger is a plugin for Minecraft servers (Purpur1.21.5), which allows you to log administrator commands, send notifications to Discord and Telegram, and also provides statistics and log export functions.
Features
Logging of player and console commands to the file (plugins/FoxLogger/logs/admin_commands. log)
Notifications in Discord via webhook (with a custom player avatar)
Notifications in Telegram via the bot
Anti-spam for commands (configurable cooldown)
Command usage statistics (/adminlog stats)
Export logs to CSV (/adminlog export)
Support for localizations (Russian and English)
Configurable time zone (by default - Moscow time)
Installation
Download the latest version
Place the JAR file in the plugins folder of your server
Restart the server
Configure config.yml in the plugins/FoxLogger
Setting up
config.yml
debug: Enable debugging logs (true/false)
The Discord URL of the webhook
The Telegram bot
Time zone (for example, Europe/Moscow)
Details can be found in the config.yml
Discord
Create a webhook in Discord: Server → Channel Settings → Integrations → Create a webhook
Copy the webhook URL and paste it into webhook url
Telegram
Create a bot using @BotFather and get the token
Add the bot to the chat and get the chat-id via @GetIDsBot
Specify chatId (topicId optional)
Commands
/adminlog reload - Reload the configuration
/adminlog toggle - Enable/disable logging
/adminlog stats - Show team statistics
/adminlog export <start_date> <end_date>
Rights
foxlogger.log - Log commands (default for operators)
foxlogger.admin - Access to plugin commands (default for\operators)
评论 0
登录后参与评分
还没有评论,来抢沙发吧