Whoops, wrong place! (Damn eclipse class tree XD)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package fr.xephi.authme.util;
|
||||
|
||||
public class ServerUtils {
|
||||
|
||||
/**
|
||||
* Check if the server implementation is based on Spigot
|
||||
*
|
||||
* @return true if the implementation is based on Spigot
|
||||
*/
|
||||
public static boolean isSpigot() {
|
||||
try {
|
||||
Class.forName("org.spigotmc.CustomTimingsHandler");
|
||||
return true;
|
||||
} catch (ClassNotFoundException ignored) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user