1.2.4-ALPHA.13
Compatibility
Changes
v1.2.4
This pull request introduces several updates to enhance role-based actions, improve code readability, and add new functionality for action bar messages. The changes include refactoring method and variable names, implementing dynamic action bar messages, and updating configuration files to support these enhancements.
Code Refactoring and Cleanup:
- Refactored method and variable names in
ActionsConfigto use camelCase (onEnableandonDisable) for consistency. - Removed unused imports and logging references in
StaffCommand.javafor cleaner code.
Action Bar Enhancements:
- Added support for dynamic action bar messages in
RoleActionwith newactionBarproperty. - Replaced the old
actionBarmethod inStaffCommand.javawith a more flexiblesetActionBarmethod, allowing custom messages and clearing the action bar when needed.
Configuration Updates:
- Updated default configuration files (
config.ymland#defaults/config.yml) to includeaction_barmessages for admin and moderator roles. - Corrected role-related tags in configuration files to distinguish between admin and moderator actions.
Role Action Mapping:
- Enhanced
RolesConfigLoaderto mapaction_barproperty from configuration files toRoleActionobjects.
Version Update:
- Updated
pluginVersioningradle.propertiesfrom1.2.3to1.2.4.
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:uzgwKskt:FH5DkNYl"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:uzgwKskt:FH5DkNYl"
}

