/** * @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 "); } }
/** * @return Player */ public final function getPlayer() { return $this->player->getPlayer(); }