Fixed a problem with legacy spigot in where the API wouldn't load because the usage of old google gson API.
This version also completely enables the API configuration file, which allows you to manage which output is printed to the console and how it is printed. The file uses KarmaAPI file format ( KarmaLang ). An extension for Visual Studio Code can be found by searching "Karma Lang" in extension marketplace.
By default the API will log everything, and debug almost anything. ( only file creations and removals ).
The file should be located at plugins/KarmaAPI/config.kf...
Please note that file format is almost new and no full support is provided for it, things such as veryfing a file is not available for now, be carefull when editing the configuration.
Code (Text):
(
*/Enable console debug
'debug' -> false
*/Enable logging
'logging' -> true
*/Enable debugging for file copy, for example
*/when a project generates a yaml file from an internal
*/file
'file_copy_debug' -> false
*/Enable debugging for file utilities, for example
*/when a file is created with its parent directories
'file_util_debug' -> true
*(
Console default OK prefix
- Please note leaving this value
empty will use the internal default
Placeholders:
- %project% = Project name ( defined in KarmaSource )
- %version% = Project version ( defined in KarmaSource )
- %author% = Project author ( defined in KarmaSource )
- %level% = Current level ( For example: WARNING )
- &x = Color ( For example: &a is lime, &c is red )
)*
'ok_prefix' -> "&b[ &3%project% &b| &2OK &b] >> &9"
*(
Console default INFO prefix
- Please note leaving this value
empty will use the internal default
Placeholders:
- %project% = Project name ( defined in KarmaSource )
- %version% = Project version ( defined in KarmaSource )
- %author% = Project author ( defined in KarmaSource )
- %level% = Current level ( For example: WARNING )
- &x = Color ( For example: &a is lime, &c is red )
)*
'info_prefix' -> "&b[ &3%project% &b| &7INFO &b] >> &9"
*(
Console default WARNING prefix
- Please note leaving this value
empty will use the internal default
Placeholders:
- %project% = Project name ( defined in KarmaSource )
- %version% = Project version ( defined in KarmaSource )
- %author% = Project author ( defined in KarmaSource )
- %level% = Current level ( For example: WARNING )
- &x = Color ( For example: &a is lime, &c is red )
)*
'warning_prefix' -> "&b[ &3%project% &b| &6WARNING &b] >> &9"
*(
Console default GRAVE prefix
- Please note leaving this value
empty will use the internal default
Placeholders:
- %project% = Project name ( defined in KarmaSource )
- %version% = Project version ( defined in KarmaSource )
- %author% = Project author ( defined in KarmaSource )
- %level% = Current level ( For example: WARNING )
- &x = Color ( For example: &a is lime, &c is red )
)*
'grave_prefix' -> "&b[ &3%project% &b| &cGRAVE &b] >> &9"
*(
The debug levels that will be console debugged.
The only available levels are:
- OK
- INFO
- WARNING
- GRAVE
)*
'debug_levels' -> {
'OK'
'INFO'
'WARNING'
'GRAVE'
}
*(
The debug levels that will be logged.
The only available levels are:
- OK
- INFO
- WARNING
- GRAVE
)*
'logging_levels' -> {
'OK'
'INFO'
'WARNING'
'GRAVE'
}
*(
The debug levels that will be console debugged when
copying a file
The only available leves are:
- OK
- INFO
- WARNING
- GRAVE
)*
'file_copy_levels' -> {
'WARNING'
'GRAVE'
}
*(
The debug levels that will be console debugged when
doing something to a file
The only available leves are:
- OK
- INFO
- WARNING
- GRAVE
)*
'file_util_levels' -> {
'OK'
'INFO'
'WARNING'
'GRAVE'
}
)