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

Add delete changer to ExprMessage #6828

Merged
merged 12 commits into from
Jul 1, 2024

Conversation

Phill310
Copy link
Contributor

Description

Adds the delete changer to message expression (so you can do stuff like clear death message)


Target Minecraft Versions: any
Requirements: none
Related Issues: #5919

Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

needs tests!

src/main/java/ch/njol/skript/expressions/ExprMessage.java Outdated Show resolved Hide resolved
@sovdeeth sovdeeth added enhancement Feature request, an issue about something that could be improved, or a PR improving something. 2.9 Targeting a 2.9.X version release labels Jun 28, 2024
Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
@Phill310
Copy link
Contributor Author

Are there already tests for this because I can't seem to find them? Also I am not fully sure how I would trigger an event like join to test this

@sovdeeth
Copy link
Member

Are there already tests for this because I can't seem to find them? Also I am not fully sure how I would trigger an event like join to test this

It'd need something like a JUnit where you manually call a message event

@Phill310 Phill310 requested a review from sovdeeth June 28, 2024 18:03
@Phill310
Copy link
Contributor Author

Is 1 test for set and clear good enough or should I try to make a test for each event

@sovdeeth
Copy link
Member

Is 1 test for set and clear good enough or should I try to make a test for each event

I think this is fine, but if you're willing, it can't hurt.

@sovdeeth sovdeeth added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Jun 30, 2024
@sovdeeth sovdeeth merged commit abc782c into SkriptLang:dev/feature Jul 1, 2024
5 checks passed
@Phill310 Phill310 deleted the clear-message branch July 2, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.9 Targeting a 2.9.X version release 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.

4 participants