Skip to content

Fix #3604: [Crash] IllegalArgumentException: Invalid UUID string: message#3605

Draft
kangobot[bot] wants to merge 1 commit intomasterfrom
fix/issue-3604
Draft

Fix #3604: [Crash] IllegalArgumentException: Invalid UUID string: message#3605
kangobot[bot] wants to merge 1 commit intomasterfrom
fix/issue-3604

Conversation

@kangobot
Copy link
Copy Markdown
Contributor

@kangobot kangobot bot commented Apr 12, 2026

Automated fix proposed by AI analysis of the linked issue.

Changes

  • main/chatcontrol-bukkit/src/main/java/org/mineacademy/chatcontrol/command/chatcontrol/InternalSubCommand.java: Validate that args[1] is a valid UUID before parsing, preventing IllegalArgumentException crash when non-UUID strings like 'message' are passed.
  • main/chatcontrol-bukkit/src/main/java/org/mineacademy/chatcontrol/command/chatcontrol/InternalSubCommand.java: Add missing import for ValidCore used in UUID validation check.
  • main/chatcontrol-bukkit/src/main/java/org/mineacademy/chatcontrol/command/chatcontrol/InternalSubCommand.java: Use returnInvalidArgs which properly populates {arguments} and {help_command} placeholders, consistent with the rest of the codebase. The previous checkBoolean call used the wrong placeholder name 'argument' instead of 'arguments' and omitted 'help_command'.

This is a draft PR — human review required before merging.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants