From 06554e8669ecd6a01ff7df7f1886d9d35973986d Mon Sep 17 00:00:00 2001 From: Michael Yoo Date: Thu, 22 Aug 2013 19:18:17 +0930 Subject: [PATCH] Added output initialization to allow monitoring of commands. --- src/API/ConsoleAPI.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/API/ConsoleAPI.php b/src/API/ConsoleAPI.php index 0b7e2e976..505fdf90d 100644 --- a/src/API/ConsoleAPI.php +++ b/src/API/ConsoleAPI.php @@ -248,6 +248,10 @@ class ConsoleAPI{ }else{ $output = ""; } + + if($output == "") + $output = ""; + if($output != "" and ($issuer instanceof Player)){ $issuer->sendChat(trim($output)); }