mirror of
https://github.com/YouHaveTrouble/PreventStabby.git
synced 2026-05-12 13:26:56 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6de41b68bd |
@@ -31,7 +31,7 @@ public final class PreventStabby extends JavaPlugin {
|
|||||||
Util.initData();
|
Util.initData();
|
||||||
reloadPluginConfig();
|
reloadPluginConfig();
|
||||||
File dbFile = new File("plugins/PreventStabby");
|
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();
|
sqLite.createDatabaseFile();
|
||||||
if (!sqLite.testConnection()) {
|
if (!sqLite.testConnection()) {
|
||||||
getLogger().severe("Error with accessing database. Check if server has write rights.");
|
getLogger().severe("Error with accessing database. Check if server has write rights.");
|
||||||
@@ -44,7 +44,7 @@ public final class PreventStabby extends JavaPlugin {
|
|||||||
smartCache.runSmartCache();
|
smartCache.runSmartCache();
|
||||||
|
|
||||||
// Register listeners
|
// 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);
|
Set<Class<?>> listenerClasses = reflections.getTypesAnnotatedWith(PreventStabbyListener.class);
|
||||||
listenerClasses.forEach((listener)-> {
|
listenerClasses.forEach((listener)-> {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user