[1.12.2 Protocollib] Set entity metadata

Discussion in 'Spigot Plugin Development' started by Nomar, Jul 29, 2018.

  1. Hey guys

    Code (Text):
    WrapperPlayServerEntityMetadata metadata = new WrapperPlayServerEntityMetadata();
                metadata.setEntityID(entityid);
                metadata.setMetadata(
                        Arrays.asList(new WrappedWatchableObject(0,0x08))
                );
                metadata.sendPacket(p);
    im getting kicked when that gets executed

    [​IMG]

    I want the armor stand to have no base plate


    [​IMG]


    so i thought this: new WrappedWatchableObject(0,0x08)
    but it kicks me
    it spawns without the metadata
    but with it kicks me
    idk what the index does there
    and what i need to put in the constructor from WrappedWatchableObject(index, value)