Refactor event dispatch system

This commit is contained in:
William committed 2023-03-17 10:55:28 +00:00
1 parent 9ca141a58f
commit 9903503f03
27 files changed
+329 -404

No files matched your search

@@ -39,7 +39,7 @@ import java.util.logging.Level;
/**
* Represents a cross-platform instance of the plugin
*/
public interface HuskHomes extends TaskRunner {
public interface HuskHomes extends TaskRunner, EventDispatcher {
int SPIGOT_RESOURCE_ID = 83767;
@@ -141,14 +141,6 @@ public interface HuskHomes extends TaskRunner {
*/
void setRandomTeleportEngine(@NotNull RandomTeleportEngine randomTeleportEngine);
/**
* The {@link EventDispatcher} that dispatches API events
*
* @return the {@link EventDispatcher} implementation
*/
@NotNull
EventDispatcher getEventDispatcher();
/**
* The local {@link Spawn} location of this server, as cached to disk
*