public Packet getlobbypacket()
    {
        Packet packet = new Packet();

        packet.addHeader((byte) 0xF2, (byte) 0x2E);


        packet.addPacketHead((byte) 0x01, (byte) 0x00);
        packet.addInt(this.users, 2, false);
        for (int i = 0; i < this.users; i++)
        {
            String user = this.charnames[i];
            while (user.length() != 15)
            {
                user += nullbyte;
            }
            packet.addString(user);
            packet.addByte2((byte) (bots[i] & 0xff), (byte) this.status[i]);
        }


        return packet;
    }