Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'BungeeCord Plugin Development' started by SuperOmegaCow, Jan 17, 2014.
How would I go about checking if a server is online from a spigot plugin.
Well, if the server is offline, your plugin would not be loaded...
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.
so from the Proxy/bungee end?
from a plugin running on spigot.
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.
Or just ping it. This feature is implemented in bungeecord, but you can code it for spigot too