mirror of
				https://github.com/solero/houdini.git
				synced 2025-10-31 04:32:07 +00:00 
			
		
		
		
	handle_player_transformation handler
				
					
				
			This might need changing later -- Timed transformations handled by the server?
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ben
					Ben