Add database close() on disable

This commit is contained in:
William committed 2021-10-03 00:19:42 +01:00
1 parent 4328c57222
commit 528dd50ef1
4 files changed
+19

No files matched your search

@@ -112,6 +112,13 @@ public class MySQL extends Database {
}
}
@Override
public void close() {
if (dataSource != null) {
dataSource.close();
}
}
@Override
public void backup() {
plugin.getLogger().info("Remember to make backups of your HuskHomes Database before updating HuskHomes!");