▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/CrazyCrates
CrazyCrates

CrazyCrates

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

253.9K
235
Все версииCrazyCrates 5.0.0

CrazyCrates 5.0.0

Release1 мес. назад

Список изменений

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

  • ChestLines has been renamed to Rows in the crate config files, 5eec53b
    • All existing configurations should continue to work, You can run /crazyrates migrate -mt CratesDeprecated to change this, or simply use Find and Replace.

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.yml folder for a full example of how to do it.
    • It supports the same structure as the new way to do items in the Items section 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 Items section.
  • 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

Файлы

CrazyCrates-5.0.0.jar(1.13 MiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

5.0.0

Загрузчики

Folia
Paper
Purpur

Версии игры

1.21.11

Загрузок

3.9K

Дата публикации

1 мес. назад

Загрузил

ID версии

Главная