configurable festa options

This commit is contained in:
=
2024-06-30 00:23:10 +02:00
parent 4a18f6b3bc
commit e0e63a9a13
5 changed files with 47 additions and 7 deletions

View File

@ -19,6 +19,29 @@ class DivaServerConfig:
)
)
@property
def festaEnable(self) -> bool:
return CoreConfig.get_config_field(
self.__config, "diva", "server", "festaEnable", default=True
)
@property
def festaAddVP(self) -> str:
return CoreConfig.get_config_field(
self.__config, "diva", "server", "festaAddVP", default="20,5"
)
@property
def festaMultiplyVP(self) -> str:
return CoreConfig.get_config_field(
self.__config, "diva", "server", "festaMultiplyVP", default="1,2"
)
@property
def festaEndTime(self) -> str:
return CoreConfig.get_config_field(
self.__config, "diva", "server", "festaEndTime", default="2029-01-01 00:00:00.0"
)
class DivaModsConfig:
def __init__(self, parent_config: "DivaConfig") -> None: