Make default server visibility private and fix disconnected players still showing in tab list for TNT wars

This commit is contained in:
UnknownShadow200 2019-06-27 19:31:40 +10:00
parent 8b88fe0f85
commit c92dc2c5ba
2 changed files with 4 additions and 3 deletions

View File

@ -177,7 +177,8 @@ namespace MCGalaxy.Games {
void RestoreColor(Player p) {
TWData data = TryGet(p);
if (data == null) return;
// TODO: p.Socket.Disconnected check should be elsewhere
if (data == null || p.Socket.Disconnected) return;
p.color = data.OrigCol;
p.SetPrefix();

View File

@ -37,8 +37,8 @@ namespace MCGalaxy {
public string ListenIP = "0.0.0.0";
[ConfigInt("port", "Server", 25565, 0, 65535)]
public int Port = 25565;
[ConfigBool("public", "Server", true)]
public bool Public = true;
[ConfigBool("public", "Server", false)]
public bool Public = false;
[ConfigBool("verify-names", "Server", true)]
public bool VerifyNames = true;
[ConfigBool("support-web-client", "Server", true)]