I was wondering how I make a villager gui come up. I've done a google search and can not find anything that works currently.
This is an out of date thread, so I'm not sure if there's any non-NMS way to do this (I've never had to mess around with merchant inventories) https://bukkit.org/threads/displaying-a-merchant-inventory.148942/ Though if I recall correctly, without NMS it should be something like this: Code (Java): player.openInventory(Bukkit.createInventory(null, InventoryType.MERCHANT));
Uhm, I found code for this on github, I dont have it on my right now, I am able to send it in a few hours EDIT: Nevermind, here ya go https://github.com/Howaner/FakeMobs/tree/master/src/main/java/de/howaner/FakeMobs/merchant
You can also use an api I made for this (not yet updated to 1.9 though), there is an example on the wiki page. https://github.com/Cybermaxke/MerchantsAPI