Check If Server Is Online?

Discussion in 'BungeeCord Plugin Development' started by SuperOmegaCow, Jan 17, 2014.

  1. How would I go about checking if a server is online from a spigot plugin.
  2. Well, if the server is offline, your plugin would not be loaded...
    • Funny Funny x 1
  3. As in check if a server is offline from the hub/ main server. If the server is frozen there is no point in trying to make a connection.
  4. so from the Proxy/bungee end?
  5. from a plugin running on spigot.
  6. Best way I can think of would be to use the query port to query the server, or to run from a bungee plugin and use the Messaging channel - unless there is something better in bungee's javadocs.
  7. Or just ping it. This feature is implemented in bungeecord, but you can code it for spigot too
  8. LOL!
    • Disagree Disagree x 2