mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-19 00:26:39 +00:00
Fix Small DBConnection issue
This commit is contained in:
parent
c8a6b258f7
commit
989a1dfbdc
|
@ -38,7 +38,7 @@ public class DBConnection {
|
||||||
sql.modifyQuery(query);
|
sql.modifyQuery(query);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sql = new SQLite(ProjectKorra.log, "", "projectkorra.db", ProjectKorra.plugin.getDataFolder().getAbsolutePath());
|
sql = new SQLite(ProjectKorra.log, "Establishing SQLite Connection.", "projectkorra.db", ProjectKorra.plugin.getDataFolder().getAbsolutePath());
|
||||||
if (((SQLite) sql).open() == null) {
|
if (((SQLite) sql).open() == null) {
|
||||||
ProjectKorra.log.severe("Disabling due to database error");
|
ProjectKorra.log.severe("Disabling due to database error");
|
||||||
GeneralMethods.stopPlugin();
|
GeneralMethods.stopPlugin();
|
||||||
|
|
Loading…
Reference in a new issue