mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
Player: remove sendWhisper()
this can be done with a standard translated message, and with more customizability.
This commit is contained in:
parent
f0b85936cf
commit
6214a9398d
@ -2621,18 +2621,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
|
|||||||
$this->sendDataPacket($pk);
|
$this->sendDataPacket($pk);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $sender
|
|
||||||
* @param string $message
|
|
||||||
*/
|
|
||||||
public function sendWhisper(string $sender, string $message){
|
|
||||||
$pk = new TextPacket();
|
|
||||||
$pk->type = TextPacket::TYPE_WHISPER;
|
|
||||||
$pk->sourceName = $sender;
|
|
||||||
$pk->message = $message;
|
|
||||||
$this->sendDataPacket($pk);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sends a Form to the player, or queue to send it if a form is already open.
|
* Sends a Form to the player, or queue to send it if a form is already open.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user