Better use this: PHP: // let's imagine there's a key in the config called join_message// and we search for JOIN_MESSAGE// if we set the second parameter to false, the exists function would return false thus the code inside the if statement won't runif(!$config->exists("JOIN_MESSAGE")){ $this->getLogger()->info("key exists"); // it won't print "key exists" on the console}// let's try setting the second parameter to trueif($config->exists("JOIN_MESSAGE")){ $this->getLogger()->info("key exists"); // it will print "key exists" on the console}
How can I make it so instead if manually going to the .php file I can edit it through the config.yml?
Anyone could explain how to register an Array in the Config for people that doesn't understand how to do it