code PHP: public function onQuery(QueryRegenerateEvent $e){ $facquery = Query::queryServer("142.44.217.897", 19132); $hubquery = Query::queryServer("142.4.200.939", 19132); $e->setPlayerCount($facquery["online"] + $hubquery["online"]); } No error
I don't know what plugin and what code you are using to query but if you don't have any errors you can var_dump() $facquery["online"] and $hubquery["online"] to see what it gives you