try { this.databaseManager = DatabaseManager.newBuilder() .withName("onlinereward") .withOwnerPlugin(this) .withSqlConfiguration(DatabaseManager.setupDatabase(this)) .withModelClass(Arrays.asList(OnlineModel.class)) .build() .openConnection(); } catch (DatabaseInitException | ConfigurationException e) { getLogger().warning("Database failed to connect because " + e.getLocalizedMessage()); getServer().getPluginManager().disablePlugin(this); return; }
There was an error while loading. Please reload this page.