Skip to content

Fix #3511: 1.21.11 Folia: Private Messages AutoMode is not working.#3512

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

Fix #3511: 1.21.11 Folia: Private Messages AutoMode is not working.#3512
kangobot[bot] wants to merge 1 commit intomasterfrom
fix/issue-3511

Conversation

@kangobot
Copy link
Contributor

@kangobot kangobot bot commented Mar 16, 2026

Automated fix proposed by AI analysis of the linked issue.

Changes

  • main/chatcontrol-bukkit/src/main/java/org/mineacademy/chatcontrol/settings/Settings.java: Auto_Mode on Folia works when ProtocolLib is installed because BukkitPacketListener intercepts chat packets and manually forwards conversation input, working around the Folia Conversation API bug. Only disable Auto_Mode when ProtocolLib is absent.
  • main/chatcontrol-bukkit/src/main/java/org/mineacademy/chatcontrol/settings/Settings.java: Remove the outdated Folia auto mode disabling check. The underlying threading issue (dispatching commands from the wrong thread) was fixed in Foundation's BukkitPlayer.performPlayerCommand0() which now uses player.getScheduler().run() on Folia for correct entity-thread scheduling. Auto mode no longer needs to be disabled on Folia.

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

@kangarko
Copy link
Owner

Closing — my correction in the issue thread explains why this approach is wrong. Auto_Mode doesn't use the Conversation API, so the ProtocolLib guard is unrelated. I'll handle this separately.

@kangarko kangarko closed this Mar 19, 2026
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