1. Welcome to LilyPad. Download the project, explore the forums, and create your own LilyPad network.


    If you use the software and enjoy it or have a question, or would like to contribute to the future of the software directly or through resources, please sign up and join our little community.

Query player names

Discussion in 'Feature Requests' started by Matt, May 25, 2014.

  1. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    Hello,

    Would it be possible to ping the LilyPad proxy and get the player names. It can only tell how much people there are online.

    - Matt
  2. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    Not possible via the Minecraft protocol.
  3. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    How does BungeeCord do it then? I've seen sites with proxy servers on their MC servers and they show who is currently online.
  4. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    They do not ping the server to retrieve the information but retrieve it through other means.
  5. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    Okay so I could make a plugin that puts the online players in a SQL DB and retrieve then through php?
  6. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    That is one way to do it.
  7. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    Do you know easier ways tho?
  8. Tzeentchful

    Tzeentchful Member Contributor

    I can't think if an easier way apart from using reddis maybe. But what would be cool is if the connect server was able to authenticate a client that can only handle requests. Then you would be able to making something like an Apache Tomcat server that returns JSON objects from a query inside lilypad's network.
  9. confuser

    confuser Member Resource Contributor

    A separate client for only handling requests is something that would really increase the power of the messaging system. We can then implement some form of a "cloud" type solution which will allow offloading of non-craftbukkit processing to another server, or even passing non-server events to the server from other systems, e.g someone registering on a website. This could somewhat already be achieved with craftbukkit on a server no one connects to, however it is far too much of an overkill on cpu and memory. I started working on an implementation in NodeJS awhile ago, but haven't worked on it in quite some time. If others are interested, perhaps I'll pick up on it again.
  10. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    There is a seperate client "Client-Connect-Lib" in Java and "github.com/LilyPad/GoLilyPad/client/connect" in Golang. No other languages are supported as of the moment though. It would be great if you could port to other languages :)
  11. Tzeentchful

    Tzeentchful Member Contributor

    Couldn't the client only be rolled as a proxy or as a minecraft server? Or doesn't it have to be rolled at all?
  12. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    It does not need to be roled at all.

Share This Page