This commit is contained in:
Anuken 2023-06-03 12:43:39 -04:00
parent 925d19d867
commit fc673de556

View File

@ -399,7 +399,7 @@ public class Net{
closeServer();
}
/** If a connecting ip doesn't match the filter it will be kicked. */
void setConnectFilter(Server.ServerConnectFilter connectFilter);
/** Sets a connection filter by IP address. If the filter returns {@code false}, the connection will be closed. */
default void setConnectFilter(Server.ServerConnectFilter connectFilter){}
}
}