PaperMC / PaperMC/Paper

dispatchCommand event doesn't work after #27 patches

Open
#12,768 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage version: 1.21.6
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

dispatchCommand would be executed when player click an item in a gui (If the event works as a command).

Observed/Actual behavior

Expected behaivor has worked on the paper version 1.21.6-26, but it doesn't work at 1.21.6-27 and include after versions.

Steps/models to reproduce

https://github.com/user-attachments/assets/fd37c70f-6a0f-47bb-8730-ffbfbb43ae19
paper version 1.21.6-26 (worked)
https://github.com/user-attachments/assets/4e4a4e1a-da65-48ff-a183-3f482c78f9db
paper version 1.21.6-27 (doesn't work)

Plugin and Datapack List

[20:25:36 INFO]: Bukkit plugins (5):

  • BetterEconomy (3.1), Citizens (2.0.39-SNAPSHOT (build 3836)), Coins (1.13.1), DynamicShop (3.13.0), Vault (1.7.3-b131)
Paper version

[20:26:12 INFO]: This server is running Paper version 1.21.6-27-main@5edcf6d (2025-06-22T01:51:33Z) (Implementing API version 1.21.6-R0.1-SNAPSHOT)
You are 21 version(s) behind

Other

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the attached reproductions and the listed plugin set to compare dispatchCommand behavior on Paper 1.21.6-26 and 1.21.6-27. Trace the dispatchCommand event handling involved when a player clicks a GUI item; done means the event executes correctly on the affected and later Paper versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.