Skip to content

Players are kicked when entering an empty command in game chat #1813

Description

@YJ-305-A2

I've searched existing issues and couldn't find a duplicate.

  • I confirm this is not a duplicate.

Operating System

Windows 11 24H2 26100.6584

Server Software Version/Commit

0.1.0-dev+1.21.11/e312c4c

What happened?

When a player opens the chat bar and enters only a single slash ('/') followed by pressing enter, the player is kicked from the server. The log reports an error:

2026-03-07 17:50:56 ERROR tokio-rt-worker ThreadId(58) pumpkin::error: read_boxed_slice: length 0 out of bounds

To Reproduce

  1. Join any Pumpkin server.
  2. Open the chat bar and enter only a single slash ('/') and press enter.
  3. The player will always be kicked, regardless of OP permission or game mode.
  4. The error log will contain a message like:
YYYY-MM-DD HH:MM:SS ERROR tokio-rt-worker ThreadId(58) pumpkin::error: read_boxed_slice: length 0 out of bounds

Expected behavior

Players should not be kicked when entering only a single slash in the chat bar. The server should handle empty or incomplete commands gracefully and not crash or disconnect the user.
Reproduce the video clip: https://github.com/user-attachments/assets/73de8e50-4c07-429c-8b30-217fe59cc248

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcommandAnything command or chat-relatedprotocolAbout Packets or the Protocol

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions