diff --git a/src/main/java/louisvallat/xyz/backhome/BackHome.java b/src/main/java/louisvallat/xyz/backhome/BackHome.java index 93cb9fd..ff11aec 100644 --- a/src/main/java/louisvallat/xyz/backhome/BackHome.java +++ b/src/main/java/louisvallat/xyz/backhome/BackHome.java @@ -12,6 +12,7 @@ import org.bukkit.event.Listener; import org.bukkit.event.entity.PlayerDeathEvent; import org.bukkit.plugin.java.JavaPlugin; +import java.io.File; import java.sql.*; import java.text.SimpleDateFormat; import java.util.ArrayList; @@ -78,7 +79,7 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { * @throws SQLException if the connection couldn't be established. */ private Connection getConnection() throws SQLException { - return DriverManager.getConnection("jdbc:sqlite:" + return DriverManager.getConnection("jdbc:sqlite:" + getDataFolder() + File.separator + getConfig().getString(DB_NAME_KEY)); }