add more room info
This commit is contained in:
parent
10bced3d68
commit
0cb80eadf1
|
@ -676,6 +676,10 @@ async def process_server_cmd(ctx : Context, cmd, args):
|
|||
logging.info("Server protocol tags: " + ", ".join(args["tags"]))
|
||||
if args['password']:
|
||||
logging.info('Password required')
|
||||
if "forfeit_mode" in args: # could also be version > 2.2.1, but going with implicit content here
|
||||
logging.info("Forfeit setting: "+args["forfeit_mode"])
|
||||
logging.info("Remaining setting: "+args["remaining_mode"])
|
||||
logging.info(f"A !hint costs {args['hint_cost']} points and you get {args['location_check_points']} for each location checked.")
|
||||
if len(args['players']) < 1:
|
||||
logging.info('No player connected')
|
||||
else:
|
||||
|
|
|
@ -250,7 +250,11 @@ async def on_client_connected(ctx: Context, client: Client):
|
|||
# tags are for additional features in the communication.
|
||||
# Name them by feature or fork, as you feel is appropriate.
|
||||
'tags': ['Berserker'],
|
||||
'version': Utils._version_tuple
|
||||
'version': Utils._version_tuple,
|
||||
'forfeit_mode': ctx.forfeit_mode,
|
||||
'remaining_mode': ctx.remaining_mode,
|
||||
'hint_cost' : ctx.hint_cost,
|
||||
'location_check_points': ctx.location_check_points
|
||||
}]])
|
||||
|
||||
async def on_client_disconnected(ctx: Context, client: Client):
|
||||
|
|
Loading…
Reference in New Issue