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)
This commit is contained in:
Eric 2016-08-06 12:23:24 +02:00
parent 312e7c9dca
commit 417aaa36d3

View File

@ -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...");