Minigame map/arena library to hold & store data.
minecraft minecraft-lib minecraft-library
3

Configure Feed

Select the types of activity you want to include in your feed.

Ignore saving data file if data is empty

Lukiiy (Jun 27, 2026, 1:37 AM -0300) 814854aa 20a3a87b

+4
+2
src/main/kotlin/me/lukiiy/mapling/WorldData.kt
··· 117 117 return WorldData().also { read(table, it) } 118 118 } 119 119 } 120 + 121 + fun isEmpty(): Boolean = values().isEmpty() && sections().isEmpty() 120 122 }
+2
src/main/kotlin/me/lukiiy/mapling/provided/TomlWorldDataStore.kt
··· 10 10 override fun load(file: File): WorldData = WorldData.fromToml(Toml.parseToTomlTable(file.readText())) 11 11 12 12 override fun save(file: File, data: WorldData) { 13 + if (data.isEmpty()) return 14 + 13 15 file.parentFile?.mkdirs() 14 16 file.writeText(Toml.encodeToString(data.toToml())) 15 17 }