RedLib
6.5.8A powerful, well-documented, and open-source library to make Spigot plugin development easier
6.5.8latestAdd /struct importSep 25, 2022 - Allows you to import a structure from a file - Also fixed a bug with getting relative blocks in mirrored structures6.5.7Fix wall rotationsSep 23, 2022 - Also make /struct build default to false for mirrored6.5.6.1Fix ClassCastException in EventListenerSep 16, 2022 Turns out Bukkit has a really weird way of dispatching events6.5.6Fix for EventListenerSep 16, 2022 Fix EventListener not being able to listen to EntitySpawnEvent6.5.5Fix bug with JSON parserSep 4, 2022 Bug caused leading zeroes in decimals to be ignored6.5.4.1Remove debug outputAug 18, 2022 Whoops6.5.4Fix bug with Structure#getBlock on mirrored structuresAug 18, 2022 For structures that were both mirrored and rotated, Structure#getBlock would incorrectly return null sometimes6.5.3.2Fix negative decimal parsingJul 26, 2022 Fix bug with JSON parser leading to inaccurate parsing of negative decimals6.5.3.1Fix minor bug in JSON parserJul 25, 2022 JSON serialization now properly escapes backslashes6.5.3Update JSON parser used by BlockDataManagerJul 25, 2022 The new JSON parser is roughly twice as fast and should use somewhat less memory, dramatically improving the performance of the BlockDataManager.6.5.2.1Fix BlockDataManager#loadAllJun 13, 2022 Previously, BlockDataManager#loadAll would clear loaded DataBlocks but not load them back in properly, this has been fixed6.5.2Fix NPE for BlockDataManagerApr 8, 2022 - Caused by completed loading task not being removed somehow6.5.1.9Fix RedLib not generating a default configMar 5, 2022 Would previously have to manually create the config and putdevMode: trueto enable dev mode6.5.1.8Add placeholder utilities to MessagesFeb 15, 2022 - Can now define placeholders and custom regex to find them, and replace them easily when fetching a message - Made formatter no longer run every time a message is fetched6.5.1.7Fix post-init methods not being runFeb 15, 2022 - Since subclass converters were added, config post-init methods were not working as intended due to a mistake - Enable asynchronous file writes to sql databases for BlockDataManager6.5.1.6Bump BlockDataManager listeners to MONITOR priorityFeb 2, 2022 - Should help avoid issues with protection plugins6.5.1.5Fix CME for BlockDataManagerJan 31, 2022 CME would occur when saving on shutdown6.5.1.4Fix ItemUtils#toString and fromStringJan 31, 2022 - Should now properly work for all items - Previously would not work for banners and some other complex items like bee hives with bees inside them6.5.1.3Fixed issue which would cause DataBlocks to be deleted erroneouslyJan 30, 2022 - Chunks flagged as modified would not be unflagged when saved - This would cause modified chunks that were unloaded when saveAll is called to be deleted6.5.1.2Improve performance for saving/unloading data for BlockDataManagerJan 29, 2022 - Previously would wait for a loading task to complete before unloading, this could cause severe lag in some cases - Now cancels loading task instead6.5.1.1Fix NPE for BlockDataManagerJan 28, 2022 - NPE would occur when loading a chunk, then unloading it, then loading it again and attempting to interact with DataBlocks6.5.1Add support for comments via ConfigManagerJan 27, 2022 - Add comments to config fields with the repeatable@Commentannotation - Only supported in 1.18.1 and above, since there was no support for comments in spigot's config library prior to that6.5.0.1Minor improvementsJan 27, 2022 - Fix rare error which would happen when opening SQLite connections on some platforms - Make DataBlocks remove keys mapped to null values6.5Complete rewrite of BlockDataManagerJan 27, 2022 - Can now be backed by either PDC or SQLite - Can now retrieve data asynchronously - Can now automatically load data asynchronously as chunks are loaded - To migrate from an old SQLite database, call BlockDataManager#migrate, only available for SQLite-backed managers6.4.0.2Fix primitive wrapper conversions for collections and maps in ConfigManagerJan 20, 2022 - Map<Double, V> would sometimes have issues if some keys in config were formatted like ints, this is now fixed6.4.0.1Fix StringIndexOutOfBoundsExceptionJan 16, 2022 .6.4Add support for subclass conversions to config managerJan 16, 2022 - Subclasses of config-mappable classes can now be converted by storing the type in config - Base commands registered to the command map now correctly report their usage - Removed old/deprecated config manager6.3.0.5Fix space counting for post-argument subcommandsJan 11, 2022 - Post-argument subcommands can now be run with parent arguments that are quoted with multiple spaces6.3.0.4Improvements for RedCommands and ItemUtilsDec 23, 2021 - Add ItemUtils.skull, used to generate a player skull - Ignore exceptions for tab argument conversion6.3.0.3Fix ClassCastException in ConfigManagerDec 22, 2021 - Exception would be caused when trying to load a number from a config-mapped object inside a list6.3.0.2Add ConfigName annotation to specify the path to a value in configDec 22, 2021 This required more internal restructuring than I would like to admit6.3.0.1Fix collection loading to use proper YAML listsDec 21, 2021 - Added wrapper DataHolder to abstract away implementation details of storage from the converters - Switch SQLCache to use synchronized maps, which can store null keys and values6.3Complete rewrite of ConfigManagerDec 20, 2021 - The old config manager, and the redempt.redlib.configmanager package, are now deprecated and will be removed at a later date - New config manager is in redempt.redlib.config - Now can deserialize to record types (ConfigMappable annotation not required) - No longer uses ConfigValue, all fields are automatically deserialized unless marked transient - No longer requires ConfigManager.map/list/collection, can natively serialize and deserialize regular collections and maps - Major code cleanup, more extensible - Can now only deserialize to static fields in the root of the config - Can now reload config from disk - New guide can be found at https://github.com/Redempt/RedLib/wiki/Config-Manager - New docs can be found at https://redempt.dev/javadoc/com/github/Redempt/RedLib/red…6.2.1.7Prepare for migration to custom build serverDec 18, 2021 Docs are now hosted at https://redempt.dev/javadoc/com/github/Redempt/RedLib/ind…6.2.1.6Fix docsDec 17, 2021 - Javadocs should automatically be viewable in your IDE if the project is imported with maven or gradle - Removed docs from project directory (you can still generate them with gradle if you want) - Javadocs can now be found at https://javadoc.jitpack.io/com/github/Redempt/RedLib/6.2.…6.2.1.5Minor fixes for ProtectionPolicyDec 14, 2021 - Fix protection for hopper minecarts so a hopper minecart outside a protection can no longer remove items from an inventory inside a protection with the CONTAINER_ACCESS ProtectionType - Add TRAMPLE to ProtectionType.DIRECT_PLAYERS6.2.1.4Bugfix and new flag for ProtectionPolicyDec 13, 2021 - Added ProtectionType.TRAMPLE - ProtectionType.CONTAINER_ACCESS now properly prevents the opening of double chests6.2.1.3Add automatic versioning to plugin.ymlDec 4, 2021 - Plugin is now versioned using the last commit date6.2.1.2Fix NPE in ProtectionListenerNov 29, 2021 NPE would happen when dispensing an item from a dispenser, but would not impact functionality6.2.1.1More consistency for ProtectionPolicy, bugfix for RedCommandsNov 29, 2021 - ProtectionType.PLACE_BLOCK prevents multi blocks from being placed now - Storage minecart access is now protected by CONTAINER_ACCESS and not INTERACT_ENTITY - Dispenser protection types now also protect against placement of fish in buckets - An ArrayIndexOutOfBoundsException would sometimes be thrown when running a subcommand with no arguments if it had no hook, this has been fixed6.2.1New ProtectionTypes to protect non-living entitiesNov 28, 2021 - Moved protection registrations to new helper class - Added protection types to prevent use of dispensers with items that may place entities or blocks - Added protection types to prevent messing with entities such as armor stands, boats, minecarts, and item frames - The ENTITY_EXPLOSION protection type now also prevents item frames from being blown up6.2.0.2Improve error reporting for commandsNov 27, 2021 - Attempting to run a post-argument subcommand whose parent has invalid arguments will now only show the help menu for the subcommand, not all commands available from the parent - Merged base commands will now discard null error messages if possible6.2Complete overhaul of constraintsNov 26, 2021 - Breaking: All constraints defined prior to this version will need to be rewritten using the new constraint system - Constraints are now parsed once when the command file is parsed and give a reusable predicate to lower computational cost of constraint checks - Constraints can now dynamically generate error messages based on the sender, constraint conditions, and supplied value - Refactored constraint definitions for default number types to avoid copying code - Constraints for number types now show more specific error messages - Added ArgType#getDefault to get a default ArgType by name6.1.5.1Fix jitpack buildsNov 25, 2021 Jitpack builds now work properly again6.1.5Fix handling of player-only parent commandsNov 24, 2021 - Commands with player-only parents that have hooks can now be run by console (unless they are also player-only, of course) - Improved consistency of error reporting for commands when they are run incorrectly - Fix NPE on error reporting for commands that have the wrong argument types in the method hook, and an optional argument that is not specified when the command is run - Code cleanup to simplify logic - Update gradle version to 7.36.1.4.4Various improvements and fixesNov 23, 2021 - ProtectionType.CONTAINER_ACCESS now prevents hoppers from moving items into chests from outside a protected area - Added static methods to ProtectionPolicy to register custom protections against multi-block and directional events - Made methods on SQLCache synchronized - Parsing for MID_VERSION was broken by the version string returned by spigot 1.18-pre5, now parses correctly again6.1.4.3Add more flexibility to ChatPromptNov 21, 2021 - Can now pass null as the prompt to not show a prompt message to the player - Can now pass a boolean to specify whether the cancel message should be shown to the player - Bugfix for PaginationPanel#addSlots(int, int, int, int)6.1.4.2Fix shift-click insertion order for open gui slotsNov 20, 2021 - Shift-clicked items will now enter an InventoryGUI into open slots in the order they were opened - Added InventoryGUI#openSlots and InventoryGUI#closeSlots variants which fill a rectangular area with 2 x and y coordinates6.1.4.1Improvements to argument constraintsNov 13, 2021 - Constraints can now be applied to flags - ArgTypes can now specify an error message to be shown when a constraint fails6.1.4Add command argument constraintsNov 12, 2021 - Command argument constraints allow you to apply additional filters per-argument with the same type - You can specify your own constraint rules for your own argument types, but existing ones have been put in place for int, float, long, and double to specify min and max values - Example is int<1,100>:num to limit from 1 to 100, or <,100> for up to 100, or <100,> for 100 or above6.1.3Various bugfixes for RedCommandsNov 12, 2021 - Merged base commands now properly display help menus - Merged base commands now properly display error messages when the command is misused - Nested post-argument subcommands now display previous arguments in help menus properly - Nested posted-argument subcommands followed by regular subcommands followed by more post-argument subcommands no longer break the command processor - Does anyone other than me use these features?6.1.2.1Minor changes and fixesNov 11, 2021 - Made ProtectionType.INTERACT no longer prevent container access - Fixed argument processing for nested post-argument subcommands - Made SQLite connections enable foreign key constraints by default6.1.2Bugfixes for RedCommands, added new ProtectionTypes for structure growthNov 10, 2021 - The lambdas passed to ArgType#tabStream and ArgType#setTab can now safely return null - Fix NPE that would occur when a command with a post-argument subcommand that had no hook was run directly - Added ProtectionType.STRUCTURE_GROWTH, for when a structure (like a tree) is grown - Added ProtectionType.STRUCTURE_GROWTH_IN, for when a structure who location is outside a protected area would create blocks within a protected area - ProtectionType.GROWTH no longer prevents fire spreading, and ProtectionType.FIRE does6.1.1Add ProtectionTypes that respect where the event came fromNov 10, 2021 - Added ProtectionType.FLOW_IN, which will only prevent liquids from flowing into protected regions, not from flowing within or flowing out of protected regions - Added ProtectionType.PISTONS_IN, which will only prevent pistons from pushing or pulling blocks from outside of a protected region, not operating within one or pushing/pulling blocks outside - ProtectionType.PISTONS is no longer included in ProtectionType.INDIRECT_PLAYERS, but PISTONS_IN is6.1.0.3More minor bugfixes for PaginationPanelNov 1, 2021 - Will no longer create a new blank page when the last page fills up if there is not an element to be placed on the next page - PaginationPanel#clear will now properly remove all elements from the inventory6.1.0.2Fixes and additions for PaginationPanelNov 1, 2021 - 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 ItemButtons6.1.0.1Base commands are no longer tab-completable without permissionNov 1, 2021 - 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 time6.1InventoryGUI pagination and ConfigCollectionOct 31, 2021 - 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 config6.0.9.1Remove minecraft namespace prefixes from serialized MultiBlockStructuresOct 6, 2021 - 'minecraft:' will no longer be included in front of block names (1.13+)6.0.9Fix issue causing structure scanning to not work in some casesOct 6, 2021 - Rewrote structure scanning method entirely - Issue happened in 1.12, still not sure what cause was - Structure scanning is now faster and less memory-intensive6.0.8Fix bug related to kotlin pluginsOct 5, 2021 - Skip classes which throw NoClassDefFoundError when finding subclasses at runtime6.0.7Fix bug with WeightedRandomSep 9, 2021 - WeightedRandom will no longer have biased RNG after removing an outcome (thanks for the PR, divios)6.0.6Fix bug with RedCommands, ItemUtils now mutatesSep 8, 2021 - 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 itself6.0.5Add support for hex codesSep 4, 2021 6.0.4Fix rare NPE with ConfigManagerSep 2, 2021 - 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 called6.0.3Brought back profiler and associated commandsAug 29, 2021 - Added flag to specify tick minimum ms in /profiler monitor start - Config options to start profilers on server startup are gone - For some reason starting the profiler on startup crashes the server, and when I tried to attach to the server using VisualVM to see what caused it to crash, VisualVM crashed too6.0.2Added helpful error outputAug 28, 2021 - Error when trying to run a command hook which has incorrect parameter types will now show the parameter types the command manager tried to pass6.0.1-1Remove debug outputAug 22, 2021 - Removed debug output leftover from the last update, sorry6.0.1Minor bugfixesAug 22, 2021 - Fix issue with command manager loading a certain message - Fix bug with loading floats in config manager6.0RedLib can now be shadedAug 21, 2021 - It can be used as a plugin dependency or a shaded dependency - If you use it as a shaded dependency, none of the developer commands or features will be available - All messages are still configured in the RedLib plugin folder even if RedLib is not installed - Removed profilers and associated commands, as they were causing issues - BlockDataManager#getLoaded will now return an empty set again rather than null if the chunk is not loaded - Removed unfinished CustomBiome and CustomWorldGenerator classes5.1.1Separate command format messages into RedCommandsAug 21, 2021 - Command messages are now in command-format.txt - For the sake of still allowing command messages to be globally configured, this messages file will always show up in the RedLib folder even for plugins which shade RedCommands5.1.0Moved command manager into its own libraryAug 20, 2021 - Code can now be found at https://github.com/Redempt/RedCommands - Command manager is still shaded into RedLib, so your usage of RedLib will not need to change - Updates to the command manager will still be made into releases of RedLib - This is for people who want to use the command manager without having a plugin dependency for it - Refactored command manager code in RedCommands - Added support for combining single character boolean flags (flags like -a and -b can now be combined into -ab in command usage) - Fixed formatting of multi-line help messages5.0.7Change load order to STARTUPAug 19, 2021 RedLib now loads on startup instead of post-world, allowing other plugins which load earlier to interact with it in their onEnable5.0.6Simplify usage of ConfigManagerAug 15, 2021 - ConfigManager will now implicitly convert enums using valueOf and name - Minor optimization to EnchantRegistry (thanks, Shuaiouke)5.0.5Allow ConfigValue annotation to be emptyAug 14, 2021 @ConfigValue may now be used without specifying a path, the path will default to the name of the field it is annotating5.0.4Bugfix for plugins not using JavaJul 13, 2021 - Due to an oversight, attempting to register a command with a non-java plugin would still error, this is now fixed5.0.3Command comments, miscellaneous fixesJul 12, 2021 - '//' can now be used to indicate a comment in command files - Added command feedback for/struct tool(thanks, UntouchedOdin0) - Added variant ofCommandCollection#registerwhich takes the Plugin object explicitly, which is needed for non-java plugins (thanks, Jan Boerman)5.0.2Various fixesJun 16, 2021 - Fixed some logic in MultiBlockStructure#getAt - Structures with strict mode set to false and ignoreAir set to true would not ignore air - Added DataBlock#clear (thanks for the PR, Tacodude7729) - Make ConfigSet extend LinkedHashSet instead of HashSet - Make commands with no help messages show usage instead if they have no subcommands with help messages5.0.1.7Minor fixes and additionsJun 6, 2021 - Fixed bug where optional arguments would sometimes not be considered properly if the input could be converted to its type - Added WeightedRandom#fromCollection to more easily create WeightedRandom objects from collections using lambdas5.0.1.6Fix all instances of equals() comparing only hash codesJun 5, 2021 Should prevent some unexpected behavior, I didn't realize BlockDataManager wasn't the only place I had done this5.0.1.5Fixes for BlockDataManagerJun 4, 2021 - BlockDataManager should now be more reliable - Fixed hash collision causing some issues with BlockDataManager in general - Fixed silly mistake causing other issues with BlockDataManager#getAll - I think this should wrap up all the problems with BlockDataManager's reliability, but please report bugs if you find any - Made some micro-optimizations to ProtectionPolicy5.0.1.4BlockDataManager code cleanup, bug fix for EnchantRegistryMay 29, 2021 - Working on a fix for DataBlocks sometimes not loading properly from BlockDataManager - Fix error with improperly detecting enchantments in EnchantRegistry5.0.1.3May 15, 2021 5.0.1.2Code cleanup, added utility methods, fixed inconsistencyMay 2, 2021 5.0.1.1Fix item deserialization from JSONApr 16, 2021 Previous changes to the JSON parser had broken it due to long/int type conversions5.0.1Various minor fixesApr 16, 2021 - Fixed type casting issue with JSON storage - Fixed double-sending of help menu entries5.0.0.4Minor cleanup for help menuApr 15, 2021 - When a help menu for a subcommand is shown, help for any sibling subcommands with the same name will also be shown - Fixed inconsistent formatting, commands with no arguments would have a space between their name and the colon in the help menu5.0.0.3Fix parsing varargs in post-argument subcommandsApr 15, 2021 - Remove debug output. - Varargs would not be usable in post-argument subcommands, and would always throw an error. This is now fixed.5.0.0.2Fixed issue relating to post-argument subcommandsApr 4, 2021 - Command hooks for subcommands of a post-argument command should still take the arguments of the parent of the post-argument subcommand, but this was not reflected when the command was determining how many arguments the method hook should have - Subcommands with no arguments following a post-argument subcommand between an argument subtype and its parent argument are now ignored, allowing you to have more complex operations5.0.0.1Fix ArrayIndexOutOfBoundsException that would sometimes happen with tab completionApr 4, 2021 Was a minor bug that would not interfere with functionality, but would still print an error to console5.0Reworked tab completion internally, added post-argument subcommandsApr 4, 2021 - Post-argument subcommands are subcommand which appear after the argument of their parent commands, and accept those arguments in their method hooks - Internal rewrite to the tab completer code, since it was old and messy. It is now somewhat faster, much cleaner, and will suggest tab completion options with spaces in quotation marks even if you have not typed a quotation mark - Addedpostargtag to the command parser for defining post-argument subcommands4.9Code cleanup, added argument subtypesMar 30, 2021 - Tore out and rewrote some old, messy code that was becoming hard to maintain (Command#processArgs) - Fixed minor issue with CuboidRegion#overlaps being inclusive - Added command argument subtypes, argument types which rely on the previous argument to resolve their value4.8.6.2Fix data blocks not moving properly in some casesMar 27, 2021 Pistons pushing multiple blocks with only some of the blocks being data blocks would result in the data blocks not being moved4.8.6.1Fix one major issue and one minor issueMar 27, 2021 - BlockDataManager would sometimes move the same data block multiple times with a single piston event - Rotator#rotateBlockFace would hang indefinitely4.8.6Various minor changes and additionsMar 21, 2021 - Allow config mapped objects in plain fields rather than only in config maps, sets, and lists - Add new events to be handled with BlockDataManager (byteful's PR) - Add methods to rotate BlockFaces and Vectors to Rotator4.8.5.1Added methods to set custom model data to ItemBuilder and ItemUtilsMar 18, 2021 Prevents having to get ItemMeta and add it the old fashioned way4.8.5Add wither protection type, version fixMar 8, 2021 - Wither breaking blocks on spawn is now a protection type, WITHER - Add alternative method for getting vector from BlockFace for 1.8, and use it in parts of the library which previously used BlockFace#getDirection for compatibility4.8.4.7Minor fixes for command parsing and tab completionFeb 20, 2021 - Tab completion will no longer break after using a quoted argument with a space - Arguments which take a consuming value will now be passed the entire value including quotation marks - Remove check for if a SQL ResultSet object is already closed when attempting to close since it would throw an error on older servers4.8.4.6Fix ArrayIndexOutOfBoundsExceptionFeb 17, 2021 - Caused by an off-by-one error in the code which checks if a StructureBlock's coordinates would be within the bounds of the structure
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
26.2MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.9MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
4.7MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta