Minor server tweaks

This commit is contained in:
Anuken
2019-12-10 17:00:49 -05:00
parent f4ee67c08b
commit aeb6e6498e
4 changed files with 15 additions and 1 deletions

View File

@@ -66,6 +66,10 @@ public class NetServer implements ApplicationListener{
});
net.handleServer(ConnectPacket.class, (con, packet) -> {
if(con.address.startsWith("steam:")){
packet.uuid = con.address.substring("steam:".length());
}
String uuid = packet.uuid;
if(admins.isIPBanned(con.address)) return;

View File

@@ -95,6 +95,10 @@ public class EventType{
}
public static class ServerLoadEvent{
}
public static class ContentReloadEvent{
}