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.

Redirected, players still affected

Discussion in 'Bug Reports' started by duper51, Apr 28, 2014.

  1. duper51

    duper51 New Member

    So I have written a plugin that redirects players in the onDisable method, right before a server shuts down. The problem I'm having has to do with the fact that when the players finish teleporting, the server shuts down (of course) and some of the players who are actively interacting with the server they are redirected to get kicked for "Server Closed" as if they never left the server that's shutting down. I have a feeling it's to do with the GoLilypad proxy not checking for if players are disconnected.

    I'm running on CentOS 6 x64. I'm using Go-Server-Proxy #76. All of the servers in the network are on the same dedicated server. I use Spigot as the Minecraft server for the network. The Proxy config is in the attachments (though I don't know what that would have to do with anything). The config looks weird, I'm a tad bit limited on my file transfer, so I downloaded it from my web server and it truncated the line endings. I can verify it works for everything except this.

    Attached Files:

  2. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    This could be a race condition. I'll look into it.
  3. Adamki11s

    Adamki11s New Member

    I've also had this problem with a few plugins I've coded. A temporary solution is to redirect all players and then sleep the main thread for 3-5 seconds so players connect to the new server before the connection is terminated.
    • Agree Agree x 1

Share This Page