Released 7.0.8, added stuff to prevent outdated servers & protocollib
This commit is contained in:
parent
7460ba3012
commit
22faedb8a4
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user