https://github.com/zsoltmolnarrr/tinyconfig
🔧 Super tiny server side config library.
https://github.com/zsoltmolnarrr/tinyconfig
config java library minecraft
Last synced: over 1 year ago
JSON representation
🔧 Super tiny server side config library.
- Host: GitHub
- URL: https://github.com/zsoltmolnarrr/tinyconfig
- Owner: ZsoltMolnarrr
- License: mit
- Created: 2022-08-04T08:12:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-28T09:37:49.000Z (over 3 years ago)
- Last Synced: 2025-01-27T15:46:11.743Z (over 1 year ago)
- Topics: config, java, library, minecraft
- Language: Java
- Homepage:
- Size: 104 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🔧 TinyConfig
Super small server side config library.
## Installation
Add this mod as dependency into your build.gradle file.
Add artifact repository.
```groovy
repositories {
maven { url "https://jitpack.io" }
}
```
Add dependency, for Fabric workspace:
```groovy
dependencies {
implementation include("com.github.ZsoltMolnarrr:TinyConfig:VERSION_TAG")
}
```
Add dependency, for Architectury workspace:
```groovy
// 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
```java
private final ConfigManager manager = new ConfigManager
("server", new ExampleConfig())
.builder()
.enableLogging(true)
.setDirectory("example-mod")
.sanitize(true)
.build();
@Override
public void onInitialize(){
manager.refresh();
}
```