Villager Shopping doesn't work properly

Discussion in 'Spigot Plugin Development' started by DipselMedia, May 16, 2015.

  1. Hello,
    I am currently writing on a plugin that provides custom villager shops whith a menu. When you choose a menu element, a new Villager shopping menu is bein opened. Buying in fact is working, but when I buy a normal block and place it anywhere in the world, it immediately despawns again and the transaction is being restored.

    I am using this library for opening a Villager shop menu:

    This is my code:

    I can buy all the Items but as I already said, they despawn immediately after being placed in the world.

    Can anyone tell me where my mistake is?