From c9596eb4a27a90d78e20d87d9cacd7a7d68d550a Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 22 Jun 2017 00:19:22 +1000 Subject: [PATCH] proper check for no TwoWayPing support --- MCGalaxy/Commands/CPE/CmdPing.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCGalaxy/Commands/CPE/CmdPing.cs b/MCGalaxy/Commands/CPE/CmdPing.cs index c7765c8a4..4d0d47eb7 100644 --- a/MCGalaxy/Commands/CPE/CmdPing.cs +++ b/MCGalaxy/Commands/CPE/CmdPing.cs @@ -31,7 +31,7 @@ namespace MCGalaxy.Commands.Chatting { if (!message.CaselessEq("all")) { if (Player.IsSuper(p)) { Player.Message(p, "Super users cannot measure their own ping."); return; } - if (p.Ping.AveragePingMilliseconds() == 0) { + if (!p.HasCpeExt(CpeExt.TwoWayPing)) { Player.Message(p, "Your client does not support measuring ping."); } else { Player.Message(p, p.Ping.Format());