Crazy Crates Versions Save

Add unlimited crates to your server with 10 different crate types to choose from!

v2.1.2

1 week ago

Additions:

  • Added bstats back to avoid blimps in the bstats page.
    • If you wish to disable bstats, You can use the provided bStats folder to turn it off entirely. There is no need to provide a per plugin toggle as if you don't want it in one plugin, you don't want it in any of them.

Fixes:

  • Fixed an issue with an immutable error when doing /crates additem on a prize already existing.

Minor:

  • Updated outdated commands in default files.
  • Removed unused or commented out code.

What's Changed

Full Changelog: https://github.com/Crazy-Crew/CrazyCrates/compare/v2.1.1...v2.1.2

v2.1.1

1 week ago

Fixes:

  • Fixed an issue where you could still use Menu in /crazycrates debug and /crazycrates additem

What's Changed

Full Changelog: https://github.com/Crazy-Crew/CrazyCrates/compare/v2.1...v2.1.1

v2.1

2 weeks ago

Previous Breaking Changes:

  • Added minimessage support which replaces legacy color codes like &7 or &c

    • CMI/DecentHolograms do not support MiniMessage so you still have to use legacy color codes for that.
  • b290d54 Updated /cc additem to be much more precise and friendly

Previously added rewards will still work until the next major version of Minecraft. The new /cc additem currently only supports 1 item at a time but it's an improvement from before. DisplayAmount is what tells the plugin how much of the item to give so that is required. It will default to 1!

If you add an Items: section, It will use that instead for rewards and treat the nbt tag as if it was just purely for display.

Additions:

  • Added folia support thanks to @Euphillya
  • Added the ability to color the background using hex colors of holograms. It only works with CMI and FancyHolograms.
    • You can check the examples/crates folder under Hologram section for an example of how to add colors.
    • transparent is an option that can be used as well for see through holograms which is the default.
  • Add the option to HideItemFlags in filler glass and crate preview items.
  • Add config option to turn off the auto updating of examples folder.

Extra Item Options:

    1:
      DisplayName: '<red>Porkchop'
      DisplayItem: 'PORKCHOP'
      DisplayAmount: 4
      Chance: 60

If you simply want to give basic items without the need for using Items: or Commands:, You can configure a prize like this and it will give 4 porkchop.

DisplayAmount defines how many items to give, DisplayItem defines the material to give to the player.

You cannot have commands or items while using these type of format for giving items.

Removal:

  • Removed the config option crate.unsupported-settings.old-key-checks as a bug I fixed broke what this setting was used for.

Plugin Support:

  • Add placeholder api support to broadcast message in each crate file.
  • Added support for FancyHolograms by Oliver.
  • Add support for PlaceholderAPI in key displayname/lores.

Changes:

  • Updated how holograms are handled. FancyHolograms should be less finnicky and CMI should perform better.
  • Ability to set Chance in crate fiels to -1 to use filler items.

Fixes:

  • Fixed double lines with decentholograms.
  • Fixed an issue where list messages would have an extra line at the end.
  • Fixed an issue with materials not being recognized.
  • Fixed a bug where keys did not have lores.

Previous Fixes:

  • Fixed an issue where if display names matched, it would not give the right prize.
  • Fixed an issue with casino crate where you could open a casino crate without the key thanks to @TrueDarkLord
  • Temp fix for double message when trying to open a crate with key in off hand. This means for the time being, Keys cannot be used in off hand for physical crates.

Full Changelog: https://github.com/Crazy-Crew/CrazyCrates/compare/v2.0.5...v2.1

v2.0.5

1 month ago

Fixes:

The issue was I was using a method that got the DisplayName of the item which is only for previews. If the display name of 2 prizes were exactly the same. It would not give the correct prize as a result.

Crate:
  Prizes:
    1: -> We needed to get this since it's unique.
      DisplayName: "&cAn example of a Player Head!" -> We were using this instead.

What's Changed

Full Changelog: https://github.com/Crazy-Crew/CrazyCrates/compare/v2.0.4...v2.0.5

v2.0.4

1 month ago

What's Changed

Full Changelog: https://github.com/Crazy-Crew/CrazyCrates/compare/v2.0.3...v2.0.4

v2.0.3

1 month ago

What's Changed

Full Changelog: https://github.com/Crazy-Crew/CrazyCrates/compare/v2.0.2...v2.0.3

v2.0.2

1 month ago

Fixes:

  • Fixed a placeholder issue in commands like /key by using the right config path
  • Fixed the examples folder not generating

What's Changed

Full Changelog: https://github.com/Crazy-Crew/CrazyCrates/compare/v2.0.1...v2.0.2

v2.0.1

1 month ago

What's Changed

  • Fixed an issue where setting crate type menu tried to create a hologram.

Full Changelog: https://github.com/Crazy-Crew/CrazyCrates/compare/v2.0...v2.0.1

v2.0

1 month ago

Breaking Changes:

Do not use this instantly on a live server, Please test it thoroughly before throwing on a live server

Warning, Any keys given to a player will likely not work on older versions. This is not backwards compatible.
I recommend taking a backup of your server prior and restore if needed.
Physical Keys and the data to identify what is a physical key has changed.
Older keys will still work temporarily but please get your players to trade your old physical keys for new ones.

  • Replaced all instances of NBT-API with PersistentDataContainer
  • We do not check if a key has lore/names when checking if you have a valid key because that makes the point of PersistentDataContainer redundant.
  • The ItemBuilder has been updated to a slightly more modern version in preparation for MiniMessage support.
  • Update how physical keys are handled. by @ryderbelserion in https://github.com/Crazy-Crew/CrazyCrates/pull/651

Removed:

  • Temporarily disabled logging keys to console/file due to a weird issue with keys not being taken, The section handling logging is pending re-write

Additions:

  • Added extra placeholders to all messages. The messages.yml will update with new comments showing what each message can use.
  • Add config.yml/messages.yml to examples folder which auto-generate on reload.
  • Added a toggle to allow legacy key checks for niche use cases.
  • Added default commands to run per crate if no prize commands are found similar to Prize-Messages
  • Added %reward_stripped% which returns a stripped version of the reward for plugins like DiscordSRV

Changes:

  • Updated example files in the examples folder
  • Re-work static configuration files by @ryderbelserion in https://github.com/Crazy-Crew/CrazyCrates/pull/654
  • All internal placeholders used in config.yml and messages.yml have changed.
    • %player% is now {player}
    • %crate% is now {crate}
    • %amount% is now {amount}
    • %key% is now {key}
    • %keys% is now {keys}
    • %page% is now {page}
    • %prefix% is now {prefix}
    • %world% is now {world}
    • %cratetype% is now {cratetype}
    • %prize% is now {prize}
    • %number% is now {number}
    • %keytype% is now {keytype}
    • %usage% is now {usage}
    • %key-amount% is now {key_amount}
    • %crates_opened% is now {crates_opened}
    • %id% is now {id}
  • Used correct message when a player has no keys using /cc open

Enhancements:

  • Added a warning on startup if the spawn protection in server.properties isn't 0.
  • Added the ability to add enchants to ENCHANTED_BOOK, so they function in anvil.
      4:
      DisplayName: "&d&lSharpness 5 / Looting 3"
      DisplayItem: "ENCHANTED_BOOK"
      DisplayAmount: 1
      DisplayEnchantments:
        - "SHARPNESS:5"
        - "LOOTING:3"
      Lore:
        - "&7A sharp enchantment book."
        - "&6&lChance: &c&l25%"
      MaxRange: 100
      Chance: 25
      Firework: true
      Messages:
        - "&7You just won &r%reward%."
      Items:
        - "Item:ENCHANTED_BOOK, Amount:1, DAMAGE_ALL:5, LOOTING:3"
  • Added the ability to select custom particles and colors for QuadCrates
Crate:
  # Only used for quadcrates
  particles:
  # Only used for "dust" particle
  color: "235,64,52"
  # https://minecraft.wiki/w/Particles_(Java_Edition)
  type: "crimson_spore" 
  • Prevent pistons from moving blocks if they are a crate.
  • Play sounds in /crazycrates admin when a player gets virtual/physical keys.
  • Change from sending messages in chat for /crazycrates admin to using action bars.
  • Optimize item meta checks.
  • If the crate main menu is turned off, Trying to do /crates set menu will send you a message saying you can't.
  • If the crate main menu is disabled, /crates will simply open the help message instead.
  • Only check if a player has physical keys if the config option is enabled.

API:

  • Deprecated and marked for removal CrazyCratesService and ICrazyCrates
  • What else will be added in the API? Ways to add your own crate locations, view current crate locations or listen to events etc.

Fixes:

  • Remove player from crate/page/preview arrays on inventory close event as it wasn't before.
  • Fix the player getting a preview message if they weren't in the preview when you did /crates reload.
  • Fixed a bug related to CrateOnTheGo where the event would fire twice using 2 of your crates.
  • Fixed an issue where failed to take keys would fire multiple times.
  • Fixed another issue with mass-open related to being added to opening list and not being removed if no keys found.
  • Fixed multiple issues with how the inventory is checked for keys.
  • Fixed an issue with quadcrates where if you set the structure.random to false, It would still be random.
  • Fix dummy event handling by @FiLKoNd in https://github.com/Crazy-Crew/CrazyCrates/pull/670

New Contributors

Full Changelog: https://github.com/Crazy-Crew/CrazyCrates/compare/v1.22...v2.0

v1.22

2 months ago

Additions:

  • Added the ability to override the menu button functionality to use your own menu through DeluxeMenus and any other gui plugin.
    • The config options have been automatically added to your config.yml and default to false, They can be found where you edit what the menu button looks like.

Enhancements:

  • Re-did how /crate admin handles giving keys, It expands the size of the inventory to 54 slots and adds a button at the bottom explaining how to get keys.
    • At the same time, This fixed an issue where the lore of the keys given were different. Will it be paginated? Someday

Full Changelog: https://github.com/Crazy-Crew/CrazyCrates/compare/v1.21...v1.22