Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. @EventHandler
  2. public void onPlayerLogin(ServerKickEvent event) {
  3. //The only way to communicate server/bungee, use the string of the kick reason
  4. String kickReason = event.getKickReason();
  5. //To change the cancel serveur, by default its the fallback ?)
  6. event.setCancelServer(BungeeCord.getInstance().getServerInfo("mySubLobby"));
  7. //Cancel the kick to force the player to fallback on the cancelServer.
  8. event.setCancelled(true);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement