Add HomeListEvent and WarpListEvent

This commit is contained in:
William278 committed 2022-09-04 16:50:27 +03:00
1 parent fbe82a46a0
commit 5f3958bb5b
14 files changed
+310 -70

No files matched your search

@@ -147,10 +147,6 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes {
getLoggingAdapter().log(Level.INFO, "Successfully initialized the network messenger.");
}
// Initialize the cache
cache = new Cache();
cache.initialize(database);
// Prepare the teleport manager
this.teleportManager = new TeleportManager(this);
@@ -160,6 +156,10 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes {
// Prepare the event dispatcher
this.eventDispatcher = new BukkitEventDispatcher(this);
// Initialize the cache
cache = new Cache(eventDispatcher);
cache.initialize(database);
// Prepare the home and warp position manager
this.savedPositionManager = new SavedPositionManager(database, cache, eventDispatcher,
settings.allowUnicodeNames, settings.allowUnicodeDescriptions);