Hello, trying to update Minecraft plugin when I build it fails with "'void' type not allowed here" on a few lines of code
This is the code
@Override
public void preview(ShowcaseData data, Runnable finish) {
if (this.playerSet.contains(data.player())) {
Debug.send(data.player().getName() + " trying to preview a skin while previewing a skin");
return;
}
EntityArmorStand stand = this.createArmorStand(data);
// Spawn the armor stand
this.sendPacket(new PacketPlayOutSpawnEntity(stand), data.player());
this.sendPacket(new PacketPlayOutEntityMetadata(stand.ae(), stand.ai(), false), data.player()); //errors on this
this.sendPacket(new PacketPlayOutEntityEquipment(stand.ae(), this.getEquipment(data)), data.player()); // on this also
// Teleport armor stand to follow player's cursor movement
// And rotate the armor stand at the same time
BukkitTask teleportTask = this.startTeleportTask(data, stand);
// Stop the preview
Executor.syncLater(20L * data.duration(), () -> {
finish.run();
teleportTask.cancel();
// Destroy the armor stand on preview complete
this.sendPacket(new PacketPlayOutEntityDestroy(stand.ae()), data.player()); //and this
// Remove player from the set
this.playerSet.remove(data.player());
});
// Add player into the set
this.playerSet.add(data.player());
}
if anyone has any ideas ??