Hi. I have a config were I save some players under "players". But if I try to count the players it shows nothing when I broadcast the count. PHP: $players = count($conf->get("players"));
It broadcasts empty message so my server Config: Code: players: - Steve And to broadcast: PHP: //Task start....$conf = new Config($this->owner->getDataFolder() . "config.yml", Config::YAML); $this->owner->getServer()->broadcastMessage(count($conf->get("players")));
By "shows nothing", do you mean it prints an empty line, or does it not print anything at all? Have you verified that you registered your task correctly? Is your config file in the correct location? Please provide more details. The more you give, the more we can help you.