actually indent array types in toml

add a default config file instead of generation for commenting purposes
add a random gradient placeholder and a converter for legacy colorcodes
This commit is contained in:
Taah
2022-05-05 00:49:03 -07:00
parent 4e9984f251
commit f52c8462ae
38 changed files with 245 additions and 211 deletions

View File

@ -14,9 +14,17 @@ import lombok.Getter;
import java.io.File;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.logging.Logger;
/**
* Credits for TOML library go to https://github.com/mwanji/toml4j
* I was unable to add it back to the package without it glitching, so
* I kept it in a separate package.
*
* Modifications: Properly indent arrays in TOML as well as only append
* missing object fields into the file
*/
@Plugin(
name = "Plex",
id = "plex",
@ -62,7 +70,7 @@ public class Plex
{
PlexLog.log("Loaded configuration 'config.toml'");
});
this.config.create(false);
this.config.create(true);
this.config.write(new ServerSettings());
new ListenerHandler();
}