Hi, I searched for that in the whole forum, the whole github, and I can't find a way to do that, I am editing the grabbag plugin by @aliuly for setting my main server online players with the count of all online players in my secondary servers, @PEMapModder suggested this for change the default query on a old thread: PHP: public function queryEverything(QueryRegenerateEvent $e){$e->setPlayerCount($all["Players"]);$e->setMaxPlayerCount($all["Max-Players"]);} but after that how i can call this function since QueryRegenerateEvent is not auto callable event such onEnable, onPlayerJoin, etc? also, this code seems to work or i losing time? sorry for my english ^^
Not using the correct function I think : Code: $this->getServer()->getQueryInformation()->setPlayerCount($numberOfPlayer); $this->getServer()->getQueryInformation()->setMaxPlayerCount($numberOfMaxPlayers);