more stuff

This commit is contained in:
RedSparr0w
2019-11-22 17:28:14 +13:00
parent 6e3f76329a
commit 07472a9a90
10 changed files with 337 additions and 205 deletions
@@ -34,7 +34,8 @@ public class ConnectionHandler implements IoHandler {
public void sessionClosed(IoSession arg0) throws Exception {
if (arg0.getAttachment() != null) {
Client plr = (Client) arg0.getAttachment();
plr.disconnected = true;
if (!plr.isBot)
plr.disconnected = true;
}
HostList.getHostList().remove(arg0);
}