mirror of
https://github.com/YouHaveTrouble/PreventStabby.git
synced 2026-05-12 05:16:55 +00:00
Add return statement after plugin disablement
Added a return statement after the plugin disablement step in the PreventStabby main class. This ensures that the execution of the function is explicitly stopped if there are any issues with command registration.
This commit is contained in:
@@ -46,6 +46,7 @@ public final class PreventStabby extends JavaPlugin {
|
||||
getLogger().severe("Error with registering commands.");
|
||||
getLogger().severe("Plugin will now disable.");
|
||||
getServer().getPluginManager().disablePlugin(this);
|
||||
return;
|
||||
}
|
||||
MainCommand mainCommand = new MainCommand();
|
||||
pvpCommand.setExecutor(mainCommand);
|
||||
|
||||
Reference in New Issue
Block a user