Esempio n. 1
0
 private function cacheLastSeenData()
 {
     if ($this->lastSeenData !== null) {
         return;
     }
     $lua = new \Lua();
     $lua->eval("function getData()\n" . file_get_contents($this->worldpath . '/last-seen') . "\nend");
     $this->lastSeenData = $lua->call('getData');
 }