Update: Safer Reward Execution & Spigot 1.21.4 Support
This update improves reward handling, stability, and debugging. It also adds new features for vote parties and updates support to Spigot 1.21.4.
Changes
- Filtered out null or empty commands and messages before running.
- Added warnings when:
- Command list is empty
- Message list is empty
- Percent value is missing or invalid
- Added null checks for
Player,OfflinePlayer,Reward, and plugin. - Wrapped reward and vote execution in
try-catchto prevent crashes. - Prevented
ArrayIndexOutOfBoundsExceptionfrom invalid configs. rewardGivenis set only after successful execution.- Added warnings for failed reward execution.
- Cached
OfflinePlayer.isOnline()checks to reduce calls. - Safe async handling for vote processing and storage.
- Fixed random reward selection to avoid infinite loops.
- Improved logs for warnings, errors, and load events.
- Consistent handling of online/offline players and Redis storage.
New Features
- Configurable vote party sound.
partySoundsection added toconfig.yml- Volume and pitch are configurable, defaulting to
1 1
Spigot Update
- Updated from 1.21.1 to 1.21.4 for official support.
Summary
- Strong safety checks with clear warnings.
- More stable and reliable reward execution.
- Better performance and logging.
- New vote party sound system.
- Full support for Spigot 1.21.4.