Update host/join commands
This commit is contained in:
parent
b4924df6a8
commit
6ba89572ae
@ -44,7 +44,7 @@ namespace NeonTea.Quakeball.Networking {
|
||||
|
||||
private bool Host(string[] args) {
|
||||
if (args.Length > 3) {
|
||||
Terminal.Println($"<color={Terminal.ERROR_COLOR}>Can't accept more than 2 arguments.</color>");
|
||||
Terminal.Println($"<color={Terminal.ERROR_COLOR}>Can't accept more than 3 arguments.</color>");
|
||||
return false;
|
||||
}
|
||||
string addr = "0.0.0.0";
|
||||
@ -65,8 +65,8 @@ namespace NeonTea.Quakeball.Networking {
|
||||
}
|
||||
|
||||
private bool Join(string[] args) {
|
||||
if (args.Length > 2) {
|
||||
Terminal.Println($"<color={Terminal.ERROR_COLOR}>Can't accept more than 2 arguments.</color>");
|
||||
if (args.Length > 3) {
|
||||
Terminal.Println($"<color={Terminal.ERROR_COLOR}>Can't accept more than 3 arguments.</color>");
|
||||
return false;
|
||||
}
|
||||
string addr = "127.0.0.1";
|
||||
|
Loading…
Reference in New Issue
Block a user