menu
#7304461 Unhandled match value of type int

Submitted by PocketMine-MP 4.6.0

General information

Version: 4.6.0
Git commit: 3ccd288a
Plugin involvement: Direct
Report date: 2022-08-06 00:01:29 +0000 UTC
Server uptime: 0 days 0 hours 2 minutes 19 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux ns528620 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64

Error information

Warning: the Vasar plugin was directly involved in this crash. Please contact the plugin author.
Message: Unhandled match value of type int
File: plugins/VasarPM.phar/src/Warro/Session
Line: #780
Error level: UnhandledMatchError
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
		if (++$this->reachViolations >= 15) {
$this->player->setImmobile();
$loc = $this->player->getLocation();
$facing = $this->player->getHorizontalFacing();
$loc->yaw = 0;
$loc->pitch = 0;
match($facing){
Facing::WEST => $loc->yaw = 90,
Facing::EAST => $loc->yaw = 270,
Facing::NORTH => $loc->yaw = 180,
};
$this->player->teleport($loc, $loc->yaw, $loc->pitch);

match($facing){
Facing::WEST => $loc->x -= 3,
Facing::EAST => $loc->x += 3,
Facing::NORTH => $loc->z -= 3,
Facing::SOUTH => $loc->z += 3
};

#0 plugins/VasarPM.phar/src/Warro/Jarvis(249): Warro\Session->addReachViolation()
#1 pmsrc/src/event/RegisteredListener(60): Warro\Jarvis->reach(object pocketmine\event\entity\EntityDamageByEntityEvent#126879)
#2 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByEntityEvent#126879)
#3 pmsrc/src/entity/Entity(525): pocketmine\event\Event->call()
#4 plugins/VasarPM.phar/src/Warro/User(208): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#126879)
#5 pmsrc/src/player/Player(1741): Warro\User->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#126879)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(511): pocketmine\player\Player->attackEntity(object Warro\User#121489)
#7 pmsrc/src/network/mcpe/handler/InGamePacketHandler(301): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemOnEntityTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData#126976)
#8 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(105): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#126912)
#9 pmsrc/src/network/mcpe/NetworkSession(392): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#133328)
#10 pmsrc/src/network/mcpe/NetworkSession(355): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#126912, string[85] ........................display...Name....r..bVasar..........Z..B.zNB.?4C.......)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[105] [email protected]^jrQbZ.UANbej..C...3..#.#.F.1............R2.Aj8X...sS...-/:.)
#12 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[114] .q..b..m...n`.3..._d).\...T.u.....0...(.6..l,.........R.....bnu....*p.t....Q....)
#13 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#29825)
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#16 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1659744089.5558)
#17 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#18 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[18] /root/VasarTestPM/, string[26] /root/VasarTestPM/plugins/)
#19 pmsrc/src/PocketMine(327): pocketmine\server()
#20 pmsrc(11): require(string[62] phar:///root/VasarTestPM/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show