mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-24 01:27:35 +01:00
Minor: Simplify check for Spigot
This commit is contained in:
parent
90400650c3
commit
83e247afe9
@ -28,12 +28,7 @@ public final class Utils {
|
|||||||
* @return true if the running server instance is spigot-based.
|
* @return true if the running server instance is spigot-based.
|
||||||
*/
|
*/
|
||||||
public static boolean isSpigot() {
|
public static boolean isSpigot() {
|
||||||
try {
|
return isClassLoaded("org.spigotmc.SpigotConfig");
|
||||||
Class.forName("org.spigotmc.SpigotConfig");
|
|
||||||
} catch (ClassNotFoundException e) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user