mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-19 06:32:03 +01:00
Remove debug message when enabling mojang auth
This commit is contained in:
parent
6e954082e1
commit
352874d935
@ -5,15 +5,14 @@ import net.minestom.server.MinecraftServer;
|
|||||||
|
|
||||||
public class MojangAuth {
|
public class MojangAuth {
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private static boolean usingMojangAuth = false;
|
private static boolean usingMojangAuth = false;
|
||||||
|
|
||||||
public static void init() {
|
public static void init() {
|
||||||
if (MinecraftServer.getNettyServer().getAddress() == null) {
|
if (MinecraftServer.getNettyServer().getAddress() == null) {
|
||||||
System.out.println("Using Mojang Auth");
|
usingMojangAuth = true;
|
||||||
usingMojangAuth = true;
|
} else {
|
||||||
} else {
|
throw new IllegalStateException("The server has already been started");
|
||||||
throw new IllegalStateException("The server has already been started");
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user