Compare commits

...

3 Commits

Author SHA1 Message Date
ab10f27cb4 Merge pull request 'Fixed typo with game_cfg/game_config' (#42) from EmmyHeart/artemis:develop into develop
Reviewed-on: #42
2023-10-09 12:38:46 +00:00
0a12e93593 news_msg config option doesn't actually return anything. Fixed! 2023-10-09 06:47:55 +00:00
bad106ceba Fixed typo with game_cfg/game_config
This resulted in an exception on Plost and earlier, leading to games not actually working.
2023-10-09 06:35:14 +00:00
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=""
)