Code: //Main.php <?php namespace toddyn; use pocketmine\command\CommandSender; use pocketmine\command\Command; use pocketmine\plugin\PluginBase; use pocketmine\event\Listener; use pocketmine\item\Item; use pocketmine\utils\Config; use pocketmine\plugin\PluginManager; class Main extends PluginBase implements Listener { public $cfg; public function onEnable(){ $this->getlogger()->info("Plugin on"); $this->getServer()->getPluginManager()->registerEvents($this, $this); } public function onDisable(){$this->getlogger()->info("plugin off"); } public function onCommand(CommandSender $sender, Command $command, $label, array $args){ switch($command->getName()){ case "ku": if (!isset($args[0])){ $sender->sendMessage("§7Error, test /ku msg."); return; } if(strtolower($args[0]) == "msg"){ $sender->sendMessage($this->getConfig()->get("messages")["msg"]); return true; } } } } }