Cuberite Forum
Status Plugin? - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Requests (https://forum.cuberite.org/forum-3.html)
+--- Thread: Status Plugin? (/thread-1739.html)



Status Plugin? - punkmedia - 01-22-2015

I've been searching around and have not been able to find a plugin that will allow for the server to be queried for status.

Has anyone created a plugin or know a way to query the status of a server running mc-server?


RE: Status Plugin? - xoft - 01-22-2015

Hello, welcome to the forum.
What does a status mean, exactly? You can normally ping the server, same as the client would, and you'll receive the player count, limit, server name etc. Currently there's no way to code a plugin to provide more info on a separate listening port, because the asynchronous networking API is not finished yet ( https://forum.cuberite.org/showthread.php?tid=1700 ).


RE: Status Plugin? - punkmedia - 01-26-2015

I apologize for the delay in my response.

(01-22-2015, 04:58 AM)xoft Wrote: What does a status mean, exactly?

(01-22-2015, 04:58 AM)xoft Wrote: You can normally ping the server, same as the client would, and you'll receive the player count, limit, server name etc.

My question is running a normal java (jar) based Minecraft Server there is a parameter in server.properties called EnableQuery. Setting this to true allows a website, or script to "ping" the server to get relevant information as you've started, player count, limits, plugins, etc. If this is possible with MCServer, where is there documentation to enable this functionality? I've searched and have not found anything in regards to it's ability to do so.


RE: Status Plugin? - xoft - 01-26-2015

The Query protocol hasn't been implemented yet.
It might be that the time to implement is is just around the corner. We're finishing the cNetwork API that allows plugins to communicate on network, create client and server connections. So the entire Query protocol may get implemented as a separate plugin once the API is finished.
Is there some kind of documentation of the Vanilla's Query protocol?


RE: Status Plugin? - Seadragon91 - 01-26-2015

I think this page has everything what is needed
http://wiki.vg/Query


RE: Status Plugin? - punkmedia - 01-26-2015

I was not able to find any documentation on it, other than the fact that using a vanilla server, it's a boolean variable.

There is simply no documentation about "enable query". At least that I was able to find in my hours of google searching.

(01-26-2015, 04:51 AM)Seadragon91 Wrote: I think this page has everything what is needed
http://wiki.vg/Query

Well then, I suppose I stand corrected.


RE: Status Plugin? - xoft - 01-26-2015

And here's the issue on GitHub: https://github.com/mc-server/MCServer/issues/797