src/Neuron/GameServer/Player.php
public function endVacationMode ()
    {
        $db = Neuron_DB_Database::getInstance ();

        $this->loadData ();

        $unixtime = $db->toUnixtime ($this->data['startVacation']);

        if ($unixtime > 0 && $unixtime + 60*60*24*7 > time ())
        {
            $this->error = 'too_early';
            return false;
        }

        $this->doEndVacationMode ();

        return true;
    }
public function endVacationMode ()
    {
        $db = Neuron_DB_Database::getInstance ();

        $this->loadData ();

        $unixtime = $db->toUnixtime ($this->data['startVacation']);

        if ($unixtime > 0 && $unixtime + 60*60*24*7 > time ())
        {
            $this->error = 'too_early';
            return false;
        }

        $this->doEndVacationMode ();

        return true;
    }
/*
And vacation mode, if possible...