mirror of
https://github.com/solero/houdini.git
synced 2024-11-22 05:27:23 +00:00
handle_player_transformation
handler
This might need changing later -- Timed transformations handled by the server?
This commit is contained in:
parent
b930f49d30
commit
191e9caf90
@ -0,0 +1,10 @@
|
|||||||
|
from houdini import handlers
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
from houdini.constants import ClientType
|
||||||
|
|
||||||
|
|
||||||
|
@handlers.handler(XTPacket('pt', 'spts'), client=ClientType.Vanilla)
|
||||||
|
@handlers.cooldown(1)
|
||||||
|
async def handle_player_transformation(p, transform_id: int):
|
||||||
|
p.avatar = transform_id
|
||||||
|
await p.room.send_xt('spts', p.id, transform_id)
|
Loading…
Reference in New Issue
Block a user