From 45dc39b6e1f2f060224eda10c0de778705dec538 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Mon, 20 Jun 2016 13:38:15 +0200 Subject: [PATCH] Don't load CaliburnAPI if the server is < 1.9; resolves #92 --- pom.xml | 2 +- src/main/java/io/github/dre2n/dungeonsxl/DungeonsXL.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 4fd34d65..afe1e87b 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 io.github.dre2n dungeonsxl - 0.12${buildNo} + 0.12.1-SNAPSHOT${buildNo} jar DungeonsXL https://dre2n.github.io diff --git a/src/main/java/io/github/dre2n/dungeonsxl/DungeonsXL.java b/src/main/java/io/github/dre2n/dungeonsxl/DungeonsXL.java index bac7db28..72e6f556 100644 --- a/src/main/java/io/github/dre2n/dungeonsxl/DungeonsXL.java +++ b/src/main/java/io/github/dre2n/dungeonsxl/DungeonsXL.java @@ -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();