mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Added and Fixed chat function in chat API. Tested
This commit is contained in:
parent
5753db627c
commit
d86bf37def
@ -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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user