How can I make config if it is thing true doing something and if it is false doing something? like: keepinventory: true keepinventory: false
First, learn about Configs. I suggest Jack Noordhuis' tutorial. You already know about if/else statements, right? If you don't, try this resource. After that, you should be more than capable of doing this.
I know how to make config but I want to know how to do true and false config, can you explain more to me?
any of these can be used and YAML will output as a bool: Code: y|Y|yes|Yes|YES|n|N|no|No|NO |true|True|TRUE|false|False|FALSE |on|On|ON|off|Off|OFF
The best way to find out how something works is by experimenting yourself, then you will learn and understand how it functions as well as the limitations. Spoiler: Example PHP: $config = new pocketmine\utils\Config("https://gist.githubusercontent.com/JackNoordhuis/22d188eb1be819ab24d834bb4d4d5ef3/raw/e048e20254cdc828b62d06b0830f353fb81341dc/random-values.yml", pocketmine\utils\Config::YAML);if($config->get("bool-value")) { # result will be true echo "true!\n";} else { echo "false!\n";}if($config->get("bool-value-2")) { # result will be false echo "true!\n";} else { echo "false!\n";}/* @var $data array **/$data = $config->getAll();if($data["bool-value-3"] and !$data["bool-value-4"]) { # result will be true echo "true!\n";} else { echo "false!\n";}if($config->getNested("nested-values.nested-value")) { # result will be false echo "true!\n";} else { echo "false!\n";}if($data["nested-values"]["nested-value-2"]) { # result will be true echo "true!\n";} else { echo "false!\n";} Spoiler: Output Code: true! false! true! false! true!