diff --git a/Plan/src/main/java/com/djrapitops/plan/command/commands/ReloadCommand.java b/Plan/src/main/java/com/djrapitops/plan/command/commands/ReloadCommand.java index 8c8fb9284..7e201b5fd 100644 --- a/Plan/src/main/java/com/djrapitops/plan/command/commands/ReloadCommand.java +++ b/Plan/src/main/java/com/djrapitops/plan/command/commands/ReloadCommand.java @@ -38,10 +38,8 @@ public class ReloadCommand extends SubCommand { try { plugin.reloadPlugin(true); } catch (Exception e) { - sender.sendMessage("§cSomething went wrong during reload of the plugin, a restart is recommended."); - String address = plugin.getWebServer().getAccessAddress() + "/debug"; - sender.sendLink("More info can be found at ", address, address); Log.toLog(this.getClass().getName(), e); + sender.sendMessage("§cSomething went wrong during reload of the plugin, a restart is recommended."); } sender.sendMessage(Locale.get(Msg.CMD_INFO_RELOAD_COMPLETE).toString()); return true; diff --git a/Plan/src/main/java/com/djrapitops/plan/systems/file/database/DBSystem.java b/Plan/src/main/java/com/djrapitops/plan/systems/file/database/DBSystem.java index 1860a9785..eb69607d4 100644 --- a/Plan/src/main/java/com/djrapitops/plan/systems/file/database/DBSystem.java +++ b/Plan/src/main/java/com/djrapitops/plan/systems/file/database/DBSystem.java @@ -17,6 +17,7 @@ import main.java.com.djrapitops.plan.systems.SubSystem; import main.java.com.djrapitops.plan.systems.Systems; import java.sql.SQLException; +import java.util.HashSet; import java.util.Set; /** @@ -29,6 +30,10 @@ public abstract class DBSystem implements SubSystem { protected SQLDB db; protected Set databases; + public DBSystem() { + databases = new HashSet<>(); + } + public static DBSystem getInstance() { return Systems.getInstance().getDatabaseSystem(); } diff --git a/Plan/src/main/java/com/djrapitops/plan/systems/file/database/PlanDBSystem.java b/Plan/src/main/java/com/djrapitops/plan/systems/file/database/PlanDBSystem.java index a91d2634c..b6405b8b0 100644 --- a/Plan/src/main/java/com/djrapitops/plan/systems/file/database/PlanDBSystem.java +++ b/Plan/src/main/java/com/djrapitops/plan/systems/file/database/PlanDBSystem.java @@ -9,8 +9,6 @@ import main.java.com.djrapitops.plan.database.databases.MySQLDB; import main.java.com.djrapitops.plan.database.databases.SQLiteDB; import main.java.com.djrapitops.plan.settings.Settings; -import java.util.HashSet; - /** * //TODO Class Javadoc Comment * @@ -20,7 +18,6 @@ public class PlanDBSystem extends DBSystem { @Override protected void initDatabase() throws DatabaseInitException { - databases = new HashSet<>(); databases.add(new MySQLDB()); databases.add(new SQLiteDB());