Skip to content

Commit ee43ef8

Browse files
Disable the plugin if we failed to load on Spigot (#4960)
1 parent 39b5523 commit ee43ef8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bootstrap/spigot/src/main/java/org/geysermc/geyser/platform/spigot/GeyserSpigotPlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,9 @@ public void onGeyserInitialize() {
175175

176176
@Override
177177
public void onEnable() {
178-
// Disabling the plugin in onLoad() is not supported; we need to manually stop here
178+
// Disabling the plugin in onLoad() is not supported; we need to manually stop here and disable ourselves
179179
if (geyser == null) {
180+
Bukkit.getPluginManager().disablePlugin(this);
180181
return;
181182
}
182183

0 commit comments

Comments
 (0)