def get_puppet_or_player(self):
        if self.logged_in:
            return self.puppet if self.puppet else self.player
        return None
Get puppet or player.
dataset/ETHPy150Open evennia/evennia/evennia/server/serversession.py/ServerSession.get_puppet_or_player