服务器插件/模组
一个用于轻松分享和分析你的服务器日志的模组/插件,支持通过 mclo.gs 使用。
关于 mclo.gs
mclo.gs 允许你快速分享并分析 Minecraft 服务器和客户端的日志。它会高亮显示不同的日志级别,移除 IP 地址等敏感信息,并检测常见问题以及版本信息。
功能
- 使用一条命令上传服务器日志
- 通过短链接分享日志
- 自动在设备上移除 IP 地址和系统用户名等敏感信息
- 上传其他日志和报告
- 删除已上传的日志
命令
该插件/模组包含以下命令:
| 命令 |
参数 |
描述 |
权限等级 |
权限节点 |
| mclogs |
|
分享当前服务器日志 |
2 |
mclogs |
| mclogs list | | 列出服务器日志、崩溃报告和网络协议错误报告 | 2 | mclogs.list |
| mclogs share | <file-name> | 分享特定的日志、崩溃报告或网络协议错误报告 | 2 | mclogs.share |
| mclogs delete | <log-id> | 删除从服务器共享的日志 | 2 | mclogs.delete |
对于特殊情况,可使用以下命令:
| 场景 |
命令 |
行为 |
| 模组安装在客户端侧 |
/mclogsc |
处理客户端日志 |
| 插件安装在 Velocity 代理上 |
/mclogsp 和 /mclogsv |
处理代理日志 |
| 插件安装在 BungeeCord 代理上 |
/mclogsp 和 /mclogsb |
处理代理日志 |
权限
默认情况下,玩家无法使用命令。你可以通过赋予他们所需的权限来让玩家能够访问这些命令。插件服务器的权限系统使用权限节点(permission nodes)进行细粒度的访问控制。除了其他命令外,还需要 mclogs 权限节点。
模组服务器则使用原版权限等级系统。
配置
如果你使用的是自托管的 mclo.gs 实例,或者想使用替代前端,你可以配置插件/模组以使用你的实例。
配置文件位于插件服务器的 plugins/mclogs/config.toml 和模组服务器的 config/mclogs.toml。
默认配置
# 用于上传日志的 API 的基础 URL
apiBaseUrl = "https://api.mclo.gs"
要求
本项目需要 Java 11 或更高版本才能运行,即使是在基于 Java 8 运行的 Minecraft 版本中也是如此。
Server Plugin/Mod
A mod/plugin to easily share and analyse your server logs with mclo.gs
About mclo.gs
mclo.gs allows you to quickly share and analyze logs for Minecraft servers and clients. It highlights different log levels, removes sensitive information like IP-Addresses and detects common problems as well as version information.
Features
- Upload server logs with a single command
- Share logs with a short url
- Automatic on-device removal of sensitive information like IP addresses and system usernames
- Uploading other logs and reports
- Deleting uploaded logs
Commands
The Plugin/Mod contains the following commands:
| Command |
Arguments |
Description |
Permission Level |
Permission Node |
| mclogs |
|
Share the current server log |
2 |
mclogs |
| mclogs list |
|
List server logs, crash- and network protocol error reports |
2 |
mclogs.list |
| mclogs share |
<file-name> |
Share a specific log, crash- or network protocol error report |
2 |
mclogs.share |
| mclogs delete |
<log-id> |
Delete a log that was shared from the server |
2 |
mclogs.delete |
For special cases, the following commands are available:
| Scenario |
Command |
Behavior |
| Mod installed client-side |
/mclogsc |
Handle client logs |
| Plugin installed on a Velocity proxy |
/mclogsp and /mclogsv |
Handle proxy logs |
| Plugin installed on a BungeeCord proxy |
/mclogsp and /mclogsb |
Handle proxy logs |
Permissions
Commands are not available to players by default. You can give players access to the commands by giving them the
required permissions. Plugin servers permissions use permission nodes for fine-grained access control. The mclogs
permission node is required for all other commands as well.
Modded servers use the Vanilla permission level system instead.
Configuration
If you use a self-hosted instance of mclo.gs or want to use an alternative front-end, you can configure the plugin/mod to use your instance.
The config file is located in plugins/mclogs/config.toml for plugin servers and config/mclogs.toml for modded servers.
Default configuration
# Base URL for the API used to upload logs
apiBaseUrl = "https://api.mclo.gs"
Requirements
This project requires Java 11 or higher to run, even on Minecraft versions that run on Java 8.
评论 0
登录后参与评分
还没有评论,来抢沙发吧