Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public void disconnected(ChannelWrapper channel)
  2. throws Exception
  3. {
  4. this.server.getInfo().removePlayer(this.con);
  5. if (this.bungee.getReconnectHandler() != null) {
  6. this.bungee.getReconnectHandler().setServer(this.con);
  7. }
  8. if (!this.server.isObsolete()) {
  9. this.con.disconnect(this.bungee.getTranslation("lost_connection", new Object[0]));
  10. }
  11. ServerDisconnectEvent serverDisconnectEvent = new ServerDisconnectEvent(this.con, this.server.getInfo());
  12. this.bungee.getPluginManager().callEvent(serverDisconnectEvent);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement