Releases: boxbeam/RedLib
Releases · boxbeam/RedLib
Fixes and additions for PaginationPanel
- Fixed issue where PaginationPanel would never display the final element that was added
- Fixed issue where PaginationPanel#getMaxPage would divide by zero when no slots were added
- Added PaginationPanel#clear to remove all added elements
- Added methods to get all added ItemStacks and ItemButtons
Base commands are no longer tab-completable without permission
- Users used to be able to tab-complete the names of base commands they didn't have permission for, this is no longer possible
- Added PaginationPanel#setPage, since you may sometimes need to skip to a specific page rather than moving one page at a time
InventoryGUI pagination and ConfigCollection
- InventoryGUI can now be paginated using the PaginationPanel utility class
- ConfigManager#collection can now be used to wrap any collection type for saving and loading to config
Remove minecraft namespace prefixes from serialized MultiBlockStructures
minecraft:
will no longer be included in front of block names (1.13+)
Fix issue causing structure scanning to not work in some cases
- Rewrote structure scanning method entirely
- Issue happened in 1.12, still not sure what cause was
- Structure scanning is now faster and less memory-intensive
Fix bug related to kotlin plugins
- Skip classes which throw NoClassDefFoundError when finding subclasses at runtime
Fix bug with WeightedRandom
- WeightedRandom will no longer have biased RNG after removing an outcome (thanks for the PR, divios)
Fix bug with RedCommands, ItemUtils now mutates
- Fix bug with command manager where messages would display as their name rather than their value
- Commands now implement PluginIdentifiableCommand, which should make them more reload-friendly
- ItemUtils now mutates items rather than returning clones
- ItemBuilder now no longer returns a new ItemBuilder object with each call, instead mutating and returning itself
Add support for hex codes
- FormatUtils moved from RedLib to RedCommands
- FormatUtils#color now supports hex codes by default in the format &#FFFFFF
- You can now set custom formatter functions for Messages
- Messages now support hex codes by default in the same format as FormatUtils#color
Fix rare NPE with ConfigManager
- NPE would happen when trying to load a mapped object from config where no configuration section existed for the object
- This would only occur if the object was stored directly in a field rather than in a map or list, and saveDefaults was not called