Released 7.0.8, added stuff to prevent outdated servers & protocollib

This commit is contained in:
libraryaddict 2016-07-08 22:23:11 +12:00
parent 7460ba3012
commit 22faedb8a4
2 changed files with 24 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>LibsDisguises</groupId>
<artifactId>LibsDisguises</artifactId>
<version>9.0.7-SNAPSHOT</version>
<version>9.0.8</version>
<build>
<sourceDirectory>src</sourceDirectory>

View File

@ -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();