Whoops, wrong place! (Damn eclipse class tree XD)

This commit is contained in:
Gabriele C
2016-08-03 01:06:34 +02:00
parent 75421fd156
commit e2d20caf16
2 changed files with 2 additions and 2 deletions
@@ -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;
}
}