
NeuroLag
A smart, resource-aware optimization plugin that dynamically adjusts Mob AI based on server TPS and RAM to ensure a lag-free SMP experience
46
1
Список изменений
[1.0.4] — 2025-03-10
Fixed
- Deprecated BungeeCord API removed.
spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(...))was replaced with Paper's native Adventure API:player.sendActionBar(LegacyComponentSerializer.legacyAmpersand().deserialize(...)). The old API is not available on Paper 1.21.3 and would cause a crash or silent failure on action bar notifications. pom.xmlversion mismatch fixed.<version>was1.0.0whileplugin.ymldeclared1.0.3, causing Maven to produceNeuroLag-1.0.0.jarinstead of the expected filename.- Hysteresis buffer is now configurable. The recovery buffer (
0.5) was hardcoded incomputeStatus(). It is now read fromsettings.hysteresis-bufferinconfig.yml. /nlag graphwas undocumented. Added toplugin.ymlusage string and to the help message shown by/nlag.shouldOptimizeexplicit cast removed. The(Mob) entitycast afterinstanceof Mobcheck was unnecessary; replaced with pattern-matchinginstanceof Mob mobat the call site.togglecommand no longer leaves mobs frozen. When manual override is turned off,restoreAllAI()is now called before resuming the monitor task so any frozen mobs are immediately unfrozen.- TPS value capped at 20.0 before storing and displaying, preventing artificially high values (Paper can briefly report >20 TPS) from skewing the graph and average.
logEnablednow logs state transitions, including world name, new state, current TPS, and affected mob count — more useful for diagnosing server lag patterns.onDisablelog message added to confirm AI restoration on server shutdown.
Changed
config.ymlcomments rewritten in English and expanded with usage notes for each option.plugin.ymlusage string updated to list all four subcommands:reload,status,toggle,graph.computeStatusrefactored to useswitchexpression (Java 14+) for readability.drawGraphimproved: empty cells now render as░instead of a space, making the chart easier to read in chat.statuscommand now displays per-world states with a(no data yet)fallback when the monitor hasn't run yet.- Added
README.mdandCHANGELOG.md.
Файлы
NeuroLag-1.0.4.jar(16.22 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.0.4
Загрузчики
BukkitPaperPurpurSpigot
Версии игры
1.21–1.21.11
Загрузок
2
Дата публикации
2 нед. назад
