Minor: Simplify check for Spigot

This commit is contained in:
ljacqu 2018-02-17 23:23:44 +01:00
parent 90400650c3
commit 83e247afe9

View File

@ -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");
}
/**