removed useless classes, entities are not in database anymore

This commit is contained in:
GameHerobrine 2024-01-09 05:19:36 +03:00
parent af7293d4d7
commit 1bbe5c7582
14 changed files with 43 additions and 77 deletions

View file

@ -729,10 +729,8 @@ class PocketMinecraftServer{
$info["tps"] = $this->getTPS();
$info["memory_usage"] = round((memory_get_usage() / 1024) / 1024, 2) . "MB";
$info["memory_peak_usage"] = round((memory_get_peak_usage() / 1024) / 1024, 2) . "MB";
$info["entities"] = $this->query("SELECT count(EID) as count FROM entities;", true);
$info["entities"] = $info["entities"]["count"];
$info["players"] = $this->query("SELECT count(CID) as count FROM players;", true);
$info["players"] = $info["players"]["count"];
$info["entities"] = count($this->entities);
$info["players"] = count($this->clients);
$info["events"] = count($this->eventsID);
$info["handlers"] = $this->query("SELECT count(ID) as count FROM handlers;", true);
$info["handlers"] = $info["handlers"]["count"];