diff --git a/Supervisor/NBloodServerListener.cs b/Supervisor/NBloodServerListener.cs index 95ffcdd..33c0268 100644 --- a/Supervisor/NBloodServerListener.cs +++ b/Supervisor/NBloodServerListener.cs @@ -63,14 +63,12 @@ namespace Supervisor { Port = packetData.Port, IsStarted = packetData.IsStarted, - IsPrivate = packetData.IsPrivate, CurrentPlayers = packetData.CurrentPlayers, MaximumPlayers = packetData.MaximumPlayers }, (port, server) => { server.IsStarted = packetData.IsStarted; - server.IsPrivate = packetData.IsPrivate; server.CurrentPlayers = packetData.CurrentPlayers; server.MaximumPlayers = packetData.MaximumPlayers; return server; diff --git a/Supervisor/PacketData.cs b/Supervisor/PacketData.cs index 6386db5..3de48ab 100644 --- a/Supervisor/PacketData.cs +++ b/Supervisor/PacketData.cs @@ -8,6 +8,5 @@ namespace Supervisor { public int Port { get; set; } public bool IsStarted { get; set; } - public bool IsPrivate { get; set; } } } diff --git a/Supervisor/WebApiListener.cs b/Supervisor/WebApiListener.cs index 62a6007..60cd587 100644 --- a/Supervisor/WebApiListener.cs +++ b/Supervisor/WebApiListener.cs @@ -61,6 +61,7 @@ namespace Supervisor int processId = int.Parse(split[1]); Program.State.Servers.AddOrUpdate(port, new Server() { + Port = port, ProcessId = processId, IsPrivate = true }, diff --git a/WebInterface/Controllers/NBloodController.cs b/WebInterface/Controllers/NBloodController.cs index e7d3e08..f3b820a 100644 --- a/WebInterface/Controllers/NBloodController.cs +++ b/WebInterface/Controllers/NBloodController.cs @@ -58,8 +58,8 @@ namespace WebInterface.Controllers _isBusy = true; - if (parameters.Players < 2) - parameters.Players = 2; + if (parameters.Players < 3) + parameters.Players = 3; if (parameters.ApiKey != _config.GetValue("ApiKey")) return new StartServerResponse("Invalid ApiKey.");