mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-12 12:55:21 +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{
|
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;
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user