Exemplo n.º 1
0
async def handle_send_update_player_photo(p, item: Item):
    if item is None or (item.id in p.data.inventory and item.is_photo()):
        await p.set_photo(item)
Exemplo n.º 2
0
async def handle_send_update_player_colour(p, item: Item):
    if item.id in p.data.inventory and item.is_color():
        await p.set_color(item)
Exemplo n.º 3
0
async def handle_send_update_player_flag(p, item: Item):
    if item is None or (item.id in p.inventory and item.is_flag()):
        await p.set_flag(item)