File tree Expand file tree Collapse file tree 3 files changed +10
-18
lines changed
src/main/java/dev/loat/config Expand file tree Collapse file tree 3 files changed +10
-18
lines changed Original file line number Diff line number Diff line change 1- package dev .loat .config .parser . annotation ;
1+ package dev .loat .config .annotation ;
22
33import java .lang .annotation .ElementType ;
44import java .lang .annotation .Retention ;
Original file line number Diff line number Diff line change 11package dev .loat .config .files ;
22
3- import dev .loat .config .components .Level ;
4- import dev .loat .config .parser .annotation .Comment ;
3+ import dev .loat .config .annotation .Comment ;
54
65public final class BackupConfigFile {
7- @ Comment ("The Port to use for the API server." )
8- public int port = 8080 ;
6+ @ Comment ("""
7+ Path to the directory where backup files should be saved. This can be both,
8+ an absolute or relative path to the game folder.
99
10- @ Comment ("""
11- Maximum log level to use for transmit. This is the highest level of logging a connected client can receive.
12-
13- Setting this for example to "INFO" will log INFO, WARN and ERROR messages.
14- ERROR > WARN > INFO > DEBUG
15-
16- Possible Values:
17- - "DEBUG"
18- - "INFO"
19- - "WARN"
20- - "ERROR"
10+ If no absolute path is specified, it defaults to the current working directory,
11+ aka. to the directory where the server.jar sits in.
2112 """ )
22- public String logLevel = Level . INFO ;
13+ public String path = "./backups" ;
2314}
Original file line number Diff line number Diff line change 11package dev .loat .config .parser ;
22
3- import dev .loat .config .parser .annotation .Comment ;
43import org .yaml .snakeyaml .DumperOptions ;
54import org .yaml .snakeyaml .LoaderOptions ;
65import org .yaml .snakeyaml .Yaml ;
76import org .yaml .snakeyaml .constructor .Constructor ;
87import org .yaml .snakeyaml .nodes .Tag ;
98import org .yaml .snakeyaml .representer .Representer ;
109
10+ import dev .loat .config .annotation .Comment ;
11+
1112import java .io .InputStream ;
1213import java .lang .reflect .Field ;
1314import java .nio .file .Files ;
You can’t perform that action at this time.
0 commit comments