mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
proper check for no TwoWayPing support
This commit is contained in:
parent
8feea59375
commit
c9596eb4a2
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user