Fix Small DBConnection issue

This commit is contained in:
MistPhizzle 2015-08-19 11:46:44 -04:00
parent c8a6b258f7
commit 989a1dfbdc

View file

@ -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();