public static PacketPlayInClientCommand getRespawnPacket() {
        PacketPlayInClientCommand packet = new PacketPlayInClientCommand();

        Field a = ReflectionUtil.getDeclaredField(packet.getClass(), "a");
        a.setAccessible(true);
        try {
            a.set(packet, (int) 1);
        } catch (IllegalArgumentException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }

        return packet;
    }