[SPIGOT-869] Add more Anvil support for plugins. Created: 06/May/15  Updated: 11/Jul/16  Resolved: 11/Jul/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: James Sinn Assignee: Unassigned
Resolution: Done Votes: 1
Labels: Craftbukkit, event, spigot
Environment:

N/A



 Description   

Anvil support is quite lacking, and I've had to code some workarounds to prevent/log the following events; and it would be lovely if these could actually be added to the default event/inventory.
(InventoryClickEvent)

Events that I would love to see added:
When an item is renamed
When an item's lore is overwritten
When an item's enchantments are overwritten
When an item is repaired



 Comments   
Comment by Martin | MiniDigger [ 27/Apr/16 ]

@JamieSinn you did not close it ^^

Comment by James Sinn [ 01/Mar/16 ]

Since this was added from 1.9. I'll close it

Comment by kukelekuuk [ 17/Dec/15 ]

Is there any word on this?

My addition is something along the lines of this: https://gist.github.com/kukelekuuk00/100fa01f032238b2a810
(Excuse my atrocious naming sense)

Basically a single event that gets triggered when someone tries to take the item out of the slot 3, the result slot. If I'm correct it should be possible to manage all the anvil things with this event, without trying to micromanage every single possible action with InventoryClickEvent. (our current situation, riddled with problems.)

If possible there should also be a small event that gets triggered when the amount of experience needed to combine/repair/rename the items is calculated. And that allows you to edit the experience amount required. But I don't have a mockup for that.

I'd really like to see this event (or something functionally the same or better). It would make things A LOT easier, as micromanaging with InventoryClickEvent is not very graceful.

Comment by SpigotMC [ 06/May/15 ]

Your build is not the latest and therefore may be the reason you are having this issue. Spigot is 13 version(s) behind. CraftBukkit is 24 version(s) behind. This message was automatically generated and is not guaranteed to be a solution to your issue.

Generated at Sat Apr 05 06:16:25 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.