Merge branch 'DoorDev' into DoorDevUnstable
# Conflicts: # Main.py # RELEASENOTES.md
This commit is contained in:
@@ -46,6 +46,9 @@ class Context:
|
|||||||
self.lookup_name_to_id = {}
|
self.lookup_name_to_id = {}
|
||||||
self.lookup_id_to_name = {}
|
self.lookup_id_to_name = {}
|
||||||
|
|
||||||
|
self.disable_client_forfeit = False
|
||||||
|
|
||||||
|
|
||||||
async def send_msgs(websocket, msgs):
|
async def send_msgs(websocket, msgs):
|
||||||
if not websocket or not websocket.open or websocket.closed:
|
if not websocket or not websocket.open or websocket.closed:
|
||||||
return
|
return
|
||||||
@@ -281,7 +284,10 @@ async def process_client_cmd(ctx : Context, client : Client, cmd, args):
|
|||||||
if args.startswith('!players'):
|
if args.startswith('!players'):
|
||||||
notify_all(ctx, get_connected_players_string(ctx))
|
notify_all(ctx, get_connected_players_string(ctx))
|
||||||
if args.startswith('!forfeit'):
|
if args.startswith('!forfeit'):
|
||||||
forfeit_player(ctx, client.team, client.slot)
|
if ctx.disable_client_forfeit:
|
||||||
|
notify_client(client, 'Client-initiated forfeits are disabled. Please ask the host of this game to forfeit on your behalf.')
|
||||||
|
else:
|
||||||
|
forfeit_player(ctx, client.team, client.slot)
|
||||||
if args.startswith('!countdown'):
|
if args.startswith('!countdown'):
|
||||||
try:
|
try:
|
||||||
timer = int(args.split()[1])
|
timer = int(args.split()[1])
|
||||||
|
|||||||
@@ -108,6 +108,9 @@ These are now independent of retro mode and have three options: None, Random, an
|
|||||||
* Bonk Fairy (Dark)
|
* Bonk Fairy (Dark)
|
||||||
|
|
||||||
# Bug Fixes and Notes
|
# Bug Fixes and Notes
|
||||||
|
|
||||||
|
* Unreleased Version
|
||||||
|
* MultiServer can not disable forfeits if desired
|
||||||
* 1.2.0.12u
|
* 1.2.0.12u
|
||||||
* Fix for mirror portal in inverted
|
* Fix for mirror portal in inverted
|
||||||
* Yet another fix for blocked door in Standard ER
|
* Yet another fix for blocked door in Standard ER
|
||||||
|
|||||||
Reference in New Issue
Block a user