
CrazyCrates
Add unlimited crates to your server with 11 different crate types to choose from!
Changes 🔨
New API
CrazyCrates API has been bumped to 0.9.0
A new class has been added.
Key Manager class, which allows you to check Items that players are holding.
You can fetch this by doing CratesProvider#get()#getKeyManager()
/** * A class for the KeyManager, It handles checking physical keys, and anything else we might need soon. * * @author Ryder Belserion * @version 0.9.0 * @since 0.9.0 */ public abstract class KeyManager<I> { /** * The default constructor for {@link KeyManager<I>}. * * @author Ryder Belserion * @since 0.9.0 */ public KeyManager() {} /** * Checks if the item is a valid key. * * @param item the ItemStack * @return true or false * @since 0.9.0 */ public abstract boolean isKey(@NotNull final I item); /** * Checks if an item matches another item. * * @param item the initial ItemStack * @param comparing the ItemStack to compare * @return true or false * @since 0.9.0 */ public abstract boolean isMatchingKey(@NotNull final I item, @NotNull final I comparing); /** * Gets the name of the crate the key belongs to. * * @param item the ItemStack * @return the name of the crate * @since 0.9.0 */ public abstract String getKey(@NotNull final I item); }Configuration changes
ChestLineshas been renamed toRowsin the crate config files, 5eec53b- All existing configurations should continue to work, You can run
/crazyrates migrate -mt CratesDeprecatedto change this, or simply use Find and Replace.
- All existing configurations should continue to work, You can run
Other Changes
- Added the ability to customize the row/column of the back/next and menu button.
- Added the ability to customize the CSGO animation to either have the top/bottom be static or dynamic. 95de51e
- If you run /crazycrates migrate -mt CratesDeprecated, The existing options you need will generate.
- Please refer to the
examples/crates/CrateExample.ymlfolder for a full example of how to do it. - It supports the same structure as the new way to do items in the
Itemssection which can be found on the documentation.
- Run the command on click in the Crate Menu, instead of on open.
- Added %chance% / %weight% to the prize/default message.
- Added command syntax suggestions to all existing commands.
- Return "N/A" if the file is empty, because files#getFirst() throws an error because no element found.
- Utilize built in methods from CMI/DecentHolograms to handle coloring the messages for better compatibility with their plugins.
- This will maybe also allow other plugin specific features like CMI's countless other features for holograms.
- Remove the brackets from custom name for the item displayed above QuickCrate.
- Fill the bottom border with air to prevent item overfill with the buttons.
- Added toggle to disable opening tracking crate.
Bugs Fixed 🐛
- Fixed an error with WonderCrate.yml on first install, because a prize was lacking an
Itemssection. - Fixed a potential memory leak caused by using double brace initializers.
- Fixed multiple bugs with PlaceholderAPI support.
- Fixed a typo in CosmicCrateManager. #873
- Fixed a typo with %crate_opened_raw%.
- Fixed an issue with items dropping on Folia. #856
- Fixed an issue by using #runNow instead of #run which calls the internal void method.
- Fixed multiple issues with migration types.
- Fixed multiple issues on Folia due to not using schedulers when needed.
- Fixed an issue with potion color not applying with the new items section.
- Fixed an issue with the shield banners using the new item format.
- Fixed an issue with the tier chance per prize not properly showing.
- Fixed crates debug command.
As always, Report 🐛 to https://github.com/Crazy-Crew/CrazyCrates/issues
fde1b0e Update {prefix} replacement for messages
2e73bce Replace all double brace initializers with immutable maps, or new HashMap/List when needed
b92b47f Fix placeholders requiring a player name
5cfc069 Add missing item reward to prize #2 on first startup
1ef6553 Fix placeholder typo
496e4d0 Allow server owners to manually pick CMI
You must downgrade to at least 9.8.2.0, as it seems to still work there.
Automatic enabling of CMI is disabled.
e3d85d5 Update placeholder api support
6c580b1 Run the command on click with gui customizer, instead of on open.
f99bb83 Add %chance% / %weight% placeholder to the prize/default message
f2c5fbd Disable CMI Support temporarily as the API available seems not to match with the newer version of CMI
c0b8105 Fix an issue where players couldn't open crates by default due to non-stripped name being used.
876f3a7 Fix typo in CosmicCrateManager (#873)
1efdceb Always break if the value is less than or equal to 0.0
68ecd37 Fixed issue with new crate files not being added on plugin reload
Fixed an underlying issue where if the crate was deleted, the keys would be deleted as well.
Fixed another issue where the logs folder wasn't being created.
bc92cef Send message when a player uses too many or too few arguments
3af2d36 Add command syntax annotation to all commands
This allows a better way to handle telling players invalid command usage.
ecef83e Added the ability to customize the row/column of the back/next and menu button.
91507b3 Condense the
if elsecheck by moving the isEmpty check into the loop.95de41e Added ability to customize the csgo animation to either have the top/bottom be static or dynamic
If you run /crazycrates migrate -mt CratesDeprecated, The existing options you need will generate.
Please refer to the
examples/crates/CrateExample.ymlfolder for a full example of how to do it.It supports the same structure as the new way to do items in the
Itemssection which can be found on the documentation.

