Solved Auth server question

Discussion in 'BungeeCord Plugin Help' started by ArtutoGamer, Jul 31, 2018.

Thread Status:
Not open for further replies.
  1. Hi there! Well so I have an issue, my auth plugin uses an extra server to authenticate offline players. When they log-in using their password the plugin moves them to the server they joined. Everything is fine, but the issue comes when someone tries to access to a server using a Forced Host and the backend has whitelist enabled and they arent added, so they get stuck on the auth server.

    There is a way to kick players out of the auth server when they get stuck in the auth server.
     
  2. Hey @ArtutoGamer

    if I have understood you right, it seems like the developer of your authentication plugin (you?) didn't properly implement the mechanism of sending players to the corresponding server.

    I'm not sure if you're the developer, but the developer can take a look at https://github.com/SpigotMC/BungeeC...bungee/api/connection/ProxiedPlayer.java#L112 - You can give a callback that can check if sending a player was successful, you can kick him, if it wasn't. You may prefer this method over the "fire-and-forget" way of just using https://github.com/SpigotMC/BungeeC.../bungee/api/connection/ProxiedPlayer.java#L90 if you need proper exception handling like in this case.
     
  3. No, I didnt developed the auth plugin by myself. I needeed something that kicked users when they could get stuck when the target seever rejected them. However I got to make a small plugin for myself. Thanks anyway.
     
Thread Status:
Not open for further replies.