ChunkMonitor
ChunkMonitor 是一款 Paper 插件,通过监控区块生成情况来帮助你找出导致服务器卡顿的玩家。你是否曾疑惑为什么 TPS(每秒刻数)会下降?这款插件能实时显示谁生成的区块最多!
功能特性
- 实时监控区块生成情况。
- 显示一个 Boss 栏(标题栏),展示每分钟生成区块最多的玩家。
- Boss 栏的颜色会根据区块生成速率而变化:
- 绿色表示低生成量。
- 黄色表示中等生成量。
- 红色表示高生成量。
- 支持以可配置的间隔更新区块生成统计数据。
- 支持在玩家加入时显示 Boss 栏(如需要)。
游戏内截图
兼容性
这是一个 Paper 插件,无法在 Spigot 服务器上运行,但 Purpur 服务器可以正常使用。
除了 1.21.5 版本外,我不知道其他版本是否可用,因为这是我唯一测试过的版本。
配置
你可以通过配置文件(config.yml)调整插件的行为,该文件在启用插件后自动生成。
可用的配置选项:
-
update-interval-ticks:
- 更新区块统计数据的间隔时间(以刻为单位)。
- 默认值:
20(1秒)
-
min-display-threshold:
- 显示 Boss 栏所需的最低区块生成速率。
- 默认值:
250.0(每分钟区块数)
-
yellow-threshold:
- Boss 栏颜色变为黄色的区块生成速率阈值。
- 默认值:
500.0(每分钟区块数)
-
red-threshold:
- Boss 栏颜色变为红色的区块生成速率阈值。
- 默认值:
1000.0(每分钟区块数)
-
maxAttributionDistance:
- 玩家距离区块的最大距离,在此范围内生成该区块会被计为“最近”的玩家。
- 默认值:
50.0(方块单位)
致谢
由于这是我的第一个 Java 插件项目。
本插件是在 Paper 文档、Spigot 文档 和 ChatGPT 的帮助下创建的。(我知道这有点蠢)
版权所有 (c) 2023-2025 Techit Thawiang。除非另有说明,否则保留所有权利。
ChunkMonitor
ChunkMonitor is a Paper plugin that helps you spot players causing lag by monitoring chunk generation. Ever wonder why your TPS drops? This plugin shows you who’s generating the most chunks in real-time!
Features
- Monitors chunk generation in real-time.
- Displays a boss bar showing the player generating the most chunks per minute.
- Boss bar changes color based on the rate of chunk generation:
- Green for low generation.
- Yellow for medium generation.
- Red for high generation.
- Updates chunk generation statistics at a configurable interval.
- Supports player joining with the boss bar being displayed if necessary.
In-game picture
- Low chunk generation

- Medium chunk generation

- High chunk generation

Compatibility
This is a Paper plugin and will not work with Spigot servers, but Purpur is fine.
I don't know if any version other than 1.21.5 would work, because that's the only version I tested.
Configuration
You can adjust the plugin’s behavior using the configuration file (config.yml), which is generated upon enabling the plugin.
Available Configuration Options:
-
update-interval-ticks:
- The interval (in ticks) at which chunk statistics are updated.
- Default:
20 (1 second)
-
min-display-threshold:
- The minimum chunk generation rate required to display the boss bar.
- Default:
250.0 (chunks per minute)
-
yellow-threshold:
- The chunk generation rate at which the boss bar color changes to yellow.
- Default:
500.0 (chunks per minute)
-
red-threshold:
- The chunk generation rate at which the boss bar color changes to red.
- Default:
1000.0 (chunks per minute)
-
maxAttributionDistance:
- The maximum distance a player can be from a chunk to be counted as the "nearest" player generating the chunk.
- Default:
50.0 (blocks)
Credits
Since this is my first Java plugin project.
This plugin was created with the help of the Paper documentation, Spigot documentation and ChatGPT. (I know it's stupid)
Copyright (c) 2023-2025 Techit Thawiang. All rights reserved unless otherwise noted.
评论 0
登录后参与评分
还没有评论,来抢沙发吧