2.5.7
Compatibility
Changes
v2.5.7
This pull request focuses on simplifying and improving the project's CI/CD workflows and configuration management, as well as refining the chat message filtering logic. The main changes include consolidating multiple GitHub Actions workflows into a single, more flexible workflow, updating the plugin version, switching configuration handling to a new class, and enhancing message sanitization.
Workflow and Release Automation Improvements:
- Replaced the separate
.github/workflows/main.ymland.github/workflows/alpha.ymlwith a unified.github/workflows/release-and-publish.ymlworkflow. This new workflow handles releases for bothmainandalphabranches, automates version tagging, builds artifacts, and publishes to GitHub Releases, Hangar, and Modrinth, streamlining the release process and reducing duplication. [1] [2] [3]
Configuration Management:
- Updated the
Configsclass to use the newYamlConfigclass instead of the oldConfigclass for all configuration files, improving maintainability and consistency in config handling.
Plugin Versioning:
- Bumped the plugin version from
2.5.6to2.5.7ingradle.propertiesto reflect the latest changes.
Chat Message Filtering:
- Enhanced the
filterMessagemethod inonPlayerChatListener.javato more thoroughly remove color codes and MiniMessage tags, both before and after MiniMessage serialization, resulting in cleaner, safer chat output.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:mXLxDDZ3:Eej2saR4"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:mXLxDDZ3:Eej2saR4"
}

