From 22faedb8a447a5aa55042a6e5a5653ce74d49e10 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 8 Jul 2016 22:23:11 +1200 Subject: [PATCH] Released 7.0.8, added stuff to prevent outdated servers & protocollib --- pom.xml | 2 +- .../libraryaddict/disguise/LibsDisguises.java | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8ed9d01b..f5675830 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 LibsDisguises LibsDisguises - 9.0.7-SNAPSHOT + 9.0.8 src diff --git a/src/me/libraryaddict/disguise/LibsDisguises.java b/src/me/libraryaddict/disguise/LibsDisguises.java index cfdb8145..55a364c3 100644 --- a/src/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/me/libraryaddict/disguise/LibsDisguises.java @@ -62,6 +62,29 @@ public class LibsDisguises extends JavaPlugin @Override public void onEnable() { + try + { + Class.forName("com.comphenix.protocol.wrappers.Vector3F").getName(); + } + catch (Exception ex) + { + System.err.println("[LibsDisguises] Lib's Disguises failed to startup, outdated ProtocolLib!"); + System.err.println( + "[LibsDisguises] You need to update ProtocolLib, please try this build http://ci.dmulloy2.net/job/ProtocolLib/lastStableBuild/artifact/modules/ProtocolLib/target/ProtocolLib.jar"); + return; + } + + try + { + ReflectionManager.getNmsClass("EntityShulker").getName(); + } + catch (Exception ex) + { + System.err.println("[LibsDisguises] Lib's Disguises failed to startup, outdated server!"); + System.err.println("[LibsDisguises] This plugin does not offer backwards support!"); + return; + } + getLogger().info("Discovered MC version: " + ReflectionManager.getBukkitVersion()); saveDefaultConfig();