Skip to content

Commit

Permalink
Fixed issue with SQLite
Browse files Browse the repository at this point in the history
  • Loading branch information
IamTheDefender committed Mar 25, 2023
1 parent 0d1fad1 commit 52e0d99
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
Expand Down

0 comments on commit 52e0d99

Please sign in to comment.