From b10e63b9517372e769f59ed1a57404e1c83ef162 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 28 Jul 2014 13:47:38 +0200 Subject: [PATCH] Removed debug values on Crash dump --- src/pocketmine/CrashDump.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pocketmine/CrashDump.php b/src/pocketmine/CrashDump.php index 494f4bf33..426dd5e3c 100644 --- a/src/pocketmine/CrashDump.php +++ b/src/pocketmine/CrashDump.php @@ -162,12 +162,12 @@ class CrashDump{ $this->addLine(); $this->addLine("THIS CRASH WAS CAUSED BY A PLUGIN"); $this->data["plugin"] = true; + + $reflection = new \ReflectionClass("pocketmine\\plugin\\PluginBase"); + $file = $reflection->getProperty("file"); + $file->setAccessible(true); foreach($this->server->getPluginManager()->getPlugins() as $plugin){ - $reflection = new \ReflectionClass("pocketmine\\plugin\\PluginBase"); - $file = $reflection->getProperty("file"); - $file->setAccessible(true); $filePath = \pocketmine\cleanPath($file->getValue($plugin)); - var_dump($filePath, $error["file"]); if(strpos($error["file"], $filePath) === 0){ $this->data["plugin"] = $plugin->getName(); $this->addLine("BAD PLUGIN: ".$plugin->getDescription()->getFullName());