All versions
v1.2.2-Alpha
Alpha
Red Pockets v1.2.2-Alpha8 months ago 15
Compatibility
Minecraft: Java Edition
1.21.x
Platforms
Folia
Paper
Purpur
Changes
RedPockets Changelog
v1.2.2-Alpha
Performance
- Async file I/O: HistoryManager, RankManager, and DailyLimitManager now save asynchronously to avoid blocking the main thread
- History retention: New
history-retention-daysconfig option (default 7) to automatically delete history older than the specified days; 0 disables deletion
Shutdown data safety
- onDisable sync save: Sync-save history, rankings, and daily limit data when the plugin is disabled to prevent data loss
- Cancel scheduled tasks: Properly cancel the red packet rain scheduled task on disable
User experience
- Tab completion:
/hongbaocommand supports Tab completion for subcommands (history, rank, rain, update, reload, claim, clickclaim) - OP update notification on join: OPs with
redpockets.reloadpermission receive an update notification when joining if a new version is available; can be disabled viaupdate-notify-on-joinconfig
Code structure
- Command refactor: Split
/hongbaomain command logic intoHongbaoMainCommandwith separate methods per subcommand - Config caching: New
ConfigCachemanager to cache frequently used config values (amount/count limits, cancel word, expiry, cooldown, daily limit, VIP permissions, etc.), reducing repeated config reads; refreshes automatically on reload
Config updates
history-retention-days: Number of days to retain history (0 = no deletion)update-notify-on-join: Whether to notify OPs of updates on join (default true)
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:1hKXfn9S"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:PBqLhkkZ:1hKXfn9S"
}

