▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
NeuroLag

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
Все версииNeuroLag 1.0.4

NeuroLag 1.0.4

Release2 нед. назад

Список изменений

[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.xml version mismatch fixed. <version> was 1.0.0 while plugin.yml declared 1.0.3, causing Maven to produce NeuroLag-1.0.0.jar instead of the expected filename.
  • Hysteresis buffer is now configurable. The recovery buffer (0.5) was hardcoded in computeStatus(). It is now read from settings.hysteresis-buffer in config.yml.
  • /nlag graph was undocumented. Added to plugin.yml usage string and to the help message shown by /nlag.
  • shouldOptimize explicit cast removed. The (Mob) entity cast after instanceof Mob check was unnecessary; replaced with pattern-matching instanceof Mob mob at the call site.
  • toggle command 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.
  • logEnabled now logs state transitions, including world name, new state, current TPS, and affected mob count — more useful for diagnosing server lag patterns.
  • onDisable log message added to confirm AI restoration on server shutdown.

Changed

  • config.yml comments rewritten in English and expanded with usage notes for each option.
  • plugin.yml usage string updated to list all four subcommands: reload, status, toggle, graph.
  • computeStatus refactored to use switch expression (Java 14+) for readability.
  • drawGraph improved: empty cells now render as instead of a space, making the chart easier to read in chat.
  • status command now displays per-world states with a (no data yet) fallback when the monitor hasn't run yet.
  • Added README.md and CHANGELOG.md.

Файлы

NeuroLag-1.0.4.jar(16.22 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.0.4

Загрузчики

Bukkit
Paper
Purpur
Spigot

Версии игры

1.21–1.21.11

Загрузок

2

Дата публикации

2 нед. назад

Загрузил

ID версии

Главная