mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Restructure connection interfacing system
This commit is contained in:
1 parent
894b50ad0d
commit
7ef9159daf
33 files changed
+200
-256
No files matched your search
@@ -28,6 +28,7 @@ import java.io.InputStreamReader;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import java.sql.Connection;
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashSet;
|
||||
import java.util.UUID;
|
||||
import java.util.logging.Level;
|
||||
@@ -42,7 +43,7 @@ public final class HuskHomes extends JavaPlugin {
|
||||
|
||||
// Database handling
|
||||
private static Database database;
|
||||
public static Connection getConnection() {
|
||||
public static Connection getConnection() throws SQLException {
|
||||
return database.getConnection();
|
||||
}
|
||||
public static void backupDatabase() { database.backup(); }
|
||||
|
||||
Reference in new issue
Block a user