Changelog:
- Added a configuration with editable rarity values and rarity types for the different events that can occur, to give the end user more control over how often players receive the effects.
- Modified listeners to use the respective Configuration values.
- Added the ability to reload a specific player configuration with /luck reload -p <player_name>
- Added the ability to reload the main configuration using /luck reload -m
- Added an integrity checker to validate the main configuration on boot.
Changelog:
- Changed the way classes interact with the PlayerHandler by using a getter instead of the actual field.
- Added #isTool(Material) to ItemBuilder to check if an item is, in fact, a type of tool.
- Created the UnbreakableTool listener which will grant the unbreakable status to a tool if a user is lucky enough.
NOTE: This is a beta feature, and while it may remain included the way it works will most likely change.
Changelog:
- Added ExpBoost feature
- Added Special Rabbit Foot, which increases a user's luck multiplier.
- Added ItemBuilder and MiniComponent library classes
- Removed Messages#builder in favor of MiniComponent
Changelog:
- Renamed LuckContainer#baseValue() to getValue()
- Changed the way files save by using the Map#values() call instead of iterating the kvp's.
- Made the actual percentage rng value round to the closest whole number before being checked.
- Changed Luck#defaultValue() to getDefaultValue().
**Changelog**:
- Fixed a bug where the PlayerListener was not being initialized
- Included the registration for the listener inside the constructor
- Dropped static import in favor of class parent access
- Added to the Luck method "setValue(double)" to automatically update the configuration file when called.
- Adjusted Luck to utilize all 1024 units when calculating the boolean for rng percentage.