mirror of
https://github.com/solero/houdini.git
synced 2025-05-30 21:51:34 +00:00
Add support for player "grounding"
This commit is contained in:
parent
d176b92e4a
commit
d6b7b4fe3f
@ -73,6 +73,7 @@ class Penguin(db.Model):
|
||||
timer_active = db.Column(db.Boolean, nullable=False, server_default=db.text("false"))
|
||||
timer_start = db.Column(db.Time, nullable=False, server_default=db.text("'00:00:00'::time without time zone"))
|
||||
timer_end = db.Column(db.Time, nullable=False, server_default=db.text("'23:59:59'::time without time zone"))
|
||||
grounded = db.Column(db.Boolean, nullable=False, server_default=db.text("false"))
|
||||
approval_en = db.Column(db.Boolean, nullable=False, server_default=db.text("false"))
|
||||
approval_pt = db.Column(db.Boolean, nullable=False, server_default=db.text("false"))
|
||||
approval_fr = db.Column(db.Boolean, nullable=False, server_default=db.text("false"))
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user