ATW Control Player BD

About

ATWControlPlayerBD is a Minecraft plugin that monitors database connectivity and automatically secures the server during outages. Every 30 seconds it asynchronously checks the MySQL/MariaDB connection using HikariCP connection pooling. When a connection failure is detected, the plugin enables the server whitelist, adds configured player names (PlayeR_SkiLL and sk98q) to it, and broadcasts a configurable warning message. The plugin then checks connectivity every 5 seconds; if the database remains unreachable for 5 minutes, all players are kicked with a configurable reason. After kicking, checks continue every 15 seconds until the connection is restored, at which point the whitelist is automatically disabled. The plugin includes optional Telegram webhook notifications for critical events, configurable database credentials, and requires atw.admin permission for administrative commands.