Tags
Creators
Details
Licensed MIT
Published 5 months ago
Updated 2 months ago
All versions
1.0.15
Release
AmplProtections 1.0.154 months ago 21
Compatibility
Minecraft: Java Edition
26.1.x
1.21.x
Platforms
Paper
Purpur
Spigot
Changes
Protection System Update
This update optimizes the regional access logic and fixes member permission issues.
Changes
- Fixed Entry Flag Logic: Updated
canPlayerActinProtectionRegion.javato properly validate theEVERYONEflag before checking for member ranks[cite: 2]. - Improved Permission Hierarchy: Refactored
canPerformActioninProtectionRegion.javato use rank weights instead of manual boolean checks[cite: 2, 4].- This ensures that members and higher-ranking players (Admins, Owners) are correctly granted access when the
entryflag is set toMEMBERS[cite: 2, 4]. - This logic correctly respects the established rank hierarchy:
OWNER > SECONDARY_OWNER > ADMIN > MEMBER[cite: 4].
- This ensures that members and higher-ranking players (Admins, Owners) are correctly granted access when the
- Fixed Member Notification: Corrected the message notification logic in
ProtectionCommand.javato ensure players receive the correct feedback when they are added to a region[cite: 1].
Improvements
- The logic is now more scalable, allowing new ranks to be integrated easily by simply adjusting their weight in the
PlayerRankenum[cite: 4]. - Fixed the restriction issue where members were previously denied access despite the
entryflag being set toMEMBERS[cite: 2].
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:sL5AiZpx:nXObjSkX"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:sL5AiZpx:nXObjSkX"
}

