mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Merge pull request #51 from sekjun9878/master
Added chat() function in ChatAPI. Also PlayerAPI Documentation
This commit is contained in:
@ -26,6 +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 init(){
|
||||
|
||||
}
|
||||
|
||||
public function send($a, $b){//a == name of owner. b == message
|
||||
$this->server->chat($a, $b);
|
||||
return true;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user