When new player join my server I register him into MySQL Database, but when I try to get something that I registred in same function it return null and throw exception.. But why when It's already saved :/
For example I do PHP: Database::registerPlayer($player->getName()); and then try to get string that I registred (rank for example) PHP: $this->getPlayer($p->getName())['rank']; It throw error, but when I do it later in another function it works and it works for already registred users too