public boolean removePlayer(String player)
    {
        int slot = getSlot(player);
        int a = 0;
        boolean setowner = false;
        for (int i = 0; i < 8; ++i)
        {
            if (this.roomplayer[i] != null && this.roomplayer[i].equals(player))
            {
                if (this.roomowner.equals(player))
                {
                    setowner = true;
                }
                writeRoomPlayer(i, getQuitPacket(slot));
                this.roomplayer[i] = "";
                this.roomsocks[i] = null;
                this.roomready[i] = false;
                this.roomposi[i] = 0;
                this.bot[i] = null;
                this.roomport[i] = -1;
                this.roomid[i] = -1;

                for (int i2 = 0; i2 < 4; ++i2)
                {
                    this.roomips[i][i2] = 0;
                }
            }
            else
            {
                if (this.roomsocks[i] == null)
                {
                    ++a;
                }
            }
        }
        if (a >= 7)
        {
            return true;
        }
        else
        {
            if (!setowner)
            {
                writeRoomAll(getQuitPacket(slot));
                return false;
            }
            for (int i = 0; i < 8; ++i)
            {
                if (this.roomplayer[i] != null && !this.roomplayer[i].equals(""))
                {
                    this.roomowner = this.roomplayer[i];
                    this.roomposi[i] = 0x70;
                    writeRoomAll(getQuitPacket(slot));
                    return false;
                }
            }
        }
        return true;
    }