mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
Added popup notices!
This commit is contained in:
@@ -2415,6 +2415,13 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
$pk->parameters = $parameters;
|
||||
$this->dataPacket($pk);
|
||||
}
|
||||
|
||||
public function sendPopup($message){
|
||||
$pk = new TextPacket();
|
||||
$pk->type = TextPacket::TYPE_POPUP;
|
||||
$pk->message = $message;
|
||||
$this->dataPacket($pk);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $message Message to be broadcasted
|
||||
|
Reference in New Issue
Block a user