From c74a4e5720d49dbf020a1a9a254ee5e98f0f0c1e Mon Sep 17 00:00:00 2001 From: Flowsqy <47575244+Flowsqy@users.noreply.github.com> Date: Thu, 30 Dec 2021 11:03:49 +0100 Subject: [PATCH] Add missing return statement to stop the initialization of the plugin if version is not supported --- plugin/src/main/java/de/epiceric/shopchest/ShopChest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/src/main/java/de/epiceric/shopchest/ShopChest.java b/plugin/src/main/java/de/epiceric/shopchest/ShopChest.java index cfb42c1..b7be5df 100644 --- a/plugin/src/main/java/de/epiceric/shopchest/ShopChest.java +++ b/plugin/src/main/java/de/epiceric/shopchest/ShopChest.java @@ -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);