ServerCleaner
ServerCleaner 是一款轻量级、注重性能的 Minecraft 插件,旨在在服务器活跃度较低或实体数量过多时自动清理和优化你的服务器。无论你是运行繁忙的生存多人游戏(SMP)还是创造服务器,ServerCleaner 都能通过智能清理系统和实体控制来有效缓解卡顿问题。
功能
? 智能内存转储
在无玩家在线的空闲时段,定期执行内存转储以降低内存占用。
?️ 自动物品清理
自动移除多余的掉落物,从而减少实体卡顿。
⚙️ 漏斗区块限制
控制每个区块内的漏斗数量,以减少与漏斗相关的卡顿。
? 经验球合并
合并附近的经验球以减少卡顿,并实现经验球的即时拾取。
配置
config.yml
##############################################################
## 警告:本插件需要重启服务器才能应用配置更改!请确保重启 ##
## 服务器以使更改生效。 ##
##############################################################
# 配置无玩家在线时的内存转储行为。
# 这有助于避免在不活跃期间内存占用过高。
memory-dump:
enabled: true
# 定义内存转储的频率(以秒为单位)。
frequency: 300
# 启用自动清理掉落物以减少实体卡顿。
# 通过移除多余实体帮助保持服务器流畅运行。
item-cleanup:
enabled: true
# 定义清除掉落物的频率(以秒为单位)。
frequency: 300
# 在清除掉落物之前向玩家显示的警告消息。
warning: "&c{} 秒后将清除掉落物。"
# 物品清除后显示的消息。
cleared: "&c已清除 {} 个掉落物。"
# 指定不应自动清理掉落物的世界。
exempt:
- "example_world"
# 限制每个区块可放置的漏斗数量。
# 有助于减少漏斗过多的区域对服务器的负载。
hopper-limit:
enabled: true
# 每个区块允许的最大漏斗数量。
chunk-limit: 10
# 当玩家尝试放置超过限制的漏斗时显示的消息。
message: "&c你已达到每个区块最多 {} 个漏斗的限制。"
# 合并经验球以减少服务器负载。
# 当玩家拾取一个经验球时,即时收集附近的经验球。
clumps:
enabled: true
# 定义经验球合并的频率(以秒为单位)。
merge-frequency: 10
# 定义经验球与其他经验球合并所需的最小经验值。
minimum-merge-xp: 5
# 定义经验球合并的范围(以方块为单位)。
merge-radius: 2.5
# 定义玩家即时收集经验球的范围(以方块为单位)。
instant-collect-radius: 1.5
如果你觉得这个项目有用,欢迎在 GitHub 上给它点个 Star!
本项目遵循 MIT 许可证。
ServerCleaner
ServerCleaner is a lightweight, performance-oriented Minecraft plugin designed to automatically clean and optimize your server during low activity or high-entity situations. Whether you're running a bustling SMP or a creative server, ServerCleaner helps keep lag at bay with smart cleanup systems and entity controls.
Features
? Smart Memory Dumping
Reduce memory usage during idle times by periodically dumping memory when no players are online.
?️ Automatic Item Cleanup
Automatically removes excess dropped items to minimize entity lag.
⚙️ Hopper Per-Chunk Limits
Control the number of hoppers in each chunk to reduce hopper-related lag.
? Experience Orb Clumping
Merges nearby XP orbs to reduce lag and enables instant pickup of XP.
Configuration
config.yml
##############################################################
## WARNING: This plugin requires a server restart to apply ##
## configuration changes! Make sure to restart ##
## the server for changes to take effect. ##
##############################################################
# Configures memory dump behavior when no players are online.
# This helps to avoid excessive memory usage during periods of inactivity.
memory-dump:
enabled: true
# Defines how frequently the memory dumps will occur in seconds.
frequency: 300
# Enables automatic cleanup of dropped items to reduce entity lag.
# Helps keep the server running smoothly by removing excess entities.
item-cleanup:
enabled: true
# Defines how often dropped items will be cleared in seconds.
frequency: 300
# Message displayed to players warning them before dropped items are cleared.
warning: "&cDropped items will be cleared in {} seconds."
# Message displayed after the items have been cleared.
cleared: "&c{} dropped items have been cleared."
# Specifies the worlds where dropped items should not be automatically cleaned up.
exempt:
- "example_world"
# Limits the number of hoppers that can be placed per chunk.
# Helps reduce server load in areas with excess amounts of hoppers.
hopper-limit:
enabled: true
# Maximum number of hoppers allowed per chunk.
chunk-limit: 10
# Message displayed to players when they try to place more hoppers than allowed.
message: "&cYou've reached the limit of {} hoppers per chunk."
# Merges experience orbs together to reduce server load.
# Instantly collects nearby orbs when a player picks one up.
clumps:
enabled: true
# Defines how often XP orbs get merged in seconds
merge-frequency: 10
# Defines the minimum amount of XP required in an orb for it to be merged with others.
minimum-merge-xp: 5
# Defines the radius within which XP orbs will merge in blocks.
merge-radius: 2.5
# Defines the radius within which XP orbs will be instantly collected by players in blocks.
instant-collect-radius: 1.5
If you find this project useful, consider giving it a star on GitHub!
This project is under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧