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

BetterConfig

BetterConfig - мощная библиотека для управления конфигурациями через команды в Minecraft. Подходит для Fabric и Paper. Упрощает создание настраиваемых параметров для модов и плагинов.

Оцените первым
9.1K
10
Все версииRelease Fabric 2.1.0

Release Fabric 2.1.0

Release13.09.2024

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

This release introduces two new features and some bug fixes!

  • Added the onChange config attribute (#10). You can now register a function that is called whenever a specific config is updated. For example:
    @Config(onChange = "onChange")
    public static List<String> exampleOnChange = new ArrayList<>(List.of("xpple, earthcomputer"));
    private static void onChange(List<String> oldValue, List<String> newValue) {
        LOGGER.info("exampleOnChange was updated | old: {}, new: {}", oldValue, newValue);
    }
    
  • Added global change hook (#11). This allows you to register a global function that is called whenever any config is updated. For example:
    new ModConfigBuilder<>("<mod id>", Configs.class)
        .registerGlobalChangeHook(event -> BetterConfigCommon.LOGGER.info("{} was updated | old: {}, new: {}", event.config(), event.oldValue(), event.newValue()))
        .build();
    
  • Added Tatar translations (#8 by Amirhan-Taipovjan-Greatest-I)

Файлы

betterconfig-fabric-2.1.0.jar(54.21 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

2.1.0

Загрузчики

Fabric

Версии игры

1.21

Загрузок

167

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

13.09.2024

Загрузил

ID версии

Главная