Cleanup
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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", " "));
|
||||
|
||||
Reference in New Issue
Block a user