menu
#3749100 Argument 1 passed to pocketmine\Server::pocketmine\{closure}() must be an instance of pocketmine\Player, instance of MyMounts\entity\flying\EnderDragon given

Submitted by PocketMine-MP 3.11.4

General information

Version: 3.11.4
Git commit: 13f28d84
Plugin involvement: Indirect
Report date: 2020-02-12 07:36:10 +0000 UTC

System Information

PHP version: 7.3.13
Operating system: linux
System banner: Linux www 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64

Error information

Warning: the MysteryCrate plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Message: Argument 1 passed to pocketmine\Server::pocketmine\{closure}() must be an instance of pocketmine\Player, instance of MyMounts\entity\flying\EnderDragon given
File: src/pocketmine/Server
Line: #1966
Error level: TypeError
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
	 *
* @return void
*/
public function batchPackets(array $players, array $packets, bool $forceSync = false, bool $immediate = false){
if(count($packets) === 0){
throw new \InvalidArgumentException("Cannot send empty batch");
}
Timings::$playerNetworkTimer->startTiming();

$targets = array_filter($players, function(Player $player) : bool{ return $player->isConnected(); });

if(count($targets) > 0){
$pk = new BatchPacket();

foreach($packets as $p){
$pk->addPacket($p);
}

if(Network::$BATCH_THRESHOLD >= 0 and strlen($pk->payload) >= Network::$BATCH_THRESHOLD){
$pk->setCompressionLevel($this->networkCompressionLevel);
#0 (): pocketmine\Server->pocketmine\{closure}(object MyMounts\entity\flying\EnderDragon)
#1 src/pocketmine/Server(1966): array_filter(array[1], object Closure)
#2 src/pocketmine/level/Level(549): pocketmine\Server->batchPackets(array[1], array[1], boolean )
#3 plugins/MysteryCrate.phar/src/JackMD/MysteryCrate/EventListener(239): pocketmine\level\Level->addParticle(object pocketmine\level\particle\FloatingTextParticle, array[1])
#4 src/pocketmine/plugin/MethodEventExecutor(42): JackMD\MysteryCrate\EventListener->onLevelChange(object pocketmine\event\entity\EntityLevelChangeEvent)
#5 src/pocketmine/plugin/RegisteredListener(100): pocketmine\plugin\MethodEventExecutor->execute(object JackMD\MysteryCrate\EventListener, object pocketmine\event\entity\EntityLevelChangeEvent)
#6 src/pocketmine/event/Event(95): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityLevelChangeEvent)
#7 src/pocketmine/entity/Entity(2003): pocketmine\event\Event->call()
#8 src/pocketmine/entity/Entity(1864): pocketmine\entity\Entity->switchLevel(object pocketmine\level\Level)
#9 src/pocketmine/entity/Entity(1889): pocketmine\entity\Entity->setPosition(object pocketmine\level\Position)
#10 src/pocketmine/entity/Entity(1984): pocketmine\entity\Entity->setPositionAndRotation(object pocketmine\level\Position, double 242.39117431641, double 38.695343017578)
#11 plugins/MyMounts v1.2.0_繁体.phar/src/MyMounts/entity/Mount(88): pocketmine\entity\Entity->teleport(object pocketmine\level\Position)
#12 src/pocketmine/level/Level(904): MyMounts\entity\Mount->onUpdate(integer 118239)
#13 src/pocketmine/level/Level(837): pocketmine\level\Level->actuallyDoTick(integer 118239)
#14 src/pocketmine/Server(2536): pocketmine\level\Level->doTick(integer 118239)
#15 src/pocketmine/Server(2677): pocketmine\Server->checkTickUpdates(integer 118239, double 1581492969.9914)
#16 src/pocketmine/Server(2403): pocketmine\Server->tick()
#17 src/pocketmine/Server(2250): pocketmine\Server->tickProcessor()
#18 src/pocketmine/Server(1811): pocketmine\Server->start()
#19 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[11] /home/svhk/, string[19] /home/svhk/plugins/)
#20 src/pocketmine/PocketMine(297): pocketmine\server()
#21 (1): require(string[66] phar:///home/svhk/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show