Add missing return statement to stop the initialization of the plugin if version is not supported

This commit is contained in:
Flowsqy 2021-12-30 11:03:49 +01:00
parent 8b0bd54a1d
commit c74a4e5720

View File

@ -209,6 +209,7 @@ public class ShopChest extends JavaPlugin {
getLogger().warning("Server version not officially supported: " + Utils.getServerVersion() + "!");
//getLogger().warning("Plugin may still work, but more errors are expected!");
getServer().getPluginManager().disablePlugin(this);
return;
}
shopUtils = new ShopUtils(this);