menu
#3232169 Argument 1 passed to pocketmine\level\Level::broadcastLevelSoundEvent() must be an instance of pocketmine\math\Vector3, instance of bw\arena\ArenaScheduler given

Submitted by PocketMine-MP 3.9.7

General information

Version: 3.9.7
Git commit: 0c91d568
Plugin involvement: Indirect
Report date: 2019-11-30 11:21:23 +0000 UTC

System Information

PHP version: 7.3.12
Operating system: win
System banner: Windows NT duara 6.3 build 9600 (Windows Server 2012 R2 Datacenter Edition) AMD64

Error information

Warning: the xBowWars 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\level\Level::broadcastLevelSoundEvent() must be an instance of pocketmine\math\Vector3, instance of bw\arena\ArenaScheduler given
File: src/pocketmine/level/Level
Line: #562
Error level: TypeError
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
	 * Broadcasts a LevelSoundEvent to players in the area.
*
* @param Vector3 $pos
* @param int $soundId
* @param int $extraData
* @param int $entityTypeId
* @param bool $isBabyMob
* @param bool $disableRelativeVolume If true, all players receiving this sound-event will hear the sound at full volume regardless of distance
*/
public function broadcastLevelSoundEvent(Vector3 $pos, int $soundId, int $extraData = -1, int $entityTypeId = -1, bool $isBabyMob = false, bool $disableRelativeVolume = false){
$pk = new LevelSoundEventPacket();
$pk->sound = $soundId;
$pk->extraData = $extraData;
$pk->entityType = AddActorPacket::LEGACY_ID_MAP_BC[$entityTypeId] ?? ":";
$pk->isBabyMob = $isBabyMob;
$pk->disableRelativeVolume = $disableRelativeVolume;
$pk->position = $pos->asVector3();
$this->broadcastPacketToViewers($pos, $pk);
}

#0 plugins/xBowWars_v1.0.0.phar/src/bw/arena/ArenaScheduler(77): pocketmine\level\Level->broadcastLevelSoundEvent(object bw\arena\ArenaScheduler, integer 79)
#1 src/pocketmine/scheduler/TaskHandler(159): bw\arena\ArenaScheduler->onRun(integer 40701)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 40701)
#3 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 40701)
#4 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 40701)
#5 src/pocketmine/Server(2346): pocketmine\Server->tick()
#6 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1784): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(278): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] C:\Users\rafax\Downloads\VarCraft\, string[42] C:\Users\rafax\Downloads\VarCraft\plugins\)
#9 src/pocketmine/PocketMine(300): pocketmine\server()
#10 (1): require(string[89] phar://C:/Users/rafax/Downloads/VarCraft/PocketMine-MP.phar/src/pocketmine/Pocke)

Loaded Plugins

  • Show

Server Settings

  • Show