public void removeuser(String username)
    {
        int clientnum = getNum(username);
        if (clientnum != -1)
        {
            usersocks[clientnum] = null;
            writelobbyall(username, getdelpacket(username));
            charnames[clientnum] = "";
            bots[clientnum] = 0;
            if ((clientnum + 1) == this.users)
            {
                this.users--;
            }
            debug("current users(remove) " + this.users);
        }
    }