Creators
Details
1.17.0
Compatibility
Changes
[REFACTOR] Create MultiplatformCommand in CoreModule
The command error handler moves into CoreModule and needs it to find the sender, so the command module now takes it from there instead of receiving its own copy.\n[REFACTOR] Move CommandExceptionHandler into CoreModule\n[FEAT] Tell the sender why a command failed
Any failure that was not a permission or player check used to read "wrong usage", even a crash. Texts carried by LocalizableComponentCommandException now reach the sender, and an unexpected exception is logged and reported as an unknown error.\n[FEAT] Give every AstraLibs command exception its own text
An unknown player and an unparsable argument read "wrong usage", which does not tell the sender what to fix. A sender the platform cannot wrap, like a command block, made the handler throw; it is now only logged, with the command name but not its arguments.\n[FIX] Report a malformed /soulkrate argument as an invalid argument
UUID.fromString and Instant.ofEpochSecond throw plain JDK exceptions, which the handler rightly treats as unexpected. The uuid now goes through an argument converter, and Brigadier rejects seconds outside the range of Instant.\n[CHORE] Bump version to 1.17.0\n[DOCS] Remove the KDoc this change added\nMerge pull request #105 from Astra-Interactive/feat/command-exception-handler
[FEAT] Tell the sender why a command failed
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:tnr41XhG:MAQVP2DX"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:tnr41XhG:MAQVP2DX"
}

