Example #1
0
        protected override void OnMessage(MessageEventArgs e)
        {
            if (e.Data == "lastlog")
            {
                Send(RconManager.GetLastLog());
            }
            if (e.Data == "logfull")
            {
                Send(RconManager.GetFullLog());
            }

            if (e.Data[0].Equals('1'))
            {
                RconManager.Instance.ReceiveRconCommand(e.Data);
            }
        }