mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 10:19:39 +00:00
Player: be less horrible and leave a deprecated proxy for dataPacket()
This commit is contained in:
parent
c1843ac2d4
commit
fe1df70923
@ -2689,6 +2689,18 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
return $this->networkSession->sendDataPacket($packet, $immediate);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated This is a proxy for sendDataPacket() and will be removed in the next major release.
|
||||
* @see Player::sendDataPacket()
|
||||
*
|
||||
* @param DataPacket $packet
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function dataPacket(DataPacket $packet) : bool{
|
||||
return $this->sendDataPacket($packet, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transfers a player to another server.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user