@Override @EventHandler public void onDisconnect(DisconnectEvent event) { synchronized (bots) { bots.remove(this); } super.onDisconnect(event); }