Skip to content

Cancelling PlayerEditBookEvent does not prevent changes to BookMeta #4952

@aurorasmiles

Description

@aurorasmiles

What behaviour is expected:

Cancelling the PlayerEditBook event prevents any changes to the BookMeta, as described in the Javadocs

Called when a player edits or signs a book and quill item. If the event is cancelled, no changes are made to the BookMeta

What behaviour is observed:

Only signing the book is cancelled, you can still press "Done" and your changes to the BookMeta gets saved

Steps/models to reproduce:

Cancel PlayerEditBookEvent and Edit a book

Plugin list:

n/a

Paper version:

1.16.4 #323

Anything else:

I noticed other weird things in that event as well. Setting a new BookMeta to the Book didn't work reliably as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions