From 417aaa36d3fc019bd5879ad9bcd675c7550cc312 Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 6 Aug 2016 12:23:24 +0200 Subject: [PATCH] Allow not officially supported server versions As ShopChest is now using reflection, if the NMS code didn't change much in the new version, it may work (except for unknown item names) --- src/main/java/de/epiceric/shopchest/ShopChest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/epiceric/shopchest/ShopChest.java b/src/main/java/de/epiceric/shopchest/ShopChest.java index 1536db3..b1c8618 100644 --- a/src/main/java/de/epiceric/shopchest/ShopChest.java +++ b/src/main/java/de/epiceric/shopchest/ShopChest.java @@ -135,10 +135,10 @@ public class ShopChest extends JavaPlugin { case "v1_10_R1": break; default: - debug("Incompatible Server Version: " + Utils.getServerVersion()); - getLogger().severe("Incompatible Server Version: " + Utils.getServerVersion() + "!"); - getServer().getPluginManager().disablePlugin(this); - return; + debug("Server version not officially supported: " + Utils.getServerVersion() + "!"); + debug("Plugin may still work, but more errors are expected!"); + getLogger().warning("Server version not officially supported: " + Utils.getServerVersion() + "!"); + getLogger().warning("Plugin may still work, but more errors are expected!"); } debug("Loading utils and extras...");