1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Return MOTD/player count based on which IP the player is joining with?

Discussion in 'Development' started by trophonix, Oct 18, 2017.

  1. trophonix

    trophonix Creeper

    Messages:
    4
    GitHub:
    trophonix
    I'm making a plugin to sort of replicate the functions of Bungeecord for PC. I used the LoginPacket to get the IP the player is joining with and Player#transfer to send them to the correct IP based on the subdomain, but I can't figure out where I can do the same with the server info.

    I just need to know what packet or event to listen for so I can get the IP they joined with and send back playercount and stuff. In Spigot for PC there's a ServerListPingEvent for this.
     
    Last edited: Oct 18, 2017
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.