Skip to content

Conversation

@mdcfe
Copy link
Member

@mdcfe mdcfe commented Aug 14, 2022

Information

  1. This PR fixes Sudo c: makes the player send their previewed message #5055.
  2. It also fixes a separate issue in which all local chat messages are sent globally.

Details

Proposed fix:

  1. AsyncPlayerChatEvents fired by a Player#chat call are expected to be on the main thread. Check for this before applying the format from the player's preview.
  2. Pass the radius from the IntermediateChat to the ProcessedChat when moving from one state to the other.

Environments tested:

OS: Windows 11 22H2

Java version: Eclipse Temurin 17.0.2

  • Most recent Paper version (1.19.2, git-Paper-129)
  • CraftBukkit/Spigot/Paper 1.12.2
  • CraftBukkit 1.8.8

@mdcfe mdcfe added this to the 2.20.0 milestone Aug 14, 2022
@mdcfe mdcfe added bug: confirmed Confirmed bugs in EssentialsX. module: chat Issues or PRs for the EssentialsChat module type: bugfix PRs that fix bugs in EssentialsX. labels Aug 14, 2022
@JRoy JRoy merged commit 2f4f555 into 2.x Aug 14, 2022
@JRoy JRoy deleted the fix/local-chat branch August 14, 2022 22:50
@mdcfe mdcfe modified the milestones: 2.20.0, 2.19.7 Aug 15, 2022
ressidell pushed a commit to ressidell/Essentials that referenced this pull request Apr 27, 2025
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: confirmed Confirmed bugs in EssentialsX. module: chat Issues or PRs for the EssentialsChat module type: bugfix PRs that fix bugs in EssentialsX.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sudo c: makes the player send their previewed message

3 participants