From 902cee11071a8ad4c22524e46110db474697b5e5 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Wed, 9 Jan 2013 14:44:25 +0100 Subject: [PATCH] Debug event --- src/classes/PocketMinecraftServer.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/classes/PocketMinecraftServer.class.php b/src/classes/PocketMinecraftServer.class.php index fabc03b94..a35d897d2 100644 --- a/src/classes/PocketMinecraftServer.class.php +++ b/src/classes/PocketMinecraftServer.class.php @@ -147,6 +147,7 @@ class PocketMinecraftServer{ $info["actions"] = $this->query("SELECT count(ID) as count FROM actions;", true); $info["actions"] = $info["actions"]["count"]; $info["garbage"] = gc_collect_cycles(); + $this->handle("server.debug", $info); if($console === true){ console("[DEBUG] TPS: ".$info["tps"].", Memory usage: ".$info["memory_usage"]." (Peak ".$info["memory_peak_usage"]."), Entities: ".$info["entities"].", Events: ".$info["events"].", Actions: ".$info["actions"].", Garbage: ".$info["garbage"], true, true, 2); }