Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make EffBroadcast calls BroadcastMessageEvent #5979

Merged

Conversation

NotSoDelayed
Copy link
Contributor

@NotSoDelayed NotSoDelayed commented Sep 8, 2023

Description

This PR makes EffBroadcast calls for BroadcastMessageEvent. This comment onwards has explained the reasons of why EffBroadcast is implemented in such ways.

JUnit tests can be added after Skript has support of listening to this event.


Target Minecraft Versions: any
Requirements: -
Related Issues: #5617

@sovdeeth sovdeeth added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Sep 8, 2023
src/main/java/ch/njol/skript/effects/EffBroadcast.java Outdated Show resolved Hide resolved
Comment on lines +63 to +64
private static final Pattern HEX_PATTERN = Pattern.compile("(?i)&x((?:&\\p{XDigit}){6})");

Copy link
Contributor

@Fusezion Fusezion Sep 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be worth while making a public static final for this in Utils? we currently have this created in utils, raw string and now effect broadcast.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would love to honestly, but I'm afraid that such changes seems out of scope of this PR for the team. So I'll leave this as is.

@Moderocky Moderocky changed the base branch from master to dev/feature September 17, 2023 07:30
@Moderocky Moderocky added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Apr 26, 2024
@sovdeeth sovdeeth merged commit 6d1a00a into SkriptLang:dev/feature Jul 1, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants