'Do something as this player. This method is never called normally,
but only when the player object itself is supposed to execute the
command. It takes player nicks into account, but not nicks of
eventual puppets.
Args:
raw_string (str): Raw command input coming from the command line.
session (Session, optional): The session to be responsible
for the command-send
Kwargs:
kwargs (any): Other keyword arguments will be added to the
found command object instance as variables before it
executes. This is unused by default Evennia but may be
used to set flags and change operating paramaters for
commands at run-time.'

def execute_cmd(self, raw_string, session=None, **kwargs):

    raw_string = to_unicode(raw_string)
    raw_string = self.nicks.nickreplace(raw_string, categories=('inputline', 'channel'), include_player=False)
    if ((not session) and (_MULTISESSION_MODE in (0, 1))):
        sessions = self.sessions.get()
        session = (sessions[0] if sessions else None)
    return cmdhandler.cmdhandler(self, raw_string, callertype='player', session=session, **kwargs)
