Skip to content

JsonSyntaxException: Expected STRING but was BEGIN_OBJECT at path $.click_event.payload when using Adventure Click Callbacks #309

@smutnejmichal

Description

@smutnejmichal

InteractiveChat fails to deserialize outgoing chat packets when a plugin uses the modern Adventure API feature ClickEvent.callback().

In modern Paper/Folia versions, Adventure allows developers to create click events that run server-side code without a visible command. This is serialized into a JSON structure where click_event.payload is an object/array containing a unique ID, rather than a simple string (which is used for run_command or open_url).

InteractiveChat's GSON/component serializer seems to expect a STRING for the click event value and throws an IllegalStateException when it encounters the BEGIN_OBJECT of a callback payload.

latest.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions