From 52e0d9978b68eda2c2fe0879b60ea4552a08283f Mon Sep 17 00:00:00 2001 From: IamTheDefender <72926871+IamTheDefender@users.noreply.github.com> Date: Sat, 25 Mar 2023 11:41:26 +0530 Subject: [PATCH] Fixed issue with SQLite --- .../java/me/defender/cosmetics/database/sqlite/SQLite.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/me/defender/cosmetics/database/sqlite/SQLite.java b/src/main/java/me/defender/cosmetics/database/sqlite/SQLite.java index e5d6f83c..044a31d3 100644 --- a/src/main/java/me/defender/cosmetics/database/sqlite/SQLite.java +++ b/src/main/java/me/defender/cosmetics/database/sqlite/SQLite.java @@ -24,6 +24,11 @@ public SQLite(JavaPlugin plugin){ public void connect(){ if(dataSource == null){ String jdbcUrl = "jdbc:sqlite:" + plugin.getDataFolder().getPath() + "/playerData.db"; + try{ + Class.forName("org.sqlite.JDBC"); + }catch (ClassNotFoundException e) { + Bukkit.getLogger().severe("SQLite class not found! SQLite is not supported!"); + } HikariConfig config = new HikariConfig(); config.setJdbcUrl(jdbcUrl); config.setUsername("");