mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Add database close() on disable
This commit is contained in:
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!");
|
||||
|
||||
Reference in new issue
Block a user