Перейти к содержимому

Allium 0.2.5a для Minecraft 26.2 (Paper, Purpur)

Релиз6 июля 2026Minecraft 1.20–26.2PaperPurpurSpigot15 скачиваний на Modrinth
Это не последняя версия. Последняя для 26.2 · Bukkit — 1.0.4+mc1.20-26.3-paperОткрыть 1.0.4+mc1.20-26.3-paper →

Файлы · 1

Allium.jarОсновной1,56 МБСкачать
Основной · 1,56 МБ
SHA-174fdf3800e499614a97a2a1fadfa8736c658188aSHA-512bd0d3a230d16d9ba4a957eab2b251e5d6432bd99f2084579cdcc587eef0b77d28967c094a69dffa2809091cb8fdb771dc2037ebc596fc5759ba32720f5416cbd
Скачать

Что изменилось

Allium v0.2.5a

Wiki: https://github.com/castledking/Allium/wiki

Highlights

  • Translation probe config corruption fixed — applyBundledDefaults no longer calls config.save(), preventing the old JAR's defaults from being written to disk on every restart. A new seedMissingProbeConfig() method writes the translation-probe section to disk only when the file actually lacks it (using contains(path, true) to ignore in-memory defaults).
  • Hardcoded probe check fallback — loadChecks() now cascades: disk config → bundled resource → createDefaultChecks() with 16 hardcoded checks (meteor + 14 IPN + 2 libIPN). This ensures the probe always has checks even when both the disk config and old JAR resource lack the section.
  • Probe enabled fallback — isEnabled() now falls back to root enabled, so the probe registers even when the translation-probe section is entirely absent from the config file.
  • Stealthier probe — CloseWindow is sent immediately (no 2-tick delay, sign GUI never renders), and the sign position is Y - 30 below the player (out of view). Zero visual flicker.
  • /allium modguard reload — New command unregisters the probe, reloads the config from disk, and re-registers. Requires allium.admin.

Bug Fixes

BugRoot CauseFix
Config file overwritten on every restartapplyBundledDefaults called config.save() with copyDefaults(true), writing old JAR defaults back to diskRemoved config.save() and copyDefaults(true) from applyBundledDefaults
translation-probe section never persisted to diskseedMissingProbeConfig used config.contains("translation-probe") which returned true from defaults set by applyBundledDefaults — even though the file lacked the sectionChanged to config.contains("translation-probe", true) to ignore defaults and check only the file
Probe has no checks after config corruptionloadChecks() had no fallback when both disk config and bundled resource lacked the checks sectionAdded createDefaultChecks() with 16 hardcoded checks as final fallback
Probe doesn't fire when translation-probe section is missingregisterTranslationProbe() and isEnabled() returned false for config.getBoolean("translation-probe.enabled", false) when the section was absentChanged fallback to config.getBoolean("translation-probe.enabled", config.getBoolean("enabled", false))
Probe delay too slow (3s) and timeout too long (4s)Config defaults for delay-ticks (60) and timeout-ticks (80) were unnecessarily conservativeChanged to 10 ticks (0.5s) and 30 ticks (1.5s)
Sign GUI visible to player on joinCloseWindow was sent after a 2-tick delay, giving the client time to render the signCloseWindow sent immediately in the same packet batch; sign placed 30 blocks below player
No reload command — required full restart for config changesNo implementationAdded /allium modguard reload which calls ModGuardManager.reload()

Files Changed (4)

FileChange
managers/security/ModGuardManager.javaapplyBundledDefaults no longer saves to disk; added seedMissingProbeConfig() with contains(path, true) guard; added reload() static method; added /allium modguard reload dispatcher
managers/security/ModGuardTranslationProbe.javaAdded createDefaultChecks() (16 hardcoded checks); loadChecks() now cascades config → bundled → hardcoded; isEnabled() falls back to root enabled; CloseWindow immediate; sign Y -30; delay-ticks 10, timeout-ticks 30
modguard/config.ymlCleaned up: removed debug, regex-matching, case-sensitive, banned-mods, allowed-mods; added translation-probe section with all 16 checks with require-corroboration-for-kick: false
commands/Core.javaAdded handleModGuardCommand() for /allium modguard reload

Technical Details

Config Persistence Chain

The old code had two bugs forming a corruption loop:

  1. applyBundledDefaults called config.save() with the old JAR's bundled config (no translation-probe section), overwriting user changes on every restart
  2. Even after removing config.save(), seedMissingProbeConfig checked config.contains("translation-probe") — but applyBundledDefaults had already set the NEW bundled resource as defaults, which DO contain the section. So contains() returned true from defaults and seedMissingProbeConfig returned early without persisting

Fix: seedMissingProbeConfig now uses config.contains("translation-probe", true) to skip default-only matches. It also writes the full 16-check section to disk when absent, so subsequent restarts load it directly from the file.

Probe Check Fallback Chain

loadChecks() now follows this order:

  1. config().getConfigurationSection("translation-probe.checks") — reads from the in-memory config (loaded from disk or defaults)
  2. loadBundledChecks() — reads from the JAR resource (modguard/config.yml) and copies checks into the in-memory config
  3. createDefaultChecks() — 16 hardcoded checks: meteor + 14 IPN (key.inventoryprofiles.*) + 2 libIPN

This ensures the probe always has checks regardless of which JAR version is deployed or whether the config file contains the section.

Support and Feedback

Issues: https://github.com/castledking/Allium/issues Wiki: https://github.com/castledking/Allium/wiki Discord: https://discord.com/invite/pCKdCX6nYr Website: https://castled.codes/

Сайт использует cookie: необходимые — для входа и темы, а также счётчики посещений Яндекс Метрика и LiveInternet — по ним мы видим, как пользуются сайтом. Рекламных cookie у нас нет. Подробнее