public void setMap(int map)
    {
        this.roommap = map;
        Packet packet = new Packet();
        packet.addHeader((byte) 0x4A, (byte) 0x2F);
        packet.addPacketHead((byte) 0x01, (byte) 0x00);
        packet.addInt(map, 2, false);
        writeRoomAll(packet);
    }