set() public method

public set ( $settings )
Esempio n. 1
0
 private function _setRoundWinner()
 {
     $_stats = Server::get('stats');
     $_awards = Server::get('awards');
     $player = Server::getPlayer(Server::get('lastKiller'));
     $_stats[$player->id]['round']++;
     //Gestion des awards
     if ($_stats[$player->id]['round'] > $_awards['round'][1]) {
         $_awards['round'][0] = $player->id;
         $_awards['round'][1] = $_stats[$player->id]['round'];
     }
     Server::set('stats', $_stats);
     Server::set('awards', $_awards);
 }
Esempio n. 2
0
 public function SrvEventInitGame($serverinfo)
 {
     if ($this->config['ClearOnInit']) {
         Server::set('warns', array());
     }
     Server::set('forgive', array());
 }