Player: remove sendWhisper()

this can be done with a standard translated message, and with more customizability.
This commit is contained in:
Dylan K. Taylor 2019-03-31 19:25:09 +01:00
parent f0b85936cf
commit 6214a9398d

View File

@ -2621,18 +2621,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
$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.
*