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 9bb2354
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.defender</groupId>
<artifactId>BW1058-Cosmetics</artifactId>
<version>1.4</version>
<version>1.4.1</version>
<packaging>jar</packaging>

<name>Cosmetics</name>
Expand Down
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 9bb2354

Please sign in to comment.