Disable the plugin if we failed to load on Spigot

This commit is contained in:
onebeastchris 2024-08-13 01:37:01 +02:00
parent 39b552363b
commit 760c336606

View file

@ -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;
}