Change default server on connecting

Discussion in 'BungeeCord Plugin Development' started by lukas81298, May 20, 2015.

  1. Hey guys,

    I currently try to put the player on another server when he joins the proxy. I tried to use the PostLoginEvent and used the ProxiedPlayer#connect method to connect the player to the server. The problem is that the plqyer joins the server, but gets kicked instantly because the fallback server is offline. What is the best way to do this?

    Thanks
    lukas
     
  2. Try the easy way to fallback server in the bungee file configuration ! :)
     
  3. Sure, but I want to put the player on a random server.
     
    • Optimistic Optimistic x 1
  4. I just realized that there is a setTarget method in the ServerConnectEvent. Thanks for the help ;)