Sueta

BetterConfig

2.3.0

A very powerful and easy to use command based configuration library for servers and clients.

·Plugin
  1. 2.3.0latestRelease Paper 2.3.0Jan 19, 2025
    - Greatly improved documentation of Config class
    640 downloads
  2. 2.3.1Release Paper 2.3.1Jan 19, 2025
    _No relevant changes._
    62 downloads
  3. 2.2.0Release Paper 2.2.0Jan 15, 2025
    - Update JavaDoc to clarify that resetting a config does not use the setter - Allow for custom chat representations of config values ([#16](https://github.com/xpple/BetterConfig/pull/16))
    62 downloads
  4. 2.1.3Release Paper 2.1.3Jan 14, 2025
    _No relevant changes._
    62 downloads
  5. 2.1.2Release Paper 2.1.2Oct 10, 2024
    - Added the sources JAR to the publication
    98 downloads
  6. 2.1.1Release Paper 2.1.1Oct 9, 2024
    - Fixed a bug with ModConfig#resetTemporaryConfigs that could cause a bug when a config is both temporary and readOnly
    77 downloads
  7. 2.1.0Release Paper 2.1.0Sep 13, 2024
    This release introduces two new features and some bug fixes! - Added the onChange config attribute ([#10](https://github.com/xpple/BetterConfig/pull/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](https://github.com/xpple/BetterConfig/pull/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](https://github.com/xpple/BetterConfig/pull/8) by Amirhan-Taipovjan-Greatest-I)
    101 downloads
  8. 2.0Release Paper 2.0Aug 20, 2024
    - Added support for Paper servers Depending on your setup, you might have to adjust how the config is initialised: - Fabric clients:
        new ModConfigBuilder<FabricClientCommandSource, CommandBuildContext>(<mod id>, Configs.class)
            // ...
            .build();
        
    - Fabric servers:
        new ModConfigBuilder<CommandSourceStack, CommandBuildContext>(<mod id>, Configs.class)
            // ...
            .build();
        
    - Paper servers:
        new ModConfigBuilder<>(<plugin name>, Configs.class)
            // ...
            .build();
        
    - Added support for server-sided custom argument types - Fabric:
        dev.xpple.betterconfig.util.WrappedArgumentType
        
    - Paper:
        io.papermc.paper.command.brigadier.argument.CustomArgumentType
        
    - Fixed bug where the reset subcommand would be available for readonly configs
    101 downloads
  9. 1.3-multi-platformRelease Paper 1.3-multi-platformAug 20, 2024
    - Added support for Paper servers (details will follow in the stable release)
    103 downloads

Similar projects

Plugin →