mirror of
https://github.com/GeyserMC/Geyser.git
synced 2026-01-06 15:41:50 +00:00
Disable the plugin if we failed to load on Spigot (#4960)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user