Added and Fixed chat function in chat API. Tested

This commit is contained in:
Michael Yoo 2013-01-11 11:25:42 +09:00
parent 5753db627c
commit d86bf37def

View File

@ -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;
}
}