getPlayer() public method

public getPlayer ( )
示例#1
0
 /**
  * @param Player $player
  */
 public function AddPlayer(Player $player)
 {
     if ($this->getPlayer($player->getPlayer()) == null) {
         $this->db->query("INSERT INTO `player_stats`\n\t\t\t(`name`, `breaks`, `places`, `deaths`, `kicked`, `drops`, `joins`, `quits`, `kills`,`chats`)\n\t\t\tVALUES\n\t\t\t('" . $this->db->escape_string(strtolower($player->getPlayer()->getDisplayName())) . "', '0','0','0','0','0','0','0','0','0')\n\t\t    ");
     }
 }
 /**
  * @param Player $player
  */
 public function AddPlayer(Player $player)
 {
     if ($this->getPlayer($player->getPlayer()) == null) {
         $this->db->query("INSERT INTO player_stats\n\t\t\t(name, breaks, places, deaths, kicked, drops, joins, quits, kills,chats)\n\t\t\tVALUES\n\t\t\t('" . $this->db->escape_string(strtolower($player->getPlayer()->getDisplayName())) . "', '0','0','0','0','0','0','0','0','0')\n\t\t    ");
     }
 }
示例#3
0
 /**
  * @return Player
  */
 public final function getPlayer()
 {
     return $this->player->getPlayer();
 }