#831 Cleanup, finalization

- Handle AsyncPlayerPreLoginEvent in main PlayerListener class: Spigot emits it in offline mode, whereas offline CraftBukkit doesn't
- Remove listener for sync PlayerPreLoginEvent; not fired by offline CraftBukkit either
- Add warning when offline CraftBukkit is detected and single session setting is enabled
This commit is contained in:
ljacqu
2016-08-03 19:58:10 +02:00
parent b892b8e3a8
commit 80337f758b
10 changed files with 54 additions and 111 deletions
@@ -0,0 +1,19 @@
package fr.xephi.authme.util;
import org.junit.Test;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
/**
* Test for {@link ServerUtils}.
*/
public class ServerUtilsTest {
@Test
public void shouldReturnTrueForSpigotImplementation() {
// Spigot is a provided dependency of the project, so the ClassLoader knows about it
assertThat(ServerUtils.isSpigot(), equalTo(true));
}
}