Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Comitems player_chat event doesn't work properly with cancel-action

Open
#1,209 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
game-dev

Research direction

Reproduce the command item using the PLAYER_CHAT event with cancel-action enabled, including the console /say case described in the report. Trace the PLAYER_CHAT handling and verify that the player's original message is suppressed while the intended command output still appears; confirm behavior against linked Discord chat as well.

Written by the indexing model from the issue text.

Description

status:pending status:platform-issue type:bug

Versions
CraftBook version: 3.10.2-SNAPSHOT;4616-21180b0
Bukkit version: git-Spigot-a99063f-fad2494

Describe the bug
When using a command item with the PLAYER_CHAT event and cancel-action turned on, the message sent my the player is still visible in chat, though it is blocked from other plugins.
When using an comitem to send a /say @m command through the console, both the console message and player message are visible despite cancel-action being set to true.
The player message does not show up on my Discord server's linked Minecraft chat however, as intended

To Reproduce

  1. Create a command item with the PLAYER_CHAT event and cancel-action set to true
  2. Type something in chat, and notice how the players message is still sent

Expected behavior
Creating a console /say microphone for fun, and expect the chat message sent by the player to be blocked from sending by the cancel-action flag

Screenshots
use
use_discord

Dominant language
Java
Stars
321
Forks
165
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from EngineHub/CraftBook

All issues in EngineHub/CraftBook

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.