Add support for player "grounding"

This commit is contained in:
Ben
2019-09-09 22:15:30 +01:00
parent d176b92e4a
commit d6b7b4fe3f
2 changed files with 3 additions and 0 deletions

View File

@@ -68,6 +68,8 @@ async def handle_login(p, credentials: Credentials):
if data.permaban:
return await p.send_error_and_disconnect(603)
if data.grounded:
return await p.send_error_and_disconnect(913)
active_ban = await Ban.query.where(Ban.penguin_id == data.id and Ban.expires >= datetime.now()).gino.first()
if active_ban is not None: