Skip to content

Fix #3389: 1.18.2 How do I get the {killer_item} to display the actual item name?#3495

Closed
kangobot[bot] wants to merge 1 commit intomasterfrom
fix/issue-3389
Closed

Fix #3389: 1.18.2 How do I get the {killer_item} to display the actual item name?#3495
kangobot[bot] wants to merge 1 commit intomasterfrom
fix/issue-3389

Conversation

@kangobot
Copy link

@kangobot kangobot bot commented Feb 25, 2026

Automated fix proposed by AI analysis of the linked issue.

Changes

  • main/chatcontrol-bukkit/src/main/java/org/mineacademy/chatcontrol/operator/DeathMessage.java: Fix {killer_item_name} stripping real colors from plugin-colored items. The previous CompChatColor.stripColorCodes() strips both § (real) and & (fake) codes. Now only & codes are stripped (anvil injection prevention), while § codes are preserved and converted to MiniMessage for proper chat rendering.
  • main/chatcontrol-bukkit/src/main/java/org/mineacademy/chatcontrol/operator/DeathMessage.java: Remove unused CompChatColor import after switching to regex-based & stripping

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.

1 participant