From d86bf37defd44fb645f7519308b5a31f03a6bd77 Mon Sep 17 00:00:00 2001 From: Michael Yoo Date: Fri, 11 Jan 2013 11:25:42 +0900 Subject: [PATCH] Added and Fixed chat function in chat API. Tested --- src/API/ChatAPI.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/API/ChatAPI.php b/src/API/ChatAPI.php index d0fc9f656..079f6a747 100644 --- a/src/API/ChatAPI.php +++ b/src/API/ChatAPI.php @@ -26,8 +26,17 @@ the Free Software Foundation, either version 3 of the License, or */ class ChatAPI{ + private $server; + function __construct(PocketMinecraftServer $server){ + $this->server = $server; + } - public function chat($a, $b){ + public function init(){ + + } + + public function chat($a, $b){//a == name of owner. b == message $this->server->chat($a, $b); return true; + } } \ No newline at end of file