menu
#7034660 fernanACM\LaunchACM\utils\PluginUtils::PlaySound(): Argument #1 ($player) must be of type pocketmine\player\Player, BlockHorizons\BlockPets\pets\creatures\ChickenPet given, called in phar:///home/container/plugins/LaunchACM (1).phar/src/fernanACM/LaunchACM/LP.php on line 56

Submitted by PocketMine-MP 4.5.1

General information

Version: 4.5.1
Git commit: d641812c
Plugin involvement: Direct
Report date: 2022-06-23 12:59:57 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 58 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux 5fb1e1d0-d26a-4bf0-9aad-74bdcd633992 5.13.0-48-generic #54-Ubuntu SMP Wed Jun 1 20:38:48 UTC 2022 x86_64

Error information

Warning: the LaunchACM plugin was directly involved in this crash. Please contact the plugin author.
Message: fernanACM\LaunchACM\utils\PluginUtils::PlaySound(): Argument #1 ($player) must be of type pocketmine\player\Player, BlockHorizons\BlockPets\pets\creatures\ChickenPet given, called in phar:///home/container/plugins/LaunchACM (1).phar/src/fernanACM/LaunchACM/LP.php on line 56
File: plugins/LaunchACM (1).phar/src/fernanACM/LaunchACM/utils/PluginUtils
Line: #16
Error level: TypeError
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use pocketmine\player\Player;
use pocketmine\Server;

use pocketmine\world\Position;
use ReflectionClass;
use pocketmine\network\mcpe\protocol\PlaySoundPacket;

class PluginUtils {

public static function PlaySound(Player $player, string $sound, $volume = 1, $pitch = 1) {
$packet = new PlaySoundPacket();
$packet->x = $player->getPosition()->getX();
$packet->y = $player->getPosition()->getY();
$packet->z = $player->getPosition()->getZ();
$packet->soundName = $sound;
$packet->volume = 1;
$packet->pitch = 1;
$player->getNetworkSession()->sendDataPacket($packet);
}
}
#0 plugins/LaunchACM (1).phar/src/fernanACM/LaunchACM/LP(56): fernanACM\LaunchACM\utils\PluginUtils::PlaySound(object BlockHorizons\BlockPets\pets\creatures\ChickenPet#108135, string[18] mob.irongolem.walk, int 5, int 8)
#1 pmsrc/src/entity/Entity(1283): pocketmine\block\[email protected]�phar:///home/container/plugins/LaunchACM (1).phar/src/fernanACM/LaunchACM/LP.php:47$1d0->addVelocityToEntity(object BlockHorizons\BlockPets\pets\creatures\ChickenPet#108135)
#2 pmsrc/src/entity/Entity(1205): pocketmine\entity\Entity->checkBlockIntersections()
#3 plugins/BlockPets_dev-291 (1).phar/src/BlockHorizons/BlockPets/pets/IrasciblePet(135): pocketmine\entity\Entity->move(float -0.1799241289094, float 0, float -0.0052256900209302)
#4 plugins/BlockPets_dev-291 (1).phar/src/BlockHorizons/BlockPets/pets/WalkingPet(47): BlockHorizons\BlockPets\pets\IrasciblePet->follow(object pocketmine\player\Player#37379, float -3.5690131545551, float 0, float -0.1036578947992)
#5 plugins/BlockPets_dev-291 (1).phar/src/BlockHorizons/BlockPets/pets/BasePet(639): BlockHorizons\BlockPets\pets\WalkingPet->doPetUpdates(int 2126)
#6 pmsrc/src/world/World(842): BlockHorizons\BlockPets\pets\BasePet->onUpdate(int 2126)
#7 pmsrc/src/world/World(768): pocketmine\world\World->actuallyDoTick(int 2126)
#8 pmsrc/src/world/WorldManager(348): pocketmine\world\World->doTick(int 2126)
#9 pmsrc/src/Server(1818): pocketmine\world\WorldManager->tick(int 2126)
#10 pmsrc/src/Server(1700): pocketmine\Server->tick()
#11 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#12 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#13 pmsrc/src/PocketMine(327): pocketmine\server()
#14 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show