From 83e247afe9edbd311b061ac55378ab6242df84f8 Mon Sep 17 00:00:00 2001 From: ljacqu Date: Sat, 17 Feb 2018 23:23:44 +0100 Subject: [PATCH] Minor: Simplify check for Spigot --- src/main/java/fr/xephi/authme/util/Utils.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/fr/xephi/authme/util/Utils.java b/src/main/java/fr/xephi/authme/util/Utils.java index 8146f4e25..b51eb9cfe 100644 --- a/src/main/java/fr/xephi/authme/util/Utils.java +++ b/src/main/java/fr/xephi/authme/util/Utils.java @@ -28,12 +28,7 @@ public final class Utils { * @return true if the running server instance is spigot-based. */ public static boolean isSpigot() { - try { - Class.forName("org.spigotmc.SpigotConfig"); - } catch (ClassNotFoundException e) { - return false; - } - return true; + return isClassLoaded("org.spigotmc.SpigotConfig"); } /**