menu
#3761104 Call to a member function hasMatch() on null

Submitted by PocketMine-MP 3.11.3

General information

Version: 3.11.3
Git commit: 0d5704b1
Plugin involvement: Direct
Report date: 2020-02-13 11:26:25 +0000 UTC

System Information

PHP version: 7.3.13
Operating system: linux
System banner: Linux f353f23e-740c-4c11-a373-03893c41788a 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64

Error information

Warning: the Duels plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function hasMatch() on null
File: plugins/Duels_dev-5 2.phar/src/room17/Duels/cmd/presets/DuelsInviteCommand
Line: #77
Error level: Error
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
            $session->sendLocalizedMessage("NOT_AN_ONLINE_PLAYER", [
"name" => $args[0]
]);
return;
} elseif($player === $session->getOwner()) {
$session->sendLocalizedMessage("CANNOT_INVITE_YOURSELF");
return;
}
$playerSession = $this->loader->getSessionManager()->getSession($player);
if($playerSession->hasMatch()) {
$session->sendLocalizedMessage("THE_PLAYER_IS_IN_A_MATCH", [
"name" => $playerSession
]);
} else {
$playerSession->addInvitationFrom($session);
$session->sendLocalizedMessage("YOU_SENT_AN_INVITATION", [
"name" => $playerSession
]);
$playerSession->sendLocalizedMessage("YOU_RECEIVED_AN_INVITATION", [
"from" => $session
#0 plugins/Duels_dev-5 2.phar/src/room17/Duels/cmd/DuelsCommandMap(128): room17\Duels\cmd\presets\DuelsInviteCommand->onCommand(object room17\Duels\session\Session, array[1])
#1 src/pocketmine/command/SimpleCommandMap(270): room17\Duels\cmd\DuelsCommandMap->execute(object specter\network\SpecterPlayer, string[4] duel, array[1])
#2 src/pocketmine/Server(2026): pocketmine\command\SimpleCommandMap->dispatch(object specter\network\SpecterPlayer, string[19] duel invite antaxio)
#3 src/pocketmine/Player(2260): pocketmine\Server->dispatchCommand(object specter\network\SpecterPlayer, string[19] duel invite antaxio)
#4 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->chat(string[20] /duel invite antaxio)
#5 src/pocketmine/network/mcpe/protocol/TextPacket(124): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleText(object pocketmine\network\mcpe\protocol\TextPacket)
#6 plugins/Specter.phar/src/specter/network/SpecterInterface(295): pocketmine\network\mcpe\protocol\TextPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
#7 plugins/Specter.phar/src/specter/network/SpecterInterface(269): specter\network\SpecterInterface->sendPacket(object specter\network\SpecterPlayer, object pocketmine\network\mcpe\protocol\TextPacket)
#8 src/pocketmine/network/Network(88): specter\network\SpecterInterface->process()
#9 src/pocketmine/Server(2566): pocketmine\network\Network->processInterfaces()
#10 src/pocketmine/Server(2346): pocketmine\Server->tick()
#11 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#12 src/pocketmine/Server(1785): pocketmine\Server->start()
#13 src/pocketmine/PocketMine(268): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#14 src/pocketmine/PocketMine(291): pocketmine\server()
#15 (1): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show