From a26341e36f9c2bb069dc19a06ae4339134863c47 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Wed, 17 Apr 2019 22:58:17 +0200 Subject: [PATCH] Fixed BentoBox still disabling if running on incompatible server This fixes commit https://github.com/BentoBoxWorld/BentoBox/commit/0d6f87242005c542bc1ce04ef392861229fdeb31. --- src/main/java/world/bentobox/bentobox/BentoBox.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/BentoBox.java b/src/main/java/world/bentobox/bentobox/BentoBox.java index bfaadf47a..9f08b592d 100644 --- a/src/main/java/world/bentobox/bentobox/BentoBox.java +++ b/src/main/java/world/bentobox/bentobox/BentoBox.java @@ -88,10 +88,10 @@ public class BentoBox extends JavaPlugin { if (!ServerCompatibility.getInstance().checkCompatibility(this).isCanLaunch()) { // The server's most likely incompatible. // Show a warning - getServer().getLogger().warning("************ Disclaimer **************"); - getServer().getLogger().warning("BentoBox may not be compatible with this server!"); - getServer().getLogger().warning("BentoBox is tested only on the latest version of Spigot."); - return; + logWarning("************ Disclaimer **************"); + logWarning("BentoBox may not be compatible with this server!"); + logWarning("BentoBox is tested only on the latest version of Spigot."); + logWarning("**************************************"); } // Not loaded