SpongeAPI icon indicating copy to clipboard operation
SpongeAPI copied to clipboard

[Suggestion] Add a Publish Book Event

Open theneedforsneed opened this issue 8 years ago • 2 comments

Add an event so that plugins can detect when a player clicks the "Sign and Close" button that turns a Book and Quill into a Written Book

theneedforsneed avatar Jul 20 '16 02:07 theneedforsneed

Good idea, but does this need its own event? Could this simply fire the AffectItemStackEvent? If the original is a book and quill and the replacement is a written book in the transaction you know it has been signed.

I'd be willing to implement either of them so just looking for some feedback here.

parlough avatar May 06 '17 04:05 parlough

AffectItemStackEvent would be a little generic, I think that having support where possible for specific vanilla events is ok for ease of use. This event would probably extend AffectItemStackEvent.

https://github.com/SpongePowered/SpongeAPI/issues/743 (closed) Suggests that it may already exist as an 'inventory event' , But I'll leave this open with new comments as it's been a few years and people are still requesting this.

ryantheleach avatar Nov 29 '18 05:11 ryantheleach