Skip to content

Commit

Permalink
Disable the plugin if we failed to load on Spigot (GeyserMC#4960)
Browse files Browse the repository at this point in the history
  • Loading branch information
onebeastchris authored Aug 12, 2024
1 parent 39b5523 commit ee43ef8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ public void onGeyserInitialize() {

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

Expand Down

0 comments on commit ee43ef8

Please sign in to comment.