9
0
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:
SamB440
2023-04-23 21:21:51 +01:00
parent c8aedf375c
commit 98658c7f48

View File

@@ -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) -> {