Minor server tweaks
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -95,6 +95,10 @@ public class EventType{
|
||||
|
||||
}
|
||||
|
||||
public static class ServerLoadEvent{
|
||||
|
||||
}
|
||||
|
||||
public static class ContentReloadEvent{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user