#831 Implement single session by canceling kicks caused by same name joining

- A little less nice, but works on both CraftBukkit and Spigot
- Remove obsolete warning
This commit is contained in:
ljacqu
2016-08-03 21:31:40 +02:00
parent f4add64695
commit 4aad1d506c
4 changed files with 23 additions and 60 deletions
@@ -1,21 +0,0 @@
package fr.xephi.authme.util;
public final class ServerUtils {
private 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;
}
}