Update host/join commands

This commit is contained in:
Sofia 2020-08-08 22:33:43 +03:00
parent b4924df6a8
commit 6ba89572ae

View File

@ -44,7 +44,7 @@ namespace NeonTea.Quakeball.Networking {
private bool Host(string[] args) { private bool Host(string[] args) {
if (args.Length > 3) { 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; return false;
} }
string addr = "0.0.0.0"; string addr = "0.0.0.0";
@ -65,8 +65,8 @@ namespace NeonTea.Quakeball.Networking {
} }
private bool Join(string[] args) { private bool Join(string[] args) {
if (args.Length > 2) { 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; return false;
} }
string addr = "127.0.0.1"; string addr = "127.0.0.1";