Список изменений
[1.0.18] - 2026-08-03
🔧 Database & Connection Pool
- MySQL: Plugin now auto-creates the database if it doesn't exist (
CREATE DATABASE IF NOT EXISTS). No need to manually create it anymore. - MySQL: Enabled TCP keepalive (120s) to prevent the connection pool from becoming unresponsive on unstable networks.
- MySQL: Increased
connectionTimeoutfrom 5s to 15s to handle server load spikes. - SQLite: Reduced
maximumPoolSizefrom 5 to 1 — SQLite is an embedded database and does not benefit from multiple connections, which could causeSQLITE_BUSYerrors. - SQLite: Enabled TCP keepalive (120s) for the same reason as MySQL.
- SQLite: Increased
connectionTimeoutfrom 5s to 10s. - Both: Added graceful shutdown for
ExecutorServicewithawaitTermination(5s)to ensure pending database operations complete before the server shuts down.
🛡️ Plugin Lifecycle
- Wrapped
onDisable()in atry-catch-finallyblock so thatdatabaseConnection.disconnect()is always called, even if an error occurs during shutdown (e.g., saving regions).
🐛 Bug Fixes
- Fixed duplicate YAML key warnings: The
ConfigUpdaterwas inserting keys that already existed in the user's config files, causing repeatedduplicate keys foundwarnings from the YAML parser. Added a pre-insertion check to skip keys that already exist. - Fixed invalid YAML generation: List values containing special YAML characters (like
|,:,{, etc.) are now properly quoted when inserted by theConfigUpdater, preventingmapping values are not allowed hereparse errors. - Silent corrupted file recovery: When a user's config/menu file is corrupted, the plugin now detects it silently (no errors in console), backs it up, and regenerates it automatically from the JAR. Previously this would flood the server console with YAML parse errors.
- Synced version in
plugin.ymlwithpom.xml(was out of sync).
✨ Improvements
- Clickable update notification: The download link shown to admins on player join is now clickable (opens browser to Modrinth page).
- Dynamic plugin name: The update notification now displays the project name fetched from the Modrinth API instead of a hardcoded string.
Файлы
AmplProtections-1.0.18.jar(1.64 MiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.0.18
Загрузчики
PaperPurpurSpigot
Версии игры
1.21–26.2
Загрузок
13
Дата публикации
03.08.2026

