Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 14:30:17 +01:00
Add disable method to the extensions api
Dieser Commit ist enthalten in:
Ursprung
f7d2b4ece3
Commit
3fec30949a
@ -136,4 +136,12 @@ public interface Extension extends EventRegistrar {
|
|||||||
default GeyserApi geyserApi() {
|
default GeyserApi geyserApi() {
|
||||||
return GeyserApi.api();
|
return GeyserApi.api();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable the extension.
|
||||||
|
*/
|
||||||
|
default void disable() {
|
||||||
|
this.setEnabled(false);
|
||||||
|
this.eventBus().unregisterAll();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren