Free library

build.gradle
repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    // shade it into your plugin:
    implementation 'com.github.IgnitedStudiosFire:SimpleJSONConfig:1.4.3'
    // or put the jar in plugins/ to share configs between plugins:
    // compileOnly 'com.github.IgnitedStudiosFire:SimpleJSONConfig:1.4.3'
}

SimpleJSONConfig

SimpleJSONConfig is a free Java library for Bukkit, Spigot and Paper plugins that saves a plain class as a JSON or YAML config file and keeps objects in flat-file data stores, with comments in the file, Bukkit types like ItemStack and Location, and config files that pick up new fields on their own.

Library · version 1.4.3 · Bukkit, Spigot, Paper · No licence file; listed as open source on BuiltByBit

SimpleJSONConfig at a glance

From its README, plugin descriptor, build file and licence.

Price
Free
Version
1.4.3
Minecraft
Built against Paper 1.21.8; the BuiltByBit listing names 1.12 to 1.21
Licence
No licence file; listed as open source on BuiltByBit
Kind
Library, also loads as a plugin to share configs between plugins
Server
Bukkit, Spigot or Paper
Java
21
Dependencies
None; reflections, Jackson and commons-collections4 are shaded
Formats
JSON (default) or YAML
Last commit
2025-09-17

What SimpleJSONConfig does

  1. 01A class annotated @Configuration and extending Config becomes a config file
  2. 02Data stores: a class annotated @Stored and implementing Identifiable is saved to flat files through a Service
  3. 03@Comment writes a comment into the config file
  4. 04@Autowired fills a static field with the loaded config
  5. 05Serialises ItemStack, Location, World, Block and more, plus interfaces and superclasses
  6. 06SharedGsonBuilder shares type adapters between plugins
  7. 07An LRU cache in front of the data stores
  8. 08Config files gain new fields and lose removed ones when the class changes
  9. 09Reload one config or all of them
  • Register it in onEnable with SimpleJSONConfig.INSTANCE.register(this), or register(this, StoreType.YAML) for YAML. The default folder is YourPlugin/configuration/.
  • Final fields are not supported yet, and a transient field is left out of the file.