From 6de41b68bd8d3d411064336f86ec364b1d44ea43 Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Thu, 29 Jul 2021 13:34:55 +0200 Subject: [PATCH] yeat it kinda fixes the whole thing --- .../java/me/youhavetrouble/preventstabby/PreventStabby.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {