Fix local variables in sql queries within the same tick & first startup errors

This commit is contained in:
2020-07-31 11:50:44 +03:00
parent 11063c166d
commit a63a4c6d6f
4 changed files with 59 additions and 51 deletions

View File

@@ -91,19 +91,20 @@ public final class SkriptDB extends JavaPlugin {
@Override
public void onEnable() {
try {
rowSetFactory = RowSetProvider.newFactory();
getAddonInstance().loadClasses("com.btk5h.skriptdb.skript");
} catch (SQLException e) {
throw new RuntimeException(e);
} catch (IOException e) {
e.printStackTrace();
}
try {
setupConfig();
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
rowSetFactory = RowSetProvider.newFactory();
getAddonInstance().loadClasses("com.btk5h.skriptdb.skript");
} catch (SQLException e) {
throw new RuntimeException(e);
} catch (IOException e) {
e.printStackTrace();
}
}
}