Skip to content

ZsoltMolnarrr/TinyConfig

Repository files navigation

🔧 TinyConfig

Super small server side config library.

Installation

Add this mod as dependency into your build.gradle file.

Add artifact repository.

repositories {
    maven { url "https://jitpack.io" }
}

Add dependency, for Fabric workspace:

dependencies {
    implementation include("com.github.ZsoltMolnarrr:TinyConfig:VERSION_TAG")
}

Add dependency, for Architectury workspace:

// common/build.gradle
dependencies {
    implementation("com.github.ZsoltMolnarrr:TinyConfig:VERSION_TAG")
}
// fabric/build.gradle & forge/build.gradle
dependencies {
    shadowCommon(common("com.github.ZsoltMolnarrr:TinyConfig:VERSION_TAG"))
}

(Substitute VERSION_TAG with the latest release tag of this library, for example: 1.0.0)

Usage

private final ConfigManager<ExampleConfig> manager = new ConfigManager<ExampleConfig>
        ("server", new ExampleConfig())
                .builder()
                .enableLogging(true)
                .setDirectory("example-mod")
                .sanitize(true)
                .build();

@Override
public void onInitialize(){
        manager.refresh();
}

About

🔧 Super tiny server side config library.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages