Skip to content

Conversation

@Niki4tap
Copy link
Contributor

  • Please check if the PR fulfills these requirements
  • The commit message are well described (they are ok, I can amend the description if strictly necessary)
  • All changes have fully been tested
  • What kind of change does this PR introduce? (Bug fix, feature, ...)
    If possible (range, max range are infinite and chat box is multidimensional), we use broadcastSystemMessage, instead of sending one to each player.

  • What is the current behavior? (You can also link to an open issue here)
    We send a message to each player individually, no matter the config options.

  • What is the new behavior (if this is a feature change)?
    Described above.

  • Does this PR introduce a breaking change? (What changes might users need to make in their scripts due to this PR?)
    None, internal change.

  • Other information:
    Main motivation for this change is: make the intent more clear, so mods that operate on chat (specifically tested with mc2discord, mixins only into broadcastSystemMessage), can identify the messages and process them.

@zyxkad
Copy link
Collaborator

zyxkad commented Nov 21, 2024

Looks good for me.
Is this a 1.20.1 only feature or if that can be port to 1.19.2?

@Niki4tap
Copy link
Contributor Author

Is this a 1.20.1 only feature or if that can be port to 1.19.2?

Not sure, tested only on 1.20.1

@zyxkad zyxkad added enhancement New feature or request 1.20.1 labels Nov 21, 2024
@zyxkad zyxkad requested a review from SirEndii November 21, 2024 15:54
@Niki4tap Niki4tap mentioned this pull request Nov 25, 2024
2 tasks
@Niki4tap Niki4tap changed the base branch from dev/1.20.1 to dev/1.19.2 December 4, 2024 14:34
@Niki4tap Niki4tap changed the title Prefer PlayerList.broadcastSystemMessage if we can Add broadcast option to the chat box Dec 4, 2024
@Niki4tap
Copy link
Contributor Author

Niki4tap commented Dec 4, 2024

Rebased and config option added. @zyxkad does this implementation look ok?

@zyxkad zyxkad merged commit 2340cec into IntelligenceModding:dev/1.19.2 Dec 4, 2024
2 checks passed
@SirEndii
Copy link
Member

SirEndii commented Dec 4, 2024

@Niki4tap
Thank you again from me for your nice work!

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

Labels

1.20.1 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants