PHP: public function onCommand(CommandSender $sender, Command $cmd, $label, array $args){ switch(strtolower($cmd->getName())) { case 'command': $arg = strtolower(array_shift($args)); $cfg->set('arg', $arg);//where $cfg is an instance of Config $cfg->save(); break; case 'command2': $sender->sendMessage($cfg->get('arg')); break; }} I don't understand what you mean, but here's something.
search it: PHP: if(array_search("args", $config->getAll()["Example"])){// then to get it$config->getAll()["Example"][array_search("args", $config->getAll()["Example"])];} remove it: PHP: $array = $config->getNested("Example");unset($array["args"]);$config->setNested("Example", $array);$config->save(); add it: PHP: $array = $config->getNested("Example");array_push($array, "args");$config->setNested("Example", $array);$config->save();