public int getRCONPort() { DewritoConfigLine dewritoConfigLine = ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Game.RconPort"); return(int.Parse(dewritoConfigLine.Values[0].Trim('"'))); }
public int getSignalServerPort() { DewritoConfigLine dewritoConfigLine = ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Server.SignalServerPort"); return(int.Parse(dewritoConfigLine.Values[0].Trim('"'))); }
public string getPlayerName() { DewritoConfigLine dewritoConfigLine = ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Player.Name"); return(string.Join(" ", dewritoConfigLine.Values).Trim('"')); }
public string getRCONPassword() { DewritoConfigLine dewritoConfigLine = ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Server.RconPassword"); return(string.Join(" ", dewritoConfigLine.Values).Trim('"')); }
public string getServerMSG() { DewritoConfigLine dewritoConfigLine = ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Server.Message"); return(string.Join(" ", dewritoConfigLine.Values).Trim('"')); }
public string getVetoConfig() { DewritoConfigLine dewritoConfigLine = ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Server.VetoJsonPath"); return(string.Join(" ", dewritoConfigLine.Values)); }
public bool getServerAnnounce() { DewritoConfigLine dewritoConfigLine = ConfigLines.FirstOrDefault(dewConfigLine => dewConfigLine.Key == "Server.ShouldAnnounce"); return(int.Parse(dewritoConfigLine.Values[0].Trim('"')) != 0); }