Skip to content

Limit chat message size#628

Closed
roccodev wants to merge 1 commit into
PaperMC:dev/3.0.0from
roccodev:feature/max-chat-length
Closed

Limit chat message size#628
roccodev wants to merge 1 commit into
PaperMC:dev/3.0.0from
roccodev:feature/max-chat-length

Conversation

@roccodev
Copy link
Copy Markdown
Contributor

@roccodev roccodev commented Jan 8, 2022

This allows server owners to block oversized messages on the proxy's end.
They can either choose to kick the player or to just cut the message to fit within limits.

@tjalp
Copy link
Copy Markdown

tjalp commented Jan 8, 2022

I don't think this should be something built-in to Velocity, but rather something a plugin should do

@roccodev
Copy link
Copy Markdown
Contributor Author

roccodev commented Jan 8, 2022

That's also something I was wondering, but Velocity already checks for invalid characters, and it also rejects oversized messages in the API's Player#spoofChatInput(String).

@astei astei assigned astei and unassigned astei Feb 19, 2022
@astei astei added the type: feature New feature or request label Feb 19, 2022
@4drian3d 4drian3d added the stale This issue or pull request has not been updated with a response by the reporter/contributor label Oct 19, 2025
@4drian3d
Copy link
Copy Markdown
Contributor

I don't think this should be something built-in to Velocity, but rather something a plugin should do

I agree, this pr would limit the ability of modded servers to receive chat messages of any length they require

@4drian3d 4drian3d closed this Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale This issue or pull request has not been updated with a response by the reporter/contributor type: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants