'This performs the actual command.'

def func(self):

    if is_in_combat(self.caller):
        self.caller.msg("You    can't    rest    while    you're    in    combat.")
        return
    self.caller.db.hp = self.caller.db.max_hp
    self.caller.location.msg_contents(('%s    rests    to    recover    HP.' % self.caller))
    "\n                                You'll    probably    want    to    replace    this    with    your    own    system    for    recovering    HP.\n                                "
