@Test public void disconnect() { }
@EventHandler public void disconnect(PlayerDisconnectEvent playerDisconnectEvent) { taskFactory.newAsyncTask(() -> partyService.disband(playerDisconnectEvent.getPlayer().getName())).execute(); }
PartyListener implements Listener { @EventHandler public void disconnect(PlayerDisconnectEvent playerDisconnectEvent) { taskFactory.newAsyncTask(() -> partyService.disband(playerDisconnectEvent.getPlayer().getName())).execute(); } }
PartyListener implements Listener { @EventHandler public void disconnect(PlayerDisconnectEvent playerDisconnectEvent) { taskFactory.newAsyncTask(() -> partyService.disband(playerDisconnectEvent.getPlayer().getName())).execute(); }  }
PartyListener implements Listener { @EventHandler public void disconnect(PlayerDisconnectEvent playerDisconnectEvent) { taskFactory.newAsyncTask(() -> partyService.disband(playerDisconnectEvent.getPlayer().getName())).execute(); }  @EventHandler void connect(ServerConnectEvent event); @EventHandler void disconnect(PlayerDisconnectEvent playerDisconnectEvent); }
PartyListener implements Listener { @EventHandler public void disconnect(PlayerDisconnectEvent playerDisconnectEvent) { taskFactory.newAsyncTask(() -> partyService.disband(playerDisconnectEvent.getPlayer().getName())).execute(); }  @EventHandler void connect(ServerConnectEvent event); @EventHandler void disconnect(PlayerDisconnectEvent playerDisconnectEvent);  }