Teleport Player to hub server

Discussion in 'BungeeCord Plugin Development' started by petrux25, Feb 17, 2020.

  1. Hi everyone, I'm developing a minigame spigot plugin, i have to teleport a player to the hub server when he enters the command "/leave" but I don't understand how to do it.
     
  2. Plugin Messaging.
     
    • Agree Agree x 1
  3. If you want the player to be sent to the fallback server, you can also just kick him
    Code (Java):
    player.kickPlayer("REASON");
     
  4. He wants to do it bungeeside.
     
  5. No, he doesn't!

    As you can see here
     
    • Agree Agree x 1