From 62313d4a84ce9df867e47c76a8beda3dd3c51bab Mon Sep 17 00:00:00 2001 From: PEMapModder Date: Mon, 7 Apr 2014 16:38:37 +0800 Subject: [PATCH] Update Command.php --- src/pocketmine/command/Command.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/command/Command.php b/src/pocketmine/command/Command.php index e04959bcb..d2b0ae821 100644 --- a/src/pocketmine/command/Command.php +++ b/src/pocketmine/command/Command.php @@ -301,4 +301,11 @@ abstract class Command{ } } } -} \ No newline at end of file + + /** + * @return string + */ + public function __toString(){ + return $this->name; + } +}