mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Merge commit 'a34f3261c'
# Conflicts: # resources/vanilla # src/event/entity/EntityExplodeEvent.php # src/pocketmine/event/block/SignChangeEvent.php # src/utils/Utils.php
This commit is contained in:
@ -29,6 +29,8 @@ use pocketmine\event\CancellableTrait;
|
||||
use pocketmine\permission\PermissionManager;
|
||||
use pocketmine\player\Player;
|
||||
use pocketmine\Server;
|
||||
use pocketmine\utils\Utils;
|
||||
use function array_values;
|
||||
use function spl_object_id;
|
||||
|
||||
/**
|
||||
@ -100,6 +102,7 @@ class PlayerChatEvent extends PlayerEvent implements Cancellable{
|
||||
* @param CommandSender[] $recipients
|
||||
*/
|
||||
public function setRecipients(array $recipients) : void{
|
||||
Utils::validateArrayValueType($recipients, function(CommandSender $_) : void{});
|
||||
$this->recipients = $recipients;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user