internal static Rcon Authorize(IPEndPoint address, string pass) { RconGoldSource Obj = new RconGoldSource(address); Obj.GetChallengeId(); Obj.RConPass = pass; if (!Obj.SendCommand("").Contains("Bad rcon_password")) { return Obj; } Obj.socket.Dispose(); return null; }
internal static Rcon Authorize(IPEndPoint address, string pass) { RconGoldSource Obj = new RconGoldSource(address); Obj.GetChallengeId(); Obj.RConPass = pass; if (!Obj.SendCommand("").Contains("Bad rcon_password")) { return(Obj); } Obj.socket.Dispose(); return(null); }
public override Rcon GetControl(string pass) { RConObj = RconGoldSource.Authorize(socket.Address, pass); return(RConObj); }