mirror of
https://github.com/solero/houdini.git
synced 2024-12-23 14:03:38 +00:00
Add player ID to redis set in join server handler
This commit is contained in:
parent
864268afff
commit
8b33390acf
@ -41,6 +41,8 @@ async def handle_join_server(p, penguin_id: int, login_key: str):
|
||||
|
||||
p.joined_world = True
|
||||
|
||||
server_key = '{}.players'.format(p.server.server_config['Id'])
|
||||
await p.server.redis.sadd(server_key, p.data.id)
|
||||
await p.server.redis.hincrby('population', p.server.server_config['Id'], 1)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user