This commit is contained in:
Anuken
2022-01-02 00:26:08 -05:00
parent b591afa2ec
commit 8f17fb43a6
3 changed files with 3 additions and 3 deletions

View File

@@ -874,7 +874,7 @@ public class NetServer implements ApplicationListener{
net.host(Config.port.num());
info("Opened a server on port @.", Config.port.num());
}catch(BindException e){
err("Unable to host: Port already in use! Make sure no other servers are running on the same port in your network.");
err("Unable to host: Port " + Config.port.num() + " already in use! Make sure no other servers are running on the same port in your network.");
state.set(State.menu);
}catch(IOException e){
err(e);

View File

@@ -57,7 +57,7 @@ public abstract class NetConnection{
}
/** Kick with an arbitrary reason, and a kick duration in milliseconds. */
private void kick(String reason, KickReason kickType, long kickDuration){
private void kick(String reason, @Nullable KickReason kickType, long kickDuration){
if(kicked) return;
Log.info("Kicking connection @ / @; Reason: @", address, uuid, reason == null ? kickType.name() : reason.replace("\n", " "));