Merge pull request 'Fixed typo with game_cfg/game_config' (#42) from EmmyHeart/artemis:develop into develop

Reviewed-on: Hay1tsme/artemis#42
This commit is contained in:
Midorica 2023-10-09 12:38:46 +00:00
commit ab10f27cb4
2 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ class ChuniBase:
"gameMessageList": [{
"id": 1,
"type": 1,
"message": f"Welcome to {self.core_cfg.server.name} network!" if not self.game_config.server.news_msg else self.game_config.server.news_msg,
"message": f"Welcome to {self.core_cfg.server.name} network!" if not self.game_cfg.server.news_msg else self.game_cfg.server.news_msg,
"startDate": "2017-12-05 07:00:00.0",
"endDate": "2099-12-31 00:00:00.0"
}]

View File

@ -22,7 +22,7 @@ class ChuniServerConfig:
@property
def news_msg(self) -> str:
CoreConfig.get_config_field(
return CoreConfig.get_config_field(
self.__config, "chuni", "server", "news_msg", default=""
)