Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onPlayerLogin(ServerKickEvent event) {
- //The only way to communicate server/bungee, use the string of the kick reason
- String kickReason = event.getKickReason();
- //To change the cancel serveur, by default its the fallback ?)
- event.setCancelServer(BungeeCord.getInstance().getServerInfo("mySubLobby"));
- //Cancel the kick to force the player to fallback on the cancelServer.
- event.setCancelled(true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement