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) {
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";