mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-28 11:19:11 +00:00
Add disable method to the extensions api
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user