Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 00:00:41 +01:00
Disable the plugin if we failed to load on Spigot (#4960)
Dieser Commit ist enthalten in:
Ursprung
39b552363b
Commit
ee43ef8369
@ -175,8 +175,9 @@ public class GeyserSpigotPlugin extends JavaPlugin implements GeyserBootstrap {
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
// Disabling the plugin in onLoad() is not supported; we need to manually stop here
|
||||
// Disabling the plugin in onLoad() is not supported; we need to manually stop here and disable ourselves
|
||||
if (geyser == null) {
|
||||
Bukkit.getPluginManager().disablePlugin(this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren