Save and load quests from the database

This commit is contained in:
2022-06-01 23:17:45 +02:00
parent 063fc4061e
commit e9bdb6a70d
6 changed files with 94 additions and 28 deletions
@@ -21,11 +21,14 @@ public class Database {
public static Database getDatabase(){
if (instance == null)
{
instance = new Database();
instance.init();
}
return (instance);
}
public void init() {
protected void init() {
try {
openConnection();
} catch (SQLException e) {