Don't load CaliburnAPI if the server is < 1.9; resolves #92

This commit is contained in:
Daniel Saukel 2016-06-20 13:38:15 +02:00
parent 5310a9ceca
commit 45dc39b6e1
2 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.dre2n</groupId>
<artifactId>dungeonsxl</artifactId>
<version>0.12${buildNo}</version>
<version>0.12.1-SNAPSHOT${buildNo}</version>
<packaging>jar</packaging>
<name>DungeonsXL</name>
<url>https://dre2n.github.io</url>

View File

@ -23,6 +23,7 @@ import io.github.dre2n.caliburn.mob.MobCategories;
import io.github.dre2n.caliburn.mob.Mobs;
import io.github.dre2n.commons.command.BRCommands;
import io.github.dre2n.commons.compatibility.Internals;
import io.github.dre2n.commons.compatibility.Version;
import io.github.dre2n.commons.config.MessageConfig;
import io.github.dre2n.commons.javaplugin.BRPlugin;
import io.github.dre2n.commons.javaplugin.BRPluginSettings;
@ -141,7 +142,9 @@ public class DungeonsXL extends BRPlugin {
super.onEnable();
instance = this;
loadCaliburnAPI();
if (Version.andHigher(Version.MC1_9).contains(compat.getVersion())) {
loadCaliburnAPI();
}
initFolders();