Плагин Механика ⭐ hAirdrops ⭐ [1.16.X-26.X] | Folia, PAPI, Nexo, Oraxen, ItemsAdder, MythicMobs and more support! [4.0.6]

1. Restore active airdrops after a restart. Configurable in "config.yml" under the "settings.restoreActiveAirdrops" key. The default value is "false," meaning disabled.
2. Public API for other plugins. The Bukkit Services API HAirdropsApi has been added. Through it, any plugin can:
2.1 Get a list of airdrop definitions;
2.2 Find out the number of active and scheduled airdrops;
2.3 Get the location of an active airdrop;
2.4 Check for spawn availability;
2.5 Spawn an airdrop automatically or by coordinates;
2.6 Delete an airdrop.
3. Added new diagnostic commands: /hairdrops <perf/validate/whyspawn>
4. Updated /hairdrops reload logic (It's now safer for production servers; for example, it won't let you restart at runtime with a broken config and will use the latest working version)
5. Performance optimization
6. Improved handling of air in schematics, a kind of "smart insertion." Previously:
ignoreAirBlocks: true/false (A stupid insertion, it leaves behind air from the schematic and ruins the visual scene)
ignoreAirBlocks:
enable: true
mode: SMART/DEFAULT (Default is the same stupid mod, maybe someone will find it useful, since it's used in all the plugins I know. That's why I developed my own SMART mod—it's a smart insertion. It doesn't replace ALL blocks with air from the schematic, it only replaces them where needed). This is really necessary for correct insertion.
7. Removed support for HexSupport and Legacy color codes (for now, the plugin automatically converts them to MiniMessage format, but this is only in this update; they will be completely unsupported in the future, so migrate to MM as soon as possible.)
8. Removed support for [HoverText: ...] since it already exists in MiniMessage and can be implemented through it.
9. Removed debug settings from the main config and moved to a separate "debug.yml"
10. Improved support for disabling gameMode - there is now a separate setting for which mode to switch to, target: "SURVIVAL/ADVENTURE/SPECTATOR" for any task and any server type.
  • Изменена логика обработки чанков: параметр keepChunkLoaded удалён из конфигурации.
  • Убрана внешняя загрузка Caffeine — теперь библиотека встроена в jar плагина, что ускоряет запуск (размер jar увеличен).
  • Обновлены Fastutil и Caffeine до последних версий.
  • Проведён полный рефакторинг кода.
  • Добавлена команда /hairdrops hooks, отображающая активные хуки.
  • Добавлен блок debug в конфигурацию для отслеживания ошибок плагина (рекомендуется включать только для настройки, на продакшене — отключать).
  • Добавлен EssentialsHook для корректного отключения GOD и VANISH при передаче состояния от EssentialsX.
  • Добавлена секция restrictions с ограничениями для аирдропов:
    • GM1, FLY, VANISH, GOD
    • поддержка проверок при входе в зону и при попытке открыть аирдроп
  • Добавлен файл переводов translations/restrictions.yml для кастомизации названий ограничений.
  • Добавлены новые примеры логики аирдропов:
    • gravity — притягивание игроков к центру и периодический подброс
    • ice — ледяная оболочка, блокирующая открытие до разрушения
  • Добавлен расширенный example-плагин с полным набором параметров и конфигураций.
  • Добавлены новые настройки частиц в конфиг:
    • particleRenderMode (WORLD / PACKET)
    • particleHardBudgetPerTick
    • forceInventorySync
    • syncHiddenDropViewers
  • Добавлены пресеты анимаций:
    • CUSTOM
    • SIMPLE
    • EPIC
    • LOW_FPS
  • Поддержка плагина ограничена версиями 1.20.4+ и Java 21.
  • Улучшена поддержка Folia: снижено использование reflection, переход на прямой API.
  • Голограммы теперь используют TextHologram вместо ArmorStand.
  • PlaceholderAPI теперь обязательная зависимость.
  • Проведены многочисленные микро-оптимизации, существенно улучшившие производительность плагина.
ВерхНиз