Skip to content

Cancelling InventoryClickEvent kicks the player from the server #11551

@dawon

Description

@dawon

Expected behavior

Cancelling InventoryClickEvent shouldn't kick the player and should cancel the event correctly

Observed/Actual behavior

Cancelling InventoryClickEvent shouldn't kicks the player

Steps/models to reproduce

  1. have plugin with following event
    @EventHandler
    public void on(InventoryClickEvent e) {
        e.setCancelled(true);
    }
  1. open player inventory
    3.a) try to click any item in the inventory
    3.b) try to take item off a filled bundle

Plugin and Datapack List

only the Test plugin

Paper version

This server is running Paper version 1.21.3-6-master@16d7d73 (2024-11-01T03:40:19Z) (Implementing API version 1.21.3-R0.1-SNAPSHOT)
You are running the latest version

Other

disconnect-2024-11-01_10.52.10-client.txt

Edit: Happens only in the player (e) inventory. In chests seems to be working fine...

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.version: 1.21.3Game version 1.21.3

    Type

    No fields configured for Bug.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions