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: https://github.com/Howaner/FakeMobs/tree/master/src/main/java/de/howaner/FakeMobs/merchant

    This is my code: http://pastebin.com/embed_iframe.php?i=RMiWdHvv

    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?