Skip to content

Commit

Permalink
[ci-skip] update history.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Aug 24, 2024
1 parent 32dbbb9 commit 2084db0
Showing 1 changed file with 119 additions and 0 deletions.
119 changes: 119 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,125 @@
## Update History
Date format: (YYYY-MM-DD)

<details>
<summary>v3.7.3 (1.21.1) - 2024-08-25</summary>

### Fixed:
- Fixed a class cast exception with the ItemBuilder when using `Data:` or `DisplayData:`

</details>

<details>
<summary>v3.7.2 (1.21.1) - 2024-08-24</summary>

### Fixed:
- Fixed an issue with /crazycrates migrate ExcellentCrates
- Added a missing configuration option, that is required in our crate configs.

</details>

<details>
<summary>v3.7.1 (1.21.1) - 2024-08-23</summary>

### Changes:
- Removed all getItemMeta/hasItemMeta calls for checking PersistentDataContainer
- We now check ItemStack#PersistentDataContainerView which no longer relies on ItemStack#getItemMeta
- TLDR: stonks

### Added:
- Added a toggle, which allows you to revert the chance made previously.
- `crazycrates.open.<crate_name>` -> `crazycrates.deny.open.<crate_name>`
- The configuration option can be found in the `config.yml` i.e. `root.use-new-permission-system` which defaults to false
- This option is subject for removal however toggled like this for now, `false` means the old system i.e. `crazycrates.open.<crate_name>` is back.
- The new way i.e. `crazycrates.deny.open.<crate_name>` will be removed in the next version of Minecraft!
- All further experiments will be behind toggles like this one going forward.

</details>

<details>
<summary>v3.7 (1.21.1) - 2024-08-22</summary>

### Added:
- Ability to migrate crate configurations from ExcellentCrates.
- active locations from ExcellentCrates are also migrated!
- Added a new feature where the `RequiredKeys` can also take that amount of keys [#755](https://github.com/Crazy-Crew/CrazyCrates/issues/755)
- `use-required-keys` in `config.yml` has to be true for that to take effect.
- Added %chance% placeholders to prizes and tiers

#### Crate Config Changes:
- `Crate.CrateName` is deprecated, and has been replaced by `Crate.Name`
- The options were duplicate, and one wasn't used which annoyed me.
- `Crate.CrateName` will be removed in the next version of Minecraft!
- You can run /crazycrates migrate CratesDeprecated to migrate deprecated options.
```yml
Crate:
# https://docs.crazycrew.us/docs/plugins/crazycrates/misc/crate-types

# Make sure to check out the wiki for anything not explained here.
# https://docs.crazycrew.us/docs/category/crazycrates

# See CosmicCrate.yml to see how the Cosmic CrateType works.
CrateType: Casino
# Name of the Inventory if a GUI crate.
CrateName: "<dark_blue>Casino Crate" # Deprecated, but will still work
# Name of the item in the GUI.
Name: "<bold><dark_blue>Casino Crate</bold>" # This is what is used now if CrateName isn't found
# The lore of the item in the GUI.
Lore:
- "<gray>This crate contains strange objects."
- "<gray>You have <gold>%keys% keys <gray>to open this crate with."
- "<gray>You have opened this crate: <gold>%crate_opened% times"
- "<gray>(<yellow>!<gray>) Right click to view rewards."
```
- `Crate.Preview-Name` is deprecated, and has been replaced by `Crate.Preview.Name`
- The option was meant to always be under `Crate.Preview`
- `Crate.Preview-Name` will be removed in the next version of Minecraft!
- You can run /crazycrates migrate CratesDeprecated to migrate deprecated options.
```yml
Preview:
# The name of the inventory for the preview menu.
Name: "<green>Basic Crate Preview" # moved it under Preview
# Turn on and off the preview for this crate.
Toggle: true
# How many lines the Crate Preview should have. Including Header and Bottom (Between 3 and 6)
ChestLines: 6
Glass:
# Turn the glass border in the preview on and off.
Toggle: true
# The name of the border item.
Name: " "
# The item that shows in the border. Can be glass or any other item.
Item: "gray_stained_glass_pane"
# The custom model data of the item, -1 is disabled.
Custom-Model-Data: -1
```

### Fixes:
- Fixed a rare issue where you weren't able to open QuickCrate
- Fixed a duplication issue with CosmicCrate
- Fixed an issue where CMI likely wouldn't be detected

### Changes:
- Right click now opens the crate menu as well.
- Checked location strings instead of object ids
- Simplified multiple location getters, don't need to get the same location 3 times if we aren't changing it.
- `{crate}` in messages will now return `Crate.Name` instead of the file name
- Cleaned up internals related to sometimes, the file name being used along with bad naming schemes.
- `Crate#getName()` is now `Crate#getFileName()` while `Crate#getCrateInventoryName()` is `Crate#getCrateName()`
- Check if the prizes section is empty before opening a crate, prevents unneeded chance calculation.
- Overhauled the `/crazycrates migrate` command, sends a more detailed message of what was migrated.
- files that show up red failed to migrate while files that are green succeeded,
- it also tells you the migration type you picked when running the command, while also reloading the plugin!
- Only saving to file, if we find anything that needs to be migrated with `CratesDeprecated` option
- Only migrate `Editor-Items`, if `use-old-editor` in the `config.yml` is set to `false`
- A lot of other changes were internal clean up, I was merely being a Janitor. functionality should not change.
- Deprecated `use-minimessage` in `config.yml`, it will be removed in the next major version of minecraft
- The library (made by me), now has its own directory much like bStats. Each plugin using it will get a config generated inside it.
- You simply after `use-minimessage` is removed will have to edit that file instead which is `Vital/crazycrates-config.yml`
- Once the option `use-minimessage` is removed, setting `is-legacy` to false will allow MiniMessage

</details>

<details>
<summary>v3.6.1 (1.21.1) - 2024-08-10</summary>

Expand Down

0 comments on commit 2084db0

Please sign in to comment.