mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-02-16 18:31:57 +01:00
Add disable method to the extensions api
This commit is contained in:
parent
f7d2b4ece3
commit
3fec30949a
1 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue