Ping/Latency

Discussion in 'Archived: Plugin Requests' started by fragger505, Feb 12, 2012.

  1. Offline

    fragger505

    I know there are a handful of ping/pong type plugins and a few others that measure the server tick rate, but I was looking for a plugin that actually returns a numeric value measuring your latency. Since it's such a simple, helpful plugin I guess it's safe to assume this isn't possible at the moment with Bukkit?
     
  2. Offline

    JayEffKay

    fragger505
    Good question, did some research on that.

    If you just want to know your own latency, the easiest thing to do is do a manual ping, eg. open a terminal and run "ping mc.someminecraftserver.com".

    As for ping ingame, the problem is that Java doesn't really support 'ping'. The protocol used for that is too low level for Java and it will probably never support it. Now there seem to bee similar ping-like techniques for the UDP protocol, which Java does handle, but it seems that to really get the latency, both client and have to be configured to support that. I can't find anything like it in bukkit itself, but perhaps there might be something outside the API and else Spout should be able realise this.

    The only alternative would be to allow your mcserver/Java instance on your server to run other programs (like ping) and than install a script that would run ping and parse it's results.

    Some sources:
     

Share This Page