All versions
v1.2.4-Beta
Beta
Red Pockets v1.2.4-Beta8 months ago 13
Compatibility
Minecraft: Java Edition
1.21.x
Platforms
Folia
Paper
Purpur
Changes
RedPockets Changelog
v1.2.4-Beta
/hongbao help command
- HongbaoMainCommand: Added
helpsubcommand, displays available commands based on player permissions - HongbaoTabCompleter: Added Tab completion for
help - Message files: Added help messages (
help-header,help-send,help-claim,help-history,help-rank,help-rain,help-update,help-reload) in all 10 languages - plugin.yml: Added
helpto usage
RedPacket thread safety
- claims: Changed from
HashMaptoConcurrentHashMap - clickClaimed: Changed from
HashSettoConcurrentHashMap.newKeySet() - Safer red packet claiming and click-claim operations under Folia multithreading
Expired red packet memory cleanup
- RedPacketManager: Added
getAndRemoveExpired()to fetch and remove all expired red packets - RedPockets: Added scheduled task that runs every 5 minutes to clean up expired red packets
- Refunds remaining amount to sender
- Broadcasts expiry notification
- Removes red packets from memory
- onDisable: Cancels the scheduled task when plugin is disabled
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:PBqLhkkZ:82J7LXUq"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:PBqLhkkZ:82J7LXUq"
}

