2.5.2
Compatibility
Changes
v2.5.2
This pull request introduces several changes to enhance the messaging system in the LyttleEssentials plugin by replacing the use of raw string arrays for message replacements with a more structured Replacements class. Additionally, it adds support for global configuration management and improves the handling of raw messages. Below is a breakdown of the most important changes grouped by theme:
Messaging System Enhancements:
- Replaced
String[][]arrays with theReplacementsclass for message replacements across multiple commands, includingAdminTeleportCommand,FlyCommand,GamemodeCommand,HealCommand,HomeCommand, andRepairCommand. This improves readability and provides a more structured approach to handling dynamic message content.
Configuration Management:
- Added a new
GlobalConfigclass to manage global configurations. This was integrated into theLyttleEssentialsplugin initialization process and passed to theMessageclass for enhanced configuration handling.
Raw Message Handling:
- Updated the
LyttleEssentialsCommandto useComponent.textfor sending raw messages, improving compatibility with modern text components and enhancing message formatting.
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:8nf7q1sQ"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:mXLxDDZ3:8nf7q1sQ"
}

