mirror of
https://gitlab.com/SamB440/rpgregions-2.git
synced 2025-12-28 11:19:24 +00:00
Fix connection not being closed
This commit is contained in:
@@ -44,6 +44,7 @@ public class RPGRegionsDebugCommand {
|
||||
sender.sendMessage(ChatColor.GRAY + "Version: " + connection.getMetaData().getDatabaseProductVersion());
|
||||
sender.sendMessage(ChatColor.GRAY + "Driver: " + connection.getMetaData().getDriverName());
|
||||
sender.sendMessage(ChatColor.GRAY + "Version: " + connection.getMetaData().getDriverVersion());
|
||||
database.closeConnection(connection);
|
||||
}
|
||||
|
||||
plugin.getManagers().getRegionsCache().getConfiguredRegions().forEach((name, configuredRegion) -> {
|
||||
|
||||
Reference in New Issue
Block a user