lib = $lib; $this->game = $this->lib->game; $this->db = $this->game->db; } public function run($player) { $q = $this->db->query( "SELECT submitted FROM tech_trade_list WHERE member = $player LIMIT 1" ); if (!dbCount($q)) { return array(true, null, null); } list($when) = dbFetchArray($q); $nextSubmission = $when + $this->game->ticks['battle']->interval; return array($nextSubmission <= time(), $when, $nextSubmission); } } ?>