Care to tell us your approach :D
Oh, you're talking about the original code. In fact, this never worked. The window will show up, and it will let you do the trade, but as soon as...
In 1.4.6 (and late 1.4.5), they changed package name to include versions. So, the quick fix is to add version name into the imports: import...
Alright, so, I didn't check about spawning a window out of a right click (i.e.: from a block, sign, or something other than a villager). What I...
Well, as seen in the openTrade() function in EntityVillager, you have to pass an IMerchant parameter. So, my guess is if you implement that...
I used the PlayerMoveEvent to detect if the player is falling (locationY - lastLocationY > 0). I'm not sure if it's efficient performance wise, I...
In fact, this code should be useful : https://github.com/Bukkit/CraftBukkit/blob/master/src/main/java/net/minecraft/server/EntityPlayer.java...
I did a bit more research on this, and it seems that bukkit doesn't listen for InventoryClickEvent for window created using the method above. Odd.
Yet, you have to know if the player is "droping" right? There must be something in Minecraft for that, I mean there's feedback on the client...
Have you found a way yet?
Maybe the inventory needs to be saved when the trade is done? How did you know which packet to use? I could help you this way! Thanks a lot for...
Is anyone else having this bug. I do the trade, then I close the trade window. If I take an item from my inventory, it goes back to the previous...
Is it possible to inject trades into existing villagers?
Hi, thanks! It seems to work, but it doesn't seem to update on the client side. Do you think it's using the local database for item durability on...
Hi, Perhaps there's a mod for this already, but I've got no luck with my searches so far. Is there any way to change items durability overall,...
Separate names with a comma.