public static void start(String databaseName, String databasePath) { if (isOnline()) { Logger.error("Server Already online"); } else { instance.databaseName = databaseName; instance.databasePath = databasePath; instance.startServer(); } }
public static void stop() { if (isOnline()) { instance.stopServer(); } else { Logger.error("Server not online"); } }
public static boolean isOnline() { return instance.isServerOnline(); }