
⚡ 为什么选择 Overclock 插件
- ⚡ 一套完整的工具箱,从游戏内对服务器进行清理、保护和监控。
- ⚡ 一体化。 14 个模块集成在一个插件中,每个模块都有独立的配置和开关。
- ⚡ 默认安全。 宠物、贵重物品、命名生物以及玩家附近的实体均受到保护。
- ⚡ 响应卡顿。 紧急保护措施仅在 TPS 降至您设定的阈值以下时才会触发。
- ⚡ 游戏内控制。 通过 GUI、设置编辑器和任务监控器管理一切。
- ⚡ 实时统计。 StatsBar(状态栏)、服务器信息和 CPU/内存基准测试可显示服务器健康状况。
- ⚡ 警报与自动化。 Discord TPS 警报及带警告的定时重启。
- ⚡ 完全可定制。 自定义前缀、颜色、消息和 GUI 音效。
- ⚡ 定时重启会关闭服务器,因此请使用面板或启动脚本来重启它。
? 武器库:14 个优化模块
- ? EntityCleaner(实体清理器): 带警告的定时清理、紧急模式以及对宠物和贵重物品的保护。
- ? LagShield(卡顿护盾): 低 TPS 期间的紧急保护,包括动态视距和模拟距离调整。
- ? LagDetector(卡顿检测器): 在单个区块中查找卡顿机器,并通过递增冷却时间限制其活动。
- ? EntityLimiter(实体限制器): 按区块、按玩家或全服设置实体上限,支持自定义每种生物的限额。
- ? EntityOptimizer(实体优化器): 禁用远处实体的 AI,并豁免你的宠物。
- ? VillagerOptimizer(村民优化器): 冻结被困村民,交易时唤醒它们,交易结束后重新冻结。
- ? HopperOptimizer(漏斗优化器): 空闲冻结、满漏斗锁定、批量传输以及漏斗矿车处理。
- ? ExplosionOptimizer(爆炸优化器): 方块损坏限制、受保护方块以及 TNT 和末影水晶连锁控制。
- ? DropCollector(掉落收集器): 掉落物和经验值直接归玩家所有,并支持经验倍率。
- ? ItemDespawnModifier(物品消失修改器): 为每种物品自定义消失时间,使杂物快速消失。
- ? GraveMaker(墓碑生成器): 死亡墓碑带有实时倒计时全息图,且仅所有者可访问。
- ? ChunkPreventer(区块阻止器): 阻止玩家进入未加载的区块。
- ? ChunkUnloader(区块卸载器): 卸载废弃区块以释放内存,并保护末影珍珠传送后的区块。
- ? JavaGC-Runner(Java GC 运行器): 仅限遗留配置使用,JVM 本身已处理垃圾回收。
⌨️ Overclock 插件命令
- ⌨️ 主命令:
/overclock(别名:/oc, /overc, /oclock)
- ⌨️
/oc gui:打开主控制面板,只需几次点击即可管理所有模块和设置。
- ⌨️
/oc info:查看实时服务器性能,包括 TPS、MSPT、RAM、CPU、区块数和实体数。
- ⌨️
/oc benchmark:运行 CPU 和内存基准测试,以比较服务器性能。
- ⌨️
/oc statsbar:切换显示 TPS、MSPT、区块、实体和堆内存使用情况的实时 Boss Bar。
- ⌨️
/oc clearnow:强制立即开始实体清理(30 秒后生效),无需等待定时器。
- ⌨️
/oc reload:在不重启服务器的情况下重新加载配置文件。
- ⌨️
/oc trackupdate:检查是否有更新的 Overclock 版本可供下载。
- ⌨️
/oc edit:在游戏中编辑模块设置,无需打开任何配置文件。
- ⌨️
/oc taskmonitor:打开任务监控 GUI,随时关注 Overclock 的运行任务。
- ⌨️
/oc grave cleanup:移除服务器上所有的墓碑,适合清理旧墓碑或废弃墓碑。
- ⌨️
/oc tools:打开管理员工具 GUI,使用额外的实用程序来管理服务器。
- ⌨️
/oc dc:获取 Discord 邀请链接,加入我们的社区以获取支持和更新。
- ⌨️
/oc gc:手动运行 Java 垃圾回收。
- ⌨️ 权限:
overclock.admin(默认为 OP)
? 发现 Bug?需要帮助?请在 Discord 创建工单。
- ? 对插件不满意?这完全没问题。 你不必加入我们的 Discord。
- ? 喜欢它吗?一键加入 Discord 意义重大。 这会激励我们继续构建更好的项目。
- ? 永不捐赠。 我们不索取金钱,只是喜欢看人们支持这个项目。
- ? 免费且可选。 是否加入完全由你决定,但每一位成员都至关重要。
- ? 需要帮助或发现 Bug? 前往 Discord 获取更新、支持、Bug 报告和建议。
- ? 在 Modrinth 上关注我们。 你可以关注主项目或查看我们的其他项目,因为哪怕微小的支持也意义非凡。
- ? Discord:
- ? Modrinth 个人主页:
- ?感谢使用 Overclock!本项目由 Golden Studios 制作。
? Overclock 插件配置文件
?plugin.yml
name: Overclock
main: com.goldwar.overclock.Overclock
version: 1.0.12
api-version: 1.21
author: GoldwarGlory
description: Optimize your server
website: https://modrinth.com/plugin/overclock-clearlag
commands:
overclock:
description: The main command for the plugin.
usage: /overclock
permission: overclock.admin
aliases:
- oc
- overc
- oclock
permissions:
overclock.admin:
default: op
?config.yml
# -----------------------------------------------------------------------------
# Overclock - Main Configuration
# -----------------------------------------------------------------------------
# Global plugin settings live here. Per-module settings are stored in separate
# files inside the Modules folder and are editable through /oc edit or the GUI.
#
# Message placeholders:
# <prefix> - The configured plugin prefix
# <primary> - The configured primary color
# <secondary> - The configured secondary color
# -----------------------------------------------------------------------------
General:
# Plugin prefix. Supports MiniMessage gradients, colors and formatting.
prefix: "<gradient:#FF00FF:#FFFFFF>[Overclock]</gradient> "
# Legacy Minecraft color code used for primary/accented text.
primary-color: "d"
```yaml
# 用于次要文本的旧版 Minecraft 颜色代码。
secondary-color: "f"
# /overclock 基准测试的持续时间,单位为秒。
benchmark-duration: 30
# 如果为 true,当检测到新版本时,OP 玩家会收到通知。
# 如果为 false,更新通知将被禁用。
track-updates: true
Sounds:
# 支持原版声音键,例如:ui_button_click。
# 将声音设置为 "" 以禁用音效。
click:
sound: "ui_button_click"
volume: 0.6
pitch: 1.2
nav:
sound: "item.book.page_turn"
volume: 0.5
pitch: 1.0
open:
sound: "block.chest.open"
volume: 0.4
pitch: 1.4
toggle-on:
sound: "block.note_block.pling"
volume: 0.6
pitch: 1.5
toggle-off:
sound: "block.note_block.pling"
volume: 0.6
pitch: 0.8
success:
sound: "entity.player.levelup"
volume: 0.5
pitch: 1.6
error:
sound: "entity.villager.no"
volume: 0.6
pitch: 1.0
BackButton:
# 返回按钮物品的材质。必须是有效的 Bukkit 材质名称。
material: "DARK_OAK_DOOR"
# 返回按钮的显示名称。使用 <primary> 和 <secondary> 作为颜色占位符。
name: "<primary>Back §7§l» <secondary>Return to previous menu"
Filler:
# 物品栏填充物的材质。必须是有效的 Bukkit 材质名称。
material: "BLACK_STAINED_GLASS_PANE"
# 填充物的显示名称。单个空格可使其保持空白。
name: " "
TpsAlert:
# 如果为 true,当 TPS 低于阈值时发送 Discord Webhook 警报。
enabled: false
# 触发警报的 TPS 阈值。
threshold: 15.0
# 用于发送警报的 Discord Webhook URL。留空以禁用。
webhook-url: ""
ScheduledRestart:
# 如果为 true,将在配置的时间自动重启服务器。
enabled: false
# 定时重启的时间,格式为 HH:MM(24 小时制)。
time: "04:00"
# 重启前发送警告的分钟数。空列表表示禁用警告。
warning-minutes:
- 60
- 30
- 15
- 5
?Modules/ChunkPreventer.yml
# -----------------------------------------------------------------------------
# ChunkPreventer
# -----------------------------------------------------------------------------
# 阻止玩家进入尚未加载的区块。这避免了因强制加载区块过于激进而导致的移动不同步和加载峰值。
# -----------------------------------------------------------------------------
ChunkPreventer:
# 如果为 true,玩家被禁止进入未加载的区块。
# 如果为 false,玩家可以像往常一样进入未加载的区块。
enabled: true
# 如果为 true,当移动被阻止时,玩家会收到以下消息。
# 如果为 false,移动仍会被静默阻止。
send-message: true
# 当玩家试图进入未加载的区块时发送的消息。
message: "<prefix><secondary>This chunk is not loaded yet. <primary>Please wait."
# 不应运行此模块的世界。
disabled-worlds: []
?Modules/ChunkUnloader.yml
# -----------------------------------------------------------------------------
# ChunkUnloader
# -----------------------------------------------------------------------------
# 卸载附近不再有玩家的区块。这有助于减少内存占用并防止旧区域无故保持活跃状态。
# -----------------------------------------------------------------------------
ChunkUnloader:
# 如果为 true,启用区块卸载保护和清理任务。
# 如果为 false,区块仅通过原版/服务器行为进行卸载。
enabled: true
# 最后一名玩家离开后,区块可以卸载前等待的刻数。
unload-delay-ticks: 100
# 如果为 true,未使用的区块会自动扫描并卸载。
# 如果为 false,仅使用直接卸载逻辑。
auto-unload-unused-chunks: true
# 自动扫描未使用区块之间的间隔刻数。
cleanup-task-period-ticks: 200
# 每次清理运行中最多卸载的区块数量。限制清理工作量。
max-unloads-per-run: 20
# 玩家安全半径(以区块为单位)。1 保护每个玩家周围 3x3 的区域。
max-safe-chunk-radius: 1
# 如果为 true,拥有活跃末影珍珠的区块受保护,不会被卸载。
# 如果为 false,末影珍珠区块可以像普通区块一样卸载。
protect-ender-pearl-chunks: true
# 不应运行此模块的世界。
disabled-worlds: []
?Modules/DropCollector.yml
# -----------------------------------------------------------------------------
# DropCollector
# -----------------------------------------------------------------------------
# 将选定的掉落物和经验值直接发送给玩家物品栏。这减少了掉落物品和经验球的杂乱,同时保持游戏流畅。
# -----------------------------------------------------------------------------
DropCollector:
# 如果为 true,启用 DropCollector 功能。
# 如果为 false,方块、生物和 XP 掉落正常。
enabled: true
direct-xp:
# 如果为 true,破坏方块的 XP 直接给予玩家。
# 如果为 false,破坏方块的 XP 以经验球形式掉落。
on-block-break: true
# 如果为 true,击杀生物的 XP 直接给予击杀者。
# 如果为 false,击杀生物的 XP 以经验球形式掉落。
on-mob-kill: true
# 在发放 XP 之前应用的乘数。1.0 保持原版 XP 数量。
xp-multiplier: 1.0
# 如果为 true,创造模式玩家不会接收直接 XP。
# 如果为 false,创造模式玩家可以接收直接 XP。
ignore-creative-mode: true
block-drops:
# 如果为 true,方块掉落物直接发送到破坏者的物品栏中。
# 如果为 false,方块掉落物像往常一样掉落在地面上。
enabled: true
# 如果为 true,精准采集工具绕过直接拾取。
# 如果为 false,精准采集掉落物也会直接发送到物品栏中。
ignore-silk-touch: false
如果为 true,时运工具将绕过直接拾取。
# 如果为 false,时运掉落物也将直接存入背包。
ignore-fortune: false
# 如果为 true,创造模式玩家不使用方块直接拾取。
# 如果为 false,创造模式玩家可以使用方块直接拾取。
ignore-creative-mode: true
# 如果为 true,仅列表中的材质使用直接拾取。
# 如果为 false,除列表外的所有材质均使用直接拾取。
invert: false
# 由反转过滤器使用的方块材质。
list: [BEACON, ENDER_CHEST, SHULKER_BOX]
mob-drops:
# 如果为 true,生物掉落物将直接送入击杀者的背包。
# 如果为 false,生物掉落物将正常掉落在地面上。
enabled: true
# 如果为 true,创造模式玩家不使用生物直接拾取。
# 如果为 false,创造模式玩家可以使用生物直接拾取。
ignore-creative-mode: true
# 如果为 true,仅列表中的实体使用直接拾取。
# 如果为 false,除列表外的所有实体均使用直接拾取。
invert: false
# 由反转过滤器使用的实体类型。
list: [WARDEN, ENDER_DRAGON, WITHER]
禁用方块/生物直接拾取的维度。
disabled-drop-worlds: []
禁用经验直接拾取的维度。
disabled-xp-worlds: []
messages:
# 当物品无法放入玩家背包时发送的消息。
inventory-full: "<prefix><secondary>你的背包已满。"
DropCollector 绝不应自动拾取的材质。
即使启用了 block-drops 或 mob-drops,这些物品也会始终掉落在地面上。
适用于任务物品、特殊掉落物或需要玩家手动收集的材料。
blacklisted-materials: []
如果为 true,仅黑名单中的材质会被自动拾取(白名单模式)。
如果为 false,黑名单中的材质将被跳过(黑名单模式)。
invert-blacklist: false
</details>
<details>
<summary>?Modules/EntityCleaner.yml</summary>
```yaml
# -----------------------------------------------------------------------------
# EntityCleaner
# -----------------------------------------------------------------------------
# 定期移除选定的实体以减少杂乱并防止 TPS 下降。
# 排除项可保护有价值的物品、宠物、命名生物和重要实体。
# -----------------------------------------------------------------------------
EntityCleaner:
# 如果为 true,将按照配置的间隔运行自动清理。
# 如果为 false,禁用自动清理。
auto-clean: true
# 自动清理周期之间的分钟数。
clean-interval: 10
# 清理前发出警告的秒数。
warns-before-cleanup: [60, 30, 10, 5, 3, 2, 1]
messages:
announce-in:
# 如果为 true,清理警告和结果将在聊天中发送。
# 如果为 false,禁用聊天公告。
chat: true
# 如果为 true,清理警告将显示在动作栏。
# 如果为 false,禁用动作栏公告。
actionbar: true
# 如果为 true,清理警告/结果使用标题和副标题。
# 如果为 false,禁用标题公告。
title-subtitle: false
warnings:
# 如果为 true,将在 warns-before-cleanup 设定的时间点发送警告。
# 如果为 false,清理将在没有倒计时警告的情况下进行。
enabled: true
# 警告消息。支持 <prefix>, <primary>, <secondary> 和 <time>。
message: "<prefix><secondary>实体清理将在 <primary><bold><time></bold> <secondary>秒后开始。"
# 启用 title-subtitle 时显示的标题。
title: "<gradient:#00c6ff:#0072ff><bold>CLEANER</bold></gradient>"
# 启用 title-subtitle 时显示的副标题。支持 <time>。
subtitle: "<secondary>正在清理,剩余 <primary><bold><time></bold><secondary>秒"
# 如果为 true,每次清理警告时播放声音。
# 如果为 false,警告静音。
sound: true
clear-complete:
# 完成消息。支持 <prefix>, <primary>, <secondary> 和 <count>。
message: "<prefix><secondary>已移除 <primary><bold><count></bold> <secondary>个实体。"
# 启用 title-subtitle 时显示的标题。
title: "<gradient:#00ff87:#60efff><bold>CLEANUP COMPLETE</bold></gradient>"
# 启用 title-subtitle 时显示的副标题。支持 <count>。
subtitle: "<secondary>已移除 <primary><bold><count></bold> <secondary>个实体"
# 如果为 true,清理完成后播放完成声音。
# 如果为 false,完成过程静音。
sound: true
entities:
# 如果为 true,除非被排除,否则将移除掉落的物品。
# 如果为 false,清理程序永远不会移除掉落的物品。
dropped-items: true
# 如果为 true,除非被排除,否则将移除投射物。
# 如果为 false,清理程序永远不会移除投射物。
projectiles: true
# 如果为 true,除非被排除,否则将移除非玩家生物。
# 如果为 false,清理程序永远不会移除生物。
mobs: true
# 如果为 true,具有自定义名称的实体受到保护。
# 如果为 false,命名的实体可以被移除。
skip-named-entities: true
# 如果为 true,驯服的生物和宠物受到保护。
# 如果为 false,驯服的生物可以被移除。
skip-tamed-mobs: true
# 如果为 true,经验球受到保护。
# 如果为 false,经验球可以被移除。
skip-experience-orbs: true
# 此模块不应运行的维度。
excluded-worlds: []
# 绝不应被移除的掉落物品材质。
excluded-dropped-items:
- MACE
- TRIAL_KEY
- OMINOUS_TRIAL_KEY
- BREEZE_ROD
- HEAVY_CORE
- ELYTRA
- NETHERITE_INGOT
- NETHERITE_SCRAP
- ENCHANTED_GOLDEN_APPLE
- TOTEM_OF_UNDYING
- DRAGON_EGG
- BEACON
- NETHER_STAR
- TRIDENT
- SHULKER_BOX
# 绝不应被移除的生物类型。
excluded-mobs:
- VILLAGER
- WANDERING_TRADER
- IRON_GOLEM
- SNOW_GOLEM
- ALLAY
- BREEZE
- SNIFFER
- PILLAGER
- VINDICATOR
- RAVAGER
- WITCH
# 绝不应被移除的投射物类型。
excluded-projectiles: [TRIDENT]
# 触发立即清理(紧急模式)的 TPS 阈值。
# 当服务器 TPS 低于此值时,会立即触发清理周期。
emergency-clean-threshold: 10.0
# 任何在线玩家周围此半径(以方块为单位)内的实体受保护,不会被移除。
# 防止在清理过程中意外删除玩家附近的实体。
# 设置为 0 可禁用玩家 proximity 保护。
protect-radius-around-players-blocks: 32
# 单次清理运行中最多可移除的实体数量。
# 安全上限,防止在极端卡顿期间发生大规模删除。
max-kill-per-cycle: 500
# 仅移除存在时间超过此数值刻数的实体。
# 保护刚生成的实体免受过早清理。
# 1200 刻 = 60 秒,2400 刻 = 120 秒。
only-clean-entities-older-than-ticks: 1200
?Modules/EntityLimiter.yml
# -----------------------------------------------------------------------------
# EntityLimiter
# -----------------------------------------------------------------------------
# 限制每个区块的实体密度,以防止刷怪农场或堆叠区块导致服务器过载。
# -----------------------------------------------------------------------------
EntityLimiter:
# 如果为 true,则强制执行实体生成限制。
# 如果为 false,实体正常生成。
enabled: true
# 每个区块允许的最大实体数量。玩家不计入在内。
max-entities-per-chunk: 25
# 如果为 true,仅计算活体实体。
# 如果为 false,除非被忽略,否则所有类型的实体都会计数。
check-only-living-entities: true
# 如果为 true,则执行下方自定义的每种实体限制。
# 如果为 false,仅使用 max-entities-per-chunk。
enable-custom-mob-limits: true
# 绕过限制器的生成原因。
allowed-spawn-reasons: [COMMAND, SPAWNER_EGG, CUSTOM, BUILD_WITHER, BUILD_SNOWMAN]
# 被限制器忽略的实体类型。
ignored-entity-types: [PLAYER, ARMOR_STAND, ITEM_FRAME, GLOW_ITEM_FRAME, PAINTING]
# 不应运行此模块的世界。
disabled-worlds: []
# 每种实体的限制。键必须是 Bukkit EntityType 名称。
custom-mob-limits:
ZOMBIE: 10
SKELETON: 10
CREEPER: 5
ENDERMAN: 8
# 用于限制目的的实体计数方式。
# PER_CHUNK(默认):独立计算每个区块中的实体。
# PER_PLAYER:计算每个玩家加载区块内的实体。
# GLOBAL:在整个服务器范围内针对单一限制计算所有实体。
count-mode: PER_CHUNK
?Modules/EntityOptimizer.yml
# -----------------------------------------------------------------------------
# EntityOptimizer
# -----------------------------------------------------------------------------
# 通过禁用配置激活范围之外的实体的 AI 来降低实体 Tick 成本。
# 排除的实体和世界永远不会被优化。
# -----------------------------------------------------------------------------
EntityOptimizer:
# 如果为 true,可以优化远处的实体。
# 如果为 false,实体保持正常的 AI 行为。
enabled: true
# 优化扫描之间的间隔刻数。20 刻 = 1 秒。
task-interval-ticks: 40
# 实体保持完全激活状态的玩家周围范围。
activation-range: 32.0
# 如果为 true,则禁用激活范围之外实体的 AI。
# 如果为 false,该模块会跟踪实体但不改变 AI。
disable-ai: true
# 如果为 true,驯服的宠物永远不会被优化。
# 如果为 false,宠物可以像其他实体一样被优化。
skip-pets: true
# 永远不应优化的实体类型。
excluded-entities: []
# 不应运行此模块的世界。
disabled-worlds: []
?Modules/ExplosionOptimizer.yml
# -----------------------------------------------------------------------------
# ExplosionOptimizer
# -----------------------------------------------------------------------------
# 通过控制 TNT 或末影水晶造成的方块损坏、掉落物品和连锁反应来减少爆炸延迟。
# -----------------------------------------------------------------------------
ExplosionOptimizer:
# 如果为 true,则启用爆炸优化规则。
# 如果为 false,爆炸表现正常。
enabled: true
# 清除高于此 Y 级别的方块损坏。使用 320 可禁用此检查。
clear-block-damage-above-y: -5
# 如果为 true,移除爆炸产生的方块掉落物。
# 如果为 false,爆炸后的方块可以正常掉落物品。
clear-block-drops: true
# 不应运行此模块的世界。
disabled-worlds: []
# 受保护的免遭爆炸损坏的方块。
protected-blocks: [CHEST, TRAPPED_CHEST, DRAGON_EGG, DRAGON_HEAD]
# 如果为 true,只有 damage-entities 中的实体能受到 TNT/水晶的伤害。
# 如果为 false,damage-entities 中的实体受保护。
invert-entity-filter: true
# 由 invert-entity-filter 使用的实体类型。
damage-entities: [PLAYER, ENDER_DRAGON, WITHER, WARDEN]
# 如果为 true,TNT 可以触发附近的 TNT。
# 如果为 false,阻止 TNT 连锁反应。
tnt-chain: false
# 如果为 true,末影水晶可以触发附近的末影水晶。
# 如果为 false,阻止水晶连锁反应。
crystal-chain: false
?Modules/GraveMaker.yml
# -----------------------------------------------------------------------------
# GraveMaker
# -----------------------------------------------------------------------------
# 在玩家死亡时将掉落物存储在墓穴中,显示可选全息图,并在配置的计时器过期后安全地移除
# 过期的墓穴。
# -----------------------------------------------------------------------------
GraveMaker:
# 如果为 true,玩家死亡时会创建墓穴。
# 如果为 false,玩家正常掉落物品。
enabled: true
```yaml
# 如果为 true,则在每个墓碑上方显示文字全息图。
# 如果为 false,则创建不带全息图的墓碑。
holograms-enabled: true
# 第一行全息图文本。支持 <player>、<primary>、<secondary>、<despawn_timer>。
hologram-one: "<primary><player>'s <secondary>Grave"
# 第二行全息图文本。<despawn_timer> 会实时更新直到墓碑消失。
hologram-two: "<secondary>Grave despawns in <primary><despawn_timer>"
# 墓碑过期前的时间。12000 ticks = 10 分钟。
despawn-time-ticks: 12000
# 如果为 true,过期的墓碑物品将掉落至地面。
# 如果为 false,过期的墓碑物品将随墓碑一起被删除。
drop-items-on-grave-expiration: false
# 如果为 true,墓碑永远不会自动过期。
# 如果为 false,墓碑将在 despawn-time-ticks 后消失。
prevent-grave-despawn: false
# 如果为 true,只有已故玩家才能打开自己的墓碑。
# 如果为 false,任何玩家都可以打开任意墓碑。
owner-only-access: true
# 不应运行此模块的世界列表。
disabled-worlds: []
?Modules/HopperOptimizer.yml
# -----------------------------------------------------------------------------
# HopperOptimizer(漏斗优化器)
# -----------------------------------------------------------------------------
# 通过冻结空闲的漏斗、延迟全输出重试、处理漏斗矿车并限制传输爆发来减少漏斗造成的卡顿。
# -----------------------------------------------------------------------------
HopperOptimizer:
# 如果为 true,启用漏斗优化规则。
# 如果为 false,漏斗和漏斗矿车的行为保持正常。
enabled: true
# 如果为 true,漏斗矿车也会被优化。
# 如果为 false,仅优化方块漏斗。
include-hopper-minecarts: true
# 如果为 true,当空闲漏斗停止工作时,会短暂冻结它们。
# 如果为 false,空闲漏斗会继续在每个 tick 进行检查。
freeze-idle: true
# 如果为 true,向已满容器推送物品的漏斗会在重试前等待。
# 如果为 false,满状态的漏斗会在每次传输 tick 时重试。
lock-when-full: true
# 不应运行此模块的世界列表。
disabled-worlds: []
advanced:
# 空闲方块漏斗在再次探测前等待的 tick 数。
idle-freeze-ticks: 30
# 漏斗在目标容器已满时等待的 tick 数。
full-lock-ticks: 32
# 再次检查空源容器前等待的 tick 数。
empty-source-ticks: 16
# 漏斗矿车在重新扫描地面物品前等待的 tick 数。
minecart-empty-scan-ticks: 20
# 漏斗矿车在再次搜索容器前等待的 tick 数。
minecart-container-scan-ticks: 20
# 如果为 true,被比较器读取的漏斗不会被冻结为空闲状态。
# 如果为 false,连接比较器的漏斗可以被冻结为空闲状态。
skip-idle-freeze-if-comparator: true
# 如果为 true,红石驱动的漏斗会被优化器跳过。
# 如果为 false,受红石驱动的漏斗仍会被检查。
skip-powered-hoppers: true
# 如果为 true,方块漏斗的传输量受 batch-transfer-amount 限制。
# 如果为 false,方块漏斗使用原版传输数量。
batch-transfer: true
# 如果为 true,漏斗矿车的传输量受 batch-transfer-amount 限制。
# 如果为 false,漏斗矿车使用原版传输数量。
minecart-batch-transfer: true
# 启用批量传输时,每次传输移动的最大物品数量。
batch-transfer-amount: 32
?Modules/ItemDespawnModifier.yml
# -----------------------------------------------------------------------------
# ItemDespawnModifier(物品消失时间修改器)
# -----------------------------------------------------------------------------
# 更改掉落物品的消失时间。常见杂物可以更快消失,而贵重物品可以保留更久。
# -----------------------------------------------------------------------------
ItemDespawnModifier:
# 如果为 true,修改物品的消失时间。
# 如果为 false,物品使用服务器的默认消失时间。
enabled: true
# 未在下文中列出的物品的默认消失时间。6000 ticks = 5 分钟。
despawn-time-ticks: 6000
# 不应运行此模块的世界列表。
disabled-worlds: []
# 按材质设定的消失时间(单位:ticks)。
custom-despawn-times:
COBBLESTONE: 600
STONE: 600
DIRT: 600
GRASS_BLOCK: 600
NETHERRACK: 600
SEEDS: 600
WHEAT_SEEDS: 600
PUMPKIN_SEEDS: 600
MELON_SEEDS: 600
SCULK: 600
GRAVEL: 1200
SAND: 1200
BLACKSTONE: 1200
ROTTEN_FLESH: 1200
ARROW: 1200
SPIDER_EYE: 1200
KELP: 1200
BONE: 1800
STRING: 1800
GUNPOWDER: 1800
NETHER_STAR: 24000
DRAGON_EGG: 24000
?Modules/JavaGC-Runner.yml
# -----------------------------------------------------------------------------
# JavaGC-Runner(Java GC 运行器)
# -----------------------------------------------------------------------------
# 仅为向后兼容配置而保留。Overclock 从不调用显式的 JVM 垃圾回收,因为那可能导致“世界暂停”(stop-the-world)停顿。
# -----------------------------------------------------------------------------
JavaGC-Runner:
# 已弃用:将被忽略。JVM 始终正常管理垃圾回收。
enabled: true
# 计划进行垃圾回收尝试之间的间隔时间(分钟)。
interval: 10
# 如果为 true,内存清理信息将记录到控制台。
# 如果为 false,计划的 GC 运行静默执行。
debug: false
# 如果为 true,在 GC 之后也会请求 System.runFinalization()。
# 如果为 false,仅请求 System.gc()。
force-gc: false
# 如果为 true,仅当堆内存使用率超过阈值百分比时才触发 GC。
# 防止在内存使用率低时无必要的 GC 停顿。
# 与基于时间的调度配合工作(必须同时满足两个条件)。
use-memory-threshold: true
触发垃圾回收(GC)所需的最小堆内存使用百分比。
仅当当前堆内存使用量高于此级别时,GC 才会运行。
范围:1-99。默认值 65% 在性能和内存效率之间取得平衡。
memory-threshold-percent: 65
</details>
<details>
<summary>?Modules/LagDetector.yml</summary>
```yaml
# -----------------------------------------------------------------------------
# LagDetector(卡顿检测器)
# -----------------------------------------------------------------------------
# 检测同一区块中重复发生的严重卡顿行为,并在其损害服务器性能之前暂时对该区块进行限流。
# -----------------------------------------------------------------------------
LagDetector:
# 如果为 true,则监控并限制严重卡顿的区块活动。
# 如果为 false,则不应用任何区块冷却时间。
enabled: true
# 每个区块每秒允许追踪的最大卡顿操作数。
max-lag-actions-per-second: 20
# 单个区块内允许的最大盔甲架数量。
max-armor-stands-per-chunk: 50
# 首次违规后的冷却时间(秒)。
cooldown-tier-1: 5
# 第二次违规后的冷却时间(秒)。
cooldown-tier-2: 30
# 第三次及更高次违规后的冷却时间(秒)。
cooldown-tier-3: 300
# 对于第 3 级以上的每个违规层级,额外增加的秒数。
cooldown-additive-step: 300
# 在没有新违规的情况下,经过多少分钟后区块的违规层级会重置。
violation-reset-minutes: 10
# 不应运行此模块的世界列表。
disabled-worlds: []
?Modules/LagShield.yml
# -----------------------------------------------------------------------------
# LagShield(卡顿防护盾)
# -----------------------------------------------------------------------------
# 在 TPS 较低时应用紧急保护措施:烟花冷却、爆炸链阻止、漏斗限流、被动生物 AI 冻结以及距离动态调整。
# -----------------------------------------------------------------------------
LagShield:
# 如果为 true,则在低 TPS 期间可以激活 LagShield 保护。
# 如果为 false,则不应用任何紧急保护措施。
enabled: true
# 不应运行此模块的世界列表。
disabled-worlds: []
# 如果为 true,当 TPS 低于阈值时,限制鞘翅烟花滥用。
# 如果为 false,LagShield 永远不会限制烟花。
firework-cooldown: true
# 冷却激活期间,发射烟花之间的刻数(ticks)。
firework-cooldown-ticks: 60
# 开始实施烟花冷却的 TPS 阈值。
firework-cooldown-tps: 19.0
# 如果为 true,在低 TPS 期间阻止 TNT 和末影水晶的连锁反应。
# 如果为 false,LagShield 永远不会阻止爆炸链。
block-tnt-and-crystal-chain: true
# 开始阻止 TNT/水晶连锁反应的 TPS 阈值。
tnt-crystal-chain-tps: 15.0
# 如果为 true,在低 TPS 期间对漏斗和漏斗矿车进行限流。
# 如果为 false,LagShield 永远不会减缓漏斗传输。
# 使用 HopperOptimizer 的锁缓存,因此两个模块不会双重锁定。
hoppers-slowdown: true
# 开始实施漏斗减速的 TPS 阈值。
hoppers-slowdown-tps: 15.0
# 在减速期间,每次被阻止的传输后漏斗等待的刻数(ticks)。
hoppers-slowdown-ticks: 8
# 如果为 true,在低 TPS 期间冻结被动生物的 AI。
# 如果为 false,LagShield 永远不会冻结被动生物 AI。
freeze-passive-mob-ai: true
# 开始冻结被动生物 AI 的 TPS 阈值。
freeze-passive-mob-ai-tps: 15.0
# 如果为 true,在低 TPS 期间减少视距/模拟距离。
# 如果为 false,LagShield 永远不会更改距离设置。
dynamic-distance-scaling: true
# 开始动态距离调整的 TPS 阈值。
dynamic-distance-scaling-tps: 16.0
# 动态缩放激活时的最小视距。
distance-scaling-min-view-distance: 3
# 动态缩放激活时的最小模拟距离。
distance-scaling-min-simulation-distance: 2
# 如果为 true,当 TPS 降至阈值以下时阻止自然生物生成。
# 防止服务器压力期间因生物生成导致的卡顿。
# 通过取消 NATURAL(自然)和 SPAWNER(刷怪笼)原因的 CreatureSpawnEvent 来实现。
disable-mob-spawning-below-tps-enabled: false
# 低于此 TPS 水平时将阻止生物生成。
# 直到 TPS 恢复到此值以上,自然生成才会被取消。
disable-mob-spawning-below-tps-threshold: 15.0
?Modules/VillagerOptimizer.yml
# -----------------------------------------------------------------------------
# VillagerOptimizer(村民优化器)
# -----------------------------------------------------------------------------
# 冻结被困村民的 AI,在交易时唤醒他们,并在交易结束后重新冻结,以减少村民的 Tick 负载。
# -----------------------------------------------------------------------------
VillagerOptimizer:
# 如果为 true,可以对被困村民进行优化。
# 如果为 false,村民保持正常的 AI 行为。
enabled: true
# 扫描村民陷阱之间的间隔刻数(ticks)。20 ticks = 1 秒。
task-interval-ticks: 300
# 计算村民是否被困所需的最小阻挡面数量。范围:1-4。
min-blocked-sides: 3
# 如果为 true,当村民不再被困时恢复其 AI。
# 如果为 false,优化的村民将保持冻结状态,直到其他模块的操作改变它们的状态。
restore-ai-when-uncaged: true
# 如果为 true,当玩家交互或交易时唤醒村民。
# 如果为 false,优化的村民在交互期间保持冻结。
wake-on-interact: true
# 如果为 true,交易窗口关闭后村民会再次冻结。
# 如果为 false,村民在交易后保持清醒。
refreeze-after-trade: true
# 如果为 true,拥有自定义名称的村民永远不会被优化。
# 如果为 false,命名过的村民可以被优化。
skip-named-villagers: true
# 如果为 true,优化操作会记录到控制台日志。
# 如果为 false,该模块静默运行。
debug: false
# 不应运行此模块的世界列表。
disabled-worlds: []

⚡ WHY SHOULD YOU CHOOSE OVERCLOCK PLUGIN
- ⚡ A complete toolkit that cleans, protects and monitors your server from inside the game.
- ⚡ All-in-one. 14 modules in one plugin, each with its own config and on/off switch.
- ⚡ Safe by default. Pets, valuables, named mobs and entities near players are protected.
- ⚡ Reacts to lag. Emergency protections only kick in when TPS drops below your thresholds.
- ⚡ Control in-game. Manage everything with the GUI, settings editor and task monitor.
- ⚡ Live stats. StatsBar, server info and a CPU and memory benchmark show your server's health.
- ⚡ Alerts and automation. Discord TPS alerts and scheduled restarts with warnings.
- ⚡ Fully customizable. Your own prefix, colors, messages and GUI sounds.
- ⚡ Scheduled restarts shut the server down, so use a panel or start script that restarts it.
? THE ARSENAL: 14 MODULES FOR OPTIMIZATION
- ? EntityCleaner: Timed cleanup with warnings, emergency mode and protection for pets and valuables.
- ? LagShield: Emergency protections during low TPS, including dynamic view and simulation distance.
- ? LagDetector: Finds lag machines in a single chunk and throttles them with escalating cooldowns.
- ? EntityLimiter: Entity caps per chunk, per player or server-wide, with custom per-mob limits.
- ? EntityOptimizer: Disables AI on far-away entities and spares your pets.
- ? VillagerOptimizer: Freezes caged villagers, wakes them for trading and refreezes them afterward.
- ? HopperOptimizer: Idle freezing, full-hopper locks, batch transfers and hopper minecart handling.
- ? ExplosionOptimizer: Block damage limits, protected blocks and TNT and crystal chain control.
- ? DropCollector: Drops and XP go straight to the player, with an XP multiplier.
- ? ItemDespawnModifier: Custom despawn times per item, so clutter vanishes fast.
- ? GraveMaker: Death graves with live-countdown holograms and owner-only access.
- ? ChunkPreventer: Stops players from running into unloaded chunks.
- ? ChunkUnloader: Unloads abandoned chunks to free memory and protects ender pearl chunks.
- ? JavaGC-Runner: Legacy config only, the JVM handles garbage collection itself.
⌨️ COMMANDS OF OVERCLOCK PLUGIN
- ⌨️ Main command:
/overclock (aliases: /oc, /overc, /oclock)
- ⌨️
/oc gui: Open the main control panel to manage every module and setting with a few clicks.
- ⌨️
/oc info: View live server performance, including TPS, MSPT, RAM, CPU, chunks and entities.
- ⌨️
/oc benchmark: Run a CPU and memory benchmark to compare your server's performance.
- ⌨️
/oc statsbar: Toggle a live boss bar showing TPS, MSPT, chunks, entities and heap usage.
- ⌨️
/oc clearnow: Force an entity cleanup that starts in 30 seconds, without waiting for the timer.
- ⌨️
/oc reload: Reload the configuration files without restarting your server.
- ⌨️
/oc trackupdate: Check whether a newer version of Overclock is available to download.
- ⌨️
/oc edit: Edit module settings in-game without opening any config files.
- ⌨️
/oc taskmonitor: Open the Task Monitor GUI to keep an eye on Overclock's running tasks.
- ⌨️
/oc grave cleanup: Remove all graves on the server, handy for clearing old or abandoned ones.
- ⌨️
/oc tools: Open the Admin Tools GUI for extra utilities to manage your server.
- ⌨️
/oc dc: Get the Discord invite to join our community for support and updates.
- ⌨️
/oc gc: Run Java Garbage Collection Manually.
- ⌨️ Permission:
overclock.admin (OP by default)
? FOUND A BUG? NEED HELP? JUST CREATE A TICKET IN DISCORD.
- ? Not happy with the plugin? That's completely fine. You don't have to join our Discord.
- ? Liked it? One click to join the Discord means a lot. It motivates us to keep building better projects.
- ? No donations, ever. We're not asking for money, we just like seeing people support the project.
- ? Free and optional. Joining is entirely your choice, but every single member counts.
- ? Need help or found a bug? Drop into the Discord for updates, support, bug reports and suggestions.
- ? Follow us on Modrinth. You can follow the main project or check out our other projects, because even a small bit of support matters a lot.
- ? Discord:
- ? Modrinth Profile:
- ?Thank you for using Overclock! This project is made by Golden Studios.
?CONFIGURATION FILES OF OVERCLOCK PLUGIN
?plugin.yml
name: Overclock
main: com.goldwar.overclock.Overclock
version: 1.0.12
api-version: 1.21
author: GoldwarGlory
description: Optimize your server
website: https://modrinth.com/plugin/overclock-clearlag
commands:
overclock:
description: The main command for the plugin.
usage: /overclock
permission: overclock.admin
aliases:
- oc
- overc
- oclock
permissions:
overclock.admin:
default: op
?config.yml
# -----------------------------------------------------------------------------
# Overclock - Main Configuration
# -----------------------------------------------------------------------------
# Global plugin settings live here. Per-module settings are stored in separate
# files inside the Modules folder and are editable through /oc edit or the GUI.
#
# Message placeholders:
# <prefix> - The configured plugin prefix
# <primary> - The configured primary color
# <secondary> - The configured secondary color
# -----------------------------------------------------------------------------
General:
# Plugin prefix. Supports MiniMessage gradients, colors and formatting.
prefix: "<gradient:#FF00FF:#FFFFFF>[Overclock]</gradient> "
# Legacy Minecraft color code used for primary/accented text.
primary-color: "d"
# Legacy Minecraft color code used for secondary text.
secondary-color: "f"
# Duration, in seconds, for /overclock benchmark.
benchmark-duration: 30
# If true, OP players are notified when a new update is detected.
# If false, update notifications are disabled.
track-updates: true
Sounds:
# Vanilla sound keys are supported, for example: ui_button_click.
# Set sound to "" to disable a sound effect.
click:
sound: "ui_button_click"
volume: 0.6
pitch: 1.2
nav:
sound: "item.book.page_turn"
volume: 0.5
pitch: 1.0
open:
sound: "block.chest.open"
volume: 0.4
pitch: 1.4
toggle-on:
sound: "block.note_block.pling"
volume: 0.6
pitch: 1.5
toggle-off:
sound: "block.note_block.pling"
volume: 0.6
pitch: 0.8
success:
sound: "entity.player.levelup"
volume: 0.5
pitch: 1.6
error:
sound: "entity.villager.no"
volume: 0.6
pitch: 1.0
BackButton:
# Material for the back button item. Must be a valid Bukkit Material name.
material: "DARK_OAK_DOOR"
# Display name of the back button. Use <primary> and <secondary> for color placeholders.
name: "<primary>Back §7§l» <secondary>Return to previous menu"
Filler:
# Material for inventory filler items. Must be a valid Bukkit Material name.
material: "BLACK_STAINED_GLASS_PANE"
# Display name of the filler item. A single space keeps it blank.
name: " "
TpsAlert:
# If true, send Discord webhook alerts when TPS drops below threshold.
enabled: false
# TPS threshold that triggers an alert.
threshold: 15.0
# Discord webhook URL for sending alerts. Leave empty to disable.
webhook-url: ""
ScheduledRestart:
# If true, automatically restart the server at the configured time.
enabled: false
# Time in HH:MM format (24-hour) for the scheduled restart.
time: "04:00"
# Minutes before restart to send warnings. Empty list disables warnings.
warning-minutes:
- 60
- 30
- 15
- 5
?Modules/ChunkPreventer.yml
# -----------------------------------------------------------------------------
# ChunkPreventer
# -----------------------------------------------------------------------------
# Prevents players from entering chunks that are not loaded yet. This avoids
# movement desync and load spikes caused by forcing chunks too aggressively.
# -----------------------------------------------------------------------------
ChunkPreventer:
# If true, players are blocked from entering unloaded chunks.
# If false, players can move into unloaded chunks normally.
enabled: true
# If true, players receive the message below when movement is blocked.
# If false, movement is still blocked silently.
send-message: true
# Message sent when a player tries to enter an unloaded chunk.
message: "<prefix><secondary>This chunk is not loaded yet. <primary>Please wait."
# Worlds where this module should not run.
disabled-worlds: []
?Modules/ChunkUnloader.yml
# -----------------------------------------------------------------------------
# ChunkUnloader
# -----------------------------------------------------------------------------
# Unloads chunks that no longer have nearby players. This reduces memory usage
# and prevents old areas from staying active for no reason.
# -----------------------------------------------------------------------------
ChunkUnloader:
# If true, chunk unload protection and cleanup tasks are enabled.
# If false, chunks unload only through vanilla/server behavior.
enabled: true
# Ticks to wait after the last player leaves before a chunk can unload.
unload-delay-ticks: 100
# If true, unused chunks are scanned and unloaded automatically.
# If false, only direct unload logic is used.
auto-unload-unused-chunks: true
# Ticks between automatic unused-chunk scans.
cleanup-task-period-ticks: 200
# Maximum chunks to unload during one cleanup run. Keeps cleanup work bounded.
max-unloads-per-run: 20
# Player safety radius in chunks. 1 protects a 3x3 area around each player.
max-safe-chunk-radius: 1
# If true, chunks with active ender pearls are protected from unloading.
# If false, ender pearl chunks can unload like normal chunks.
protect-ender-pearl-chunks: true
# Worlds where this module should not run.
disabled-worlds: []
?Modules/DropCollector.yml
# -----------------------------------------------------------------------------
# DropCollector
# -----------------------------------------------------------------------------
# Sends selected drops and XP directly into player inventories. This reduces
# dropped-item and XP-orb spam while keeping gameplay smooth.
# -----------------------------------------------------------------------------
DropCollector:
# If true, DropCollector features are enabled.
# If false, blocks, mobs and XP drop normally.
enabled: true
direct-xp:
# If true, block break XP is given directly to the player.
# If false, block break XP drops as orbs.
on-block-break: true
# If true, mob kill XP is given directly to the killer.
# If false, mob kill XP drops as orbs.
on-mob-kill: true
# Multiplier applied before XP is given. 1.0 keeps vanilla XP amount.
xp-multiplier: 1.0
# If true, creative-mode players do not receive direct XP.
# If false, creative-mode players can receive direct XP.
ignore-creative-mode: true
block-drops:
# If true, block drops are sent directly to the breaker inventory.
# If false, block drops fall on the ground normally.
enabled: true
# If true, Silk Touch tools bypass direct pickup.
# If false, Silk Touch drops are also sent directly to inventory.
ignore-silk-touch: false
# If true, Fortune tools bypass direct pickup.
# If false, Fortune drops are also sent directly to inventory.
ignore-fortune: false
# If true, creative-mode players do not use block direct pickup.
# If false, creative-mode players can use block direct pickup.
ignore-creative-mode: true
# If true, only materials in list use direct pickup.
# If false, every material except list uses direct pickup.
invert: false
# Block materials used by the invert filter.
list: [BEACON, ENDER_CHEST, SHULKER_BOX]
mob-drops:
# If true, mob drops are sent directly to the killer inventory.
# If false, mob drops fall on the ground normally.
enabled: true
# If true, creative-mode players do not use mob direct pickup.
# If false, creative-mode players can use mob direct pickup.
ignore-creative-mode: true
# If true, only entities in list use direct pickup.
# If false, every entity except list uses direct pickup.
invert: false
# Entity types used by the invert filter.
list: [WARDEN, ENDER_DRAGON, WITHER]
# Worlds where block/mob direct pickup is disabled.
disabled-drop-worlds: []
# Worlds where direct XP is disabled.
disabled-xp-worlds: []
messages:
# Message sent when an item cannot fit in the player's inventory.
inventory-full: "<prefix><secondary>Your inventory is full."
# Materials that should never be auto-picked up by DropCollector.
# These items always drop on the ground even when block-drops or mob-drops are enabled.
# Useful for quest items, special drops, or materials players should collect manually.
blacklisted-materials: []
# If true, only materials in the blacklist are auto-picked up (whitelist mode).
# If false, materials in the blacklist are skipped (blacklist mode).
invert-blacklist: false
?Modules/EntityCleaner.yml
# -----------------------------------------------------------------------------
# EntityCleaner
# -----------------------------------------------------------------------------
# Periodically removes selected entities to reduce clutter and prevent TPS loss.
# Exclusions protect valuable items, pets, named mobs and important entities.
# -----------------------------------------------------------------------------
EntityCleaner:
# If true, automatic cleanup runs on the configured interval.
# If false, automatic cleanup is disabled.
auto-clean: true
# Minutes between automatic cleanup cycles.
clean-interval: 10
# Seconds before cleanup when players should be warned.
warns-before-cleanup: [60, 30, 10, 5, 3, 2, 1]
messages:
announce-in:
# If true, cleanup warnings and results are sent in chat.
# If false, chat announcements are disabled.
chat: true
# If true, cleanup warnings are shown in the actionbar.
# If false, actionbar announcements are disabled.
actionbar: true
# If true, cleanup warnings/results use title and subtitle.
# If false, title announcements are disabled.
title-subtitle: false
warnings:
# If true, warnings are sent at warns-before-cleanup times.
# If false, cleanup happens without countdown warnings.
enabled: true
# Warning message. Supports <prefix>, <primary>, <secondary> and <time>.
message: "<prefix><secondary>Entity cleanup in <primary><bold><time></bold> <secondary>seconds."
# Title shown when title-subtitle is enabled.
title: "<gradient:#00c6ff:#0072ff><bold>CLEANER</bold></gradient>"
# Subtitle shown when title-subtitle is enabled. Supports <time>.
subtitle: "<secondary>Cleaning in <primary><bold><time></bold><secondary>s"
# If true, warning sounds play with each cleanup warning.
# If false, warnings are silent.
sound: true
clear-complete:
# Completion message. Supports <prefix>, <primary>, <secondary> and <count>.
message: "<prefix><secondary>Removed <primary><bold><count></bold> <secondary>entities."
# Title shown when title-subtitle is enabled.
title: "<gradient:#00ff87:#60efff><bold>CLEANUP COMPLETE</bold></gradient>"
# Subtitle shown when title-subtitle is enabled. Supports <count>.
subtitle: "<secondary>Removed <primary><bold><count></bold> <secondary>entities"
# If true, completion sound plays after cleanup.
# If false, completion is silent.
sound: true
entities:
# If true, dropped items are removed unless excluded.
# If false, dropped items are never removed by cleaner.
dropped-items: true
# If true, projectiles are removed unless excluded.
# If false, projectiles are never removed by cleaner.
projectiles: true
# If true, non-player mobs are removed unless excluded.
# If false, mobs are never removed by cleaner.
mobs: true
# If true, entities with custom names are protected.
# If false, named entities can be removed.
skip-named-entities: true
# If true, tamed mobs and pets are protected.
# If false, tamed mobs can be removed.
skip-tamed-mobs: true
# If true, XP orbs are protected.
# If false, XP orbs can be removed.
skip-experience-orbs: true
# Worlds where this module should not run.
excluded-worlds: []
# Dropped item materials that should never be removed.
excluded-dropped-items:
- MACE
- TRIAL_KEY
- OMINOUS_TRIAL_KEY
- BREEZE_ROD
- HEAVY_CORE
- ELYTRA
- NETHERITE_INGOT
- NETHERITE_SCRAP
- ENCHANTED_GOLDEN_APPLE
- TOTEM_OF_UNDYING
- DRAGON_EGG
- BEACON
- NETHER_STAR
- TRIDENT
- SHULKER_BOX
# Entity types that should never be removed.
excluded-mobs:
- VILLAGER
- WANDERING_TRADER
- IRON_GOLEM
- SNOW_GOLEM
- ALLAY
- BREEZE
- SNIFFER
- PILLAGER
- VINDICATOR
- RAVAGER
- WITCH
# Projectile types that should never be removed.
excluded-projectiles: [TRIDENT]
# TPS level below which cleanup runs immediately (emergency mode).
# When server TPS drops below this value, a cleanup cycle is triggered right away.
emergency-clean-threshold: 10.0
# Entities within this radius (in blocks) of any online player are protected from removal.
# Prevents accidental deletion of entities near players during cleanup.
# Set to 0 to disable player proximity protection.
protect-radius-around-players-blocks: 32
# Maximum number of entities that can be removed in a single cleanup run.
# Safety cap to prevent mass deletion during extreme lag spikes.
max-kill-per-cycle: 500
# Only remove entities that have existed longer than this many ticks.
# Protects freshly spawned entities from premature cleanup.
# 1200 ticks = 60 seconds, 2400 ticks = 120 seconds.
only-clean-entities-older-than-ticks: 1200
?Modules/EntityLimiter.yml
# -----------------------------------------------------------------------------
# EntityLimiter
# -----------------------------------------------------------------------------
# Limits entity density per chunk to prevent mob farms or stacked chunks from
# overloading the server.
# -----------------------------------------------------------------------------
EntityLimiter:
# If true, entity spawn limits are enforced.
# If false, entities spawn normally.
enabled: true
# Maximum entities allowed per chunk. Players are never counted.
max-entities-per-chunk: 25
# If true, only living entities are counted.
# If false, all entity types are counted unless ignored.
check-only-living-entities: true
# If true, custom per-entity limits below are enforced.
# If false, only max-entities-per-chunk is used.
enable-custom-mob-limits: true
# Spawn reasons that bypass the limiter.
allowed-spawn-reasons: [COMMAND, SPAWNER_EGG, CUSTOM, BUILD_WITHER, BUILD_SNOWMAN]
# Entity types ignored by the limiter.
ignored-entity-types: [PLAYER, ARMOR_STAND, ITEM_FRAME, GLOW_ITEM_FRAME, PAINTING]
# Worlds where this module should not run.
disabled-worlds: []
# Per-entity limits. Keys must be Bukkit EntityType names.
custom-mob-limits:
ZOMBIE: 10
SKELETON: 10
CREEPER: 5
ENDERMAN: 8
# How entities are counted for limiting purposes.
# PER_CHUNK (default): Count entities per chunk independently.
# PER_PLAYER: Count entities within each player's loaded chunks.
# GLOBAL: Count all entities server-wide against a single limit.
count-mode: PER_CHUNK
?Modules/EntityOptimizer.yml
# -----------------------------------------------------------------------------
# EntityOptimizer
# -----------------------------------------------------------------------------
# Reduces entity tick cost by disabling AI for entities outside the configured
# activation range. Excluded entities and worlds are never optimized.
# -----------------------------------------------------------------------------
EntityOptimizer:
# If true, far entities can be optimized.
# If false, entities keep normal AI behavior.
enabled: true
# Ticks between optimization scans. 20 ticks = 1 second.
task-interval-ticks: 40
# Range from players where entities stay fully active.
activation-range: 32.0
# If true, AI is disabled for entities outside activation range.
# If false, the module tracks entities but does not change AI.
disable-ai: true
# If true, tamed pets are never optimized.
# If false, pets can be optimized like other entities.
skip-pets: true
# Entity types that should never be optimized.
excluded-entities: []
# Worlds where this module should not run.
disabled-worlds: []
?Modules/ExplosionOptimizer.yml
# -----------------------------------------------------------------------------
# ExplosionOptimizer
# -----------------------------------------------------------------------------
# Reduces explosion lag by controlling block damage, dropped items and chain
# reactions from TNT or end crystals.
# -----------------------------------------------------------------------------
ExplosionOptimizer:
# If true, explosion optimization rules are enabled.
# If false, explosions behave normally.
enabled: true
# Y-level above which block damage is cleared. Use 320 to disable this check.
clear-block-damage-above-y: -5
# If true, block drops from explosions are removed.
# If false, exploded blocks can drop items normally.
clear-block-drops: true
# Worlds where this module should not run.
disabled-worlds: []
# Blocks protected from explosion damage.
protected-blocks: [CHEST, TRAPPED_CHEST, DRAGON_EGG, DRAGON_HEAD]
# If true, only entities in damage-entities can take TNT/crystal damage.
# If false, entities in damage-entities are protected instead.
invert-entity-filter: true
# Entity types used by invert-entity-filter.
damage-entities: [PLAYER, ENDER_DRAGON, WITHER, WARDEN]
# If true, TNT can trigger nearby TNT.
# If false, TNT chain reactions are blocked.
tnt-chain: false
# If true, end crystals can trigger nearby end crystals.
# If false, crystal chain reactions are blocked.
crystal-chain: false
?Modules/GraveMaker.yml
# -----------------------------------------------------------------------------
# GraveMaker
# -----------------------------------------------------------------------------
# Stores player drops in a grave on death, shows optional holograms, and removes
# expired graves safely after their configured timer.
# -----------------------------------------------------------------------------
GraveMaker:
# If true, graves are created when players die.
# If false, players drop items normally.
enabled: true
# If true, text holograms are shown above each grave.
# If false, graves are created without holograms.
holograms-enabled: true
# First hologram line. Supports <player>, <primary>, <secondary>, <despawn_timer>.
hologram-one: "<primary><player>'s <secondary>Grave"
# Second hologram line. <despawn_timer> updates live until the grave expires.
hologram-two: "<secondary>Grave despawns in <primary><despawn_timer>"
# Time before a grave expires. 12000 ticks = 10 minutes.
despawn-time-ticks: 12000
# If true, expired grave contents are dropped on the ground.
# If false, expired grave contents are deleted with the grave.
drop-items-on-grave-expiration: false
# If true, graves never expire automatically.
# If false, graves despawn after despawn-time-ticks.
prevent-grave-despawn: false
# If true, only the dead player can open their grave.
# If false, any player can open any grave.
owner-only-access: true
# Worlds where this module should not run.
disabled-worlds: []
?Modules/HopperOptimizer.yml
# -----------------------------------------------------------------------------
# HopperOptimizer
# -----------------------------------------------------------------------------
# Reduces hopper lag by freezing idle hoppers, delaying full-output retries,
# handling hopper minecarts and limiting transfer bursts.
# -----------------------------------------------------------------------------
HopperOptimizer:
# If true, hopper optimization rules are enabled.
# If false, hoppers and hopper minecarts behave normally.
enabled: true
# If true, hopper minecarts are optimized too.
# If false, only block hoppers are optimized.
include-hopper-minecarts: true
# If true, idle hoppers are frozen briefly after they run out of work.
# If false, idle hoppers keep checking every tick.
freeze-idle: true
# If true, hoppers pushing into full inventories wait before retrying.
# If false, full hoppers retry every transfer tick.
lock-when-full: true
# Worlds where this module should not run.
disabled-worlds: []
advanced:
# Ticks an idle block hopper waits before probing again.
idle-freeze-ticks: 30
# Ticks a hopper waits after its destination is full.
full-lock-ticks: 32
# Ticks before checking an empty source inventory again.
empty-source-ticks: 16
# Hopper minecart wait time before rescanning for ground items.
minecart-empty-scan-ticks: 20
# Hopper minecart wait time before searching for a container again.
minecart-container-scan-ticks: 20
# If true, hoppers read by comparators are not idle-frozen.
# If false, comparator hoppers can be idle-frozen.
skip-idle-freeze-if-comparator: true
# If true, redstone-powered hoppers are skipped by optimizer checks.
# If false, powered hoppers are still inspected.
skip-powered-hoppers: true
# If true, block hopper transfers are capped by batch-transfer-amount.
# If false, block hoppers use vanilla transfer amounts.
batch-transfer: true
# If true, hopper minecart transfers are capped by batch-transfer-amount.
# If false, hopper minecarts use vanilla transfer amounts.
minecart-batch-transfer: true
# Maximum items moved per transfer when batching is enabled.
batch-transfer-amount: 32
?Modules/ItemDespawnModifier.yml
# -----------------------------------------------------------------------------
# ItemDespawnModifier
# -----------------------------------------------------------------------------
# Changes dropped-item despawn times. Common clutter can disappear faster while
# valuable items can stay longer.
# -----------------------------------------------------------------------------
ItemDespawnModifier:
# If true, item despawn times are modified.
# If false, items use the server's default despawn time.
enabled: true
# Default despawn time for items not listed below. 6000 ticks = 5 minutes.
despawn-time-ticks: 6000
# Worlds where this module should not run.
disabled-worlds: []
# Per-material despawn times in ticks.
custom-despawn-times:
COBBLESTONE: 600
STONE: 600
DIRT: 600
GRASS_BLOCK: 600
NETHERRACK: 600
SEEDS: 600
WHEAT_SEEDS: 600
PUMPKIN_SEEDS: 600
MELON_SEEDS: 600
SCULK: 600
GRAVEL: 1200
SAND: 1200
BLACKSTONE: 1200
ROTTEN_FLESH: 1200
ARROW: 1200
SPIDER_EYE: 1200
KELP: 1200
BONE: 1800
STRING: 1800
GUNPOWDER: 1800
NETHER_STAR: 24000
DRAGON_EGG: 24000
?Modules/JavaGC-Runner.yml
# -----------------------------------------------------------------------------
# JavaGC-Runner
# -----------------------------------------------------------------------------
# Retained for backwards-compatible configuration only. Overclock never invokes
# explicit JVM garbage collection because it can cause stop-the-world pauses.
# -----------------------------------------------------------------------------
JavaGC-Runner:
# Deprecated: ignored. The JVM always manages garbage collection normally.
enabled: true
# Minutes between scheduled garbage collection attempts.
interval: 10
# If true, memory cleanup information is logged to console.
# If false, scheduled GC runs silently.
debug: false
# If true, System.runFinalization() is also requested after GC.
# If false, only System.gc() is requested.
force-gc: false
# If true, GC is only triggered when heap usage exceeds the threshold percentage.
# Prevents unnecessary GC pauses when memory usage is low.
# Works alongside interval-based scheduling (both conditions must be met).
use-memory-threshold: true
# Minimum heap usage percentage required to trigger GC.
# GC only runs if current heap usage is above this level.
# Range: 1-99. Default 65% balances performance and memory efficiency.
memory-threshold-percent: 65
?Modules/LagDetector.yml
# -----------------------------------------------------------------------------
# LagDetector
# -----------------------------------------------------------------------------
# Detects repeated lag-heavy actions in the same chunk and temporarily throttles
# that chunk before it hurts server performance.
# -----------------------------------------------------------------------------
LagDetector:
# If true, lag-heavy chunk activity is monitored and throttled.
# If false, no chunk cooldowns are applied.
enabled: true
# Maximum tracked lag actions allowed per chunk per second.
max-lag-actions-per-second: 20
# Maximum armor stands allowed in one chunk.
max-armor-stands-per-chunk: 50
# Cooldown in seconds after the first violation.
cooldown-tier-1: 5
# Cooldown in seconds after the second violation.
cooldown-tier-2: 30
# Cooldown in seconds after the third violation and higher.
cooldown-tier-3: 300
# Extra seconds added for each violation tier above tier 3.
cooldown-additive-step: 300
# Minutes without new violations before a chunk's violation tier resets.
violation-reset-minutes: 10
# Worlds where this module should not run.
disabled-worlds: []
?Modules/LagShield.yml
# -----------------------------------------------------------------------------
# LagShield
# -----------------------------------------------------------------------------
# Applies emergency protections while TPS is low: firework cooldowns, explosion
# chain blocking, hopper throttling, passive mob AI freezing and distance scaling.
# -----------------------------------------------------------------------------
LagShield:
# If true, LagShield protections can activate during low TPS.
# If false, no emergency protections are applied.
enabled: true
# Worlds where this module should not run.
disabled-worlds: []
# If true, elytra firework spam is limited when TPS is below threshold.
# If false, fireworks are never limited by LagShield.
firework-cooldown: true
# Ticks between firework launches while cooldown is active.
firework-cooldown-ticks: 60
# TPS threshold where firework cooldown starts.
firework-cooldown-tps: 19.0
# If true, TNT and crystal chain reactions are blocked during low TPS.
# If false, explosion chains are never blocked by LagShield.
block-tnt-and-crystal-chain: true
# TPS threshold where TNT/crystal chain blocking starts.
tnt-crystal-chain-tps: 15.0
# If true, hoppers and hopper minecarts are throttled during low TPS.
# If false, hopper transfers are never slowed by LagShield.
# Uses HopperOptimizer's lock cache so both modules never double-lock.
hoppers-slowdown: true
# TPS threshold where hopper slowdown starts.
hoppers-slowdown-tps: 15.0
# Ticks a hopper waits after each blocked transfer during slowdown.
hoppers-slowdown-ticks: 8
# If true, passive mob AI is frozen during low TPS.
# If false, passive mob AI is never frozen by LagShield.
freeze-passive-mob-ai: true
# TPS threshold where passive mob AI freezing starts.
freeze-passive-mob-ai-tps: 15.0
# If true, view/simulation distance is reduced during low TPS.
# If false, distances are never changed by LagShield.
dynamic-distance-scaling: true
# TPS threshold where dynamic distance scaling starts.
dynamic-distance-scaling-tps: 16.0
# Minimum view distance while dynamic scaling is active.
distance-scaling-min-view-distance: 3
# Minimum simulation distance while dynamic scaling is active.
distance-scaling-min-simulation-distance: 2
# If true, natural mob spawning is blocked when TPS drops below threshold.
# Prevents lag from mob spawns during server stress.
# Works by cancelling CreatureSpawnEvent for NATURAL and SPAWNER reasons.
disable-mob-spawning-below-tps-enabled: false
# TPS level below which mob spawning is blocked.
# Natural spawns are cancelled until TPS recovers above this value.
disable-mob-spawning-below-tps-threshold: 15.0
?Modules/VillagerOptimizer.yml
# -----------------------------------------------------------------------------
# VillagerOptimizer
# -----------------------------------------------------------------------------
# Freezes AI for caged villagers, wakes them for trading, and refreezes them
# after trading to reduce villager tick load.
# -----------------------------------------------------------------------------
VillagerOptimizer:
# If true, caged villagers can be optimized.
# If false, villagers keep normal AI behavior.
enabled: true
# Ticks between villager cage scans. 20 ticks = 1 second.
task-interval-ticks: 300
# Minimum blocked sides required to count a villager as caged. Range: 1-4.
min-blocked-sides: 3
# If true, AI is restored when a villager is no longer caged.
# If false, optimized villagers stay frozen until another module action changes them.
restore-ai-when-uncaged: true
# If true, villagers wake when players interact or trade.
# If false, optimized villagers stay frozen during interaction.
wake-on-interact: true
# If true, villagers freeze again after the trade window closes.
# If false, villagers stay awake after trading.
refreeze-after-trade: true
# If true, villagers with custom names are never optimized.
# If false, named villagers can be optimized.
skip-named-villagers: true
# If true, optimization actions are logged to console.
# If false, the module runs quietly.
debug: false
# Worlds where this module should not run.
disabled-worlds: []
评论 0
登录后参与评分
还没有评论,来抢沙发吧