mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
Added health boost potion effect, added Player->sendTip(), MCPE 0.11.0 build 4
This commit is contained in:
@@ -2531,6 +2531,13 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
$this->dataPacket($pk->setChannel(Network::CHANNEL_TEXT));
|
||||
}
|
||||
|
||||
public function sendTip($message){
|
||||
$pk = new TextPacket();
|
||||
$pk->type = TextPacket::TYPE_TIP;
|
||||
$pk->message = $message;
|
||||
$this->dataPacket($pk->setChannel(Network::CHANNEL_TEXT));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $message Message to be broadcasted
|
||||
* @param string $reason Reason showed in console
|
||||
|
Reference in New Issue
Block a user