diff --git a/src/main/java/me/youhavetrouble/preventstabby/PreventStabby.java b/src/main/java/me/youhavetrouble/preventstabby/PreventStabby.java index 9af9646..6ebefa5 100644 --- a/src/main/java/me/youhavetrouble/preventstabby/PreventStabby.java +++ b/src/main/java/me/youhavetrouble/preventstabby/PreventStabby.java @@ -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."); @@ -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> listenerClasses = reflections.getTypesAnnotatedWith(PreventStabbyListener.class); listenerClasses.forEach((listener)-> { try {