▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/zNxPiglinRush
zNxPiglinRush

zNxPiglinRush

Increases Zombified Piglin spawn rate on magma blocks for gold farms

Оцените первым
48
0
Все версииzNxPiglinRush 2.0.0

zNxPiglinRush 2.0.0

Release09.06.2026

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

🔥 v2.0.0 — Architecture Overhaul

Complete rewrite of the plugin internals. Same behaviour on the surface, professional-grade code underneath. Drop-in update — just swap the jar and run /pr reload.


🏗️ Package Restructure

The entire codebase has been reorganised into a clean, domain-driven package layout under dev.znxki.zNxPiglinRush:

Old packageNew package
config.enginespawner.strategy
config.registryspawner.registry
config.spawnerconfig (→ SpawnerDefinition)
eventslistener
hookintegration
stats.repositorystats.storage

Main class renamed from ZNxPiglinRushPiglinRushPlugin.


🧩 Interface-backed Architecture

Four new API interfaces introduced under dev.znxki.zNxPiglinRush.api:

  • SchedulerService — abstracts Folia vs Spigot/Paper scheduling. Two implementations: FoliaSchedulerService and BukkitSchedulerService, selected at runtime via SchedulerServiceFactory
  • SpawnStrategy — strategy pattern for spawn behaviour. Implementations: StandardSpawnStrategy and WaveSpawnStrategy. SpawnLocationResolver extracted as a shared utility
  • StatsProvider — read-only interface over spawn statistics. SpawnTracker (ex SpawnStats) implements it
  • StorageBackend — persistence abstraction. SqliteStorageBackend is the built-in implementation

⚙️ Config Updater

New ConfigUpdater automatically migrates old config files to the current schema without overwriting user values:

  • Detects config version via config-version field (absent = legacy v1)
  • v1 → v2: moves flat keys (spawn-count, spawn-cooldown, etc.) into spawners.magma_block.*, preserving all user-set values
  • Creates a timestamped backup (config_backup_YYYYMMDD_HHmmss.yml) before any migration
  • Fills missing keys from bundled defaults on every startup — future updates add new options automatically

🔧 Other Improvements

  • ModrinthUpdateSource extracted from UpdateChecker — HTTP logic is now separate and swappable
  • SpawnContext record introduced — passes spawn event data cleanly into strategy implementations
  • Fixed update-checker permission check: was magmaspawner.admin, now correctly piglinrush.admin
  • Fixed getMagmaConfig() leftover reference — now getPluginConfig()
  • Renamed: HeatmapManagerHeatmapService, DiagnosticsMonitorDiagnosticsService, BlockSpawnerConfigSpawnerDefinition, PiglinRushConfigPluginConfig

Файлы

zNxPiglinRush-2.0.0.jar(13.40 MiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

2.0.0

Загрузчики

Folia
Paper
Purpur
Spigot

Версии игры

26.1.2

Загрузок

5

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

09.06.2026

Загрузил

ID версии

Главная