Beispiel #1
0
        public CommandResponse?OnCall(Game g, ConnectedPlayer p, string msg)
        {
            double ping = p.GetPing();
            string resp;

            if (ping == -1)
            {
                resp = "There is no reliable ping for you yet.";
            }
            else
            {
                resp = "Your ping is " + Math.Round(ping, 2) + "ms.";
            }
            return(new CommandResponse(resp, true, true));
        }