mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
Added and Fixed chat function in chat API. Tested
This commit is contained in:
@@ -26,8 +26,17 @@ the Free Software Foundation, either version 3 of the License, or
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
class ChatAPI{
|
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);
|
$this->server->chat($a, $b);
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user