protected void sendChatMsg(String msg, int color)
    {
        Packet pack = new Packet();

        pack.addHeader((byte) 0x1A, (byte) 0x27);

        pack.addByte4((byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00);
        pack.addInt(color, 2, false);
        pack.addString(msg);
        pack.addByte((byte) 0x00);

        String[] packandhead = new String[2];

        packandhead[0] = pack.getHeader();
        packandhead[1] = pack.getPacket();

        this.socketOut.write(packandhead[0]);
        this.socketOut.flush();
        this.socketOut.write(packandhead[1]);
        this.socketOut.flush();

    }