Ping players of another server

Discussion in 'Plugin Development' started by MCMatters, May 30, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    MCMatters

    Its for a scoreboard plugin, could i get some code to Ping and show players?
     
  2. Offline

    fireblast709

    Welcome to plugin development, where we help you with issues, not feed you code :3
     
    ReggieMOL, Rocoty, L33m4n123 and 4 others like this.
  3. Offline

    WhatAaCow

    MCMatters You need a connection to that server and that server needs a plugin with NMS code in it to get the players ping
     
  4. Offline

    renaud444

    You can use the Minecraft Protocol to create a Socket connection to the server, and use the ServerListPing packet (or whatever it's called) to ping the server, and possibly get the player list. There are a few examples on GitHub, but they are written in PHP and use an older version of the protocol, so you could use them as a reference, substituting the new protocol where needed.
     
Thread Status:
Not open for further replies.

Share This Page