diff --git a/api/src/main/java/org/geysermc/geyser/api/extension/Extension.java b/api/src/main/java/org/geysermc/geyser/api/extension/Extension.java index 33fc159de..993bdee44 100644 --- a/api/src/main/java/org/geysermc/geyser/api/extension/Extension.java +++ b/api/src/main/java/org/geysermc/geyser/api/extension/Extension.java @@ -136,4 +136,12 @@ public interface Extension extends EventRegistrar { default GeyserApi geyserApi() { return GeyserApi.api(); } + + /** + * Disable the extension. + */ + default void disable() { + this.setEnabled(false); + this.eventBus().unregisterAll(); + } }