Hello I'm having little problem with my code xD And it's when I try add new player in array it replaces old one, so know someone how can help me? This is array for all games: PHP: public $games = array(); And this is how I add the player in array: PHP: public function addPlayer(Player $player, $game){ $this->games[$game] = array(); array_push($this->games[$game], $player); }//$this->addPlayer($player, $game); in other functions So it adds fine the first player but when i try to add the second player it replaces the first And also made a var_dump (var_dump($this->games[$game]) and here is: Spoiler: First var_dump array(1) { [0]=> object(pocketmine\Player)#11053 (0) { } } Spoiler: Second var_dump array(1) { [0]=> object(pocketmine\Player)#17836 (0) { } }