Hello, I'm having little problem with a config, well problem is that when i try to pick up any value from config it doesn't show anthing neither give any error on console.. How I set the config: PHP: $config = new Config($this->getDataFolder().$player->getName().".yml", Config::YAML);$config->set("Datos", array($player->getName(), $player->getClientId(), $player->getAddress(), $reason));$config->save(); Function where show the value: PHP: public function onBanned(PlayerPreLoginEvent $event){ $player = $event->getPlayer(); if($player->isBanned() and file_exists($this->getDataFolder().$player->getName().".yml")){ $config = new Config($this->getDataFolder().$player->getName().".yml", Config::YAML); $datos = $config->get("Datos"); $event->setKickMessage("§cSorry Mr §a".$player->getName()."§c You are banned from this server,\n§eName: §7".$datos[0]."\n§eReason: §7".$datos[3]); $event->setCancelled(true); }else{ } } Config: Code: --- Datos: - BEcraft - //client id - //ip - 'You have been banned ' ... But it shows message like this
Ummm I created new folder and transferred all files to another one and gave a new name and mysteriously it's working fine right now... By the way here its var_dump: Code: array(4) { [0]=> string(7) "BEcraft" [1]=> float(7.17355118888513716E+18) [2]=> string(9) "0.0.0.0" [3]=> string(21) "you have been banned " }