mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-09 07:09:41 -04:00
Make default server visibility private and fix disconnected players still showing in tab list for TNT wars
This commit is contained in:
parent
8b88fe0f85
commit
c92dc2c5ba
@ -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();
|
||||
|
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user