I am trying to put my config array into an array in my plugin but it wont accept it i tried to print it to console but it said "Array to string conversion" and help? Here i my code: PHP: $cfg = $this->pconfig->getAll(); foreach($this->pconfig->get("Particles") as $p){ $level = $cfg["Particles"][$p]["level"]; $this->particles[$p] = array("level" => $level,"id" => $cfg["Particles"][$p]["id"],"text" => $cfg["Particles"][$p]["text"]); $this->getLogger()->info("Info: ".var_dump($this->particles)); } Config: Code: --- Particles: Ye: text: test level: world id: 1 ...
'var_dump' is void function. PHP: foreach($this->particles as $particle){ $this->getLogger()->info($particle['level']); $this->getLogger()->info($particle['id']); # And so on...}
Well, depends on the situation. For example when sending the player a message with all players in an array.