Skip to content

Commit

Permalink
yeat it kinda fixes the whole thing
Browse files Browse the repository at this point in the history
  • Loading branch information
YouHaveTrouble committed Jul 29, 2021
1 parent ee12750 commit 6de41b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void onEnable() {
Util.initData();
reloadPluginConfig();
File dbFile = new File("plugins/PreventStabby");
sqLite = new DatabaseSQLite("jdbc:sqlite:plugins/PreventStabby/TogglePvP.db", dbFile);
sqLite = new DatabaseSQLite("jdbc:sqlite:plugins/PreventStabby/database.db", dbFile);
sqLite.createDatabaseFile();
if (!sqLite.testConnection()) {
getLogger().severe("Error with accessing database. Check if server has write rights.");
Expand All @@ -44,7 +44,7 @@ public void onEnable() {
smartCache.runSmartCache();

// Register listeners
Reflections reflections = new Reflections(new String[]{"eu.endermite.preventstabby"});
Reflections reflections = new Reflections(new String[]{"me.youhavetrouble.preventstabby"});
Set<Class<?>> listenerClasses = reflections.getTypesAnnotatedWith(PreventStabbyListener.class);
listenerClasses.forEach((listener)-> {
try {
Expand Down

0 comments on commit 6de41b6

Please sign in to comment.