menu
#4530954 Call to a member function teleport() on null

Submitted by PocketMine-MP 3.15.0

General information

Version: 3.15.0
Git commit: a498b041
Plugin involvement: Direct
Report date: 2020-09-16 01:32:26 +0000 UTC

System Information

PHP version: 7.3.21
Operating system: linux
System banner: Linux 37f92463-bfac-4e67-bcb0-e2f691e40e9a 4.15.0-109-generic #110-Ubuntu SMP Tue Jun 23 02:39:32 UTC 2020 x86_64

Error information

Warning: the CorePCP plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function teleport() on null
File: plugins/CorePCP_v3.3.5.phar/src/CorePCP/Core
Line: #518
Error level: Error
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
    
public function getInviteControlHere(string $name) : bool{
return isset($this->invite[$name]);
}

public function tpaccept(string $name) : void{
$player = $this->getServer()->getPlayer($name);
if($this->getInviteControl($name)){
$sender = $this->getServer()->getPlayer($this->getInvite($name));
$sender->teleport($player->asPosition());
unset($this->invite[$name]);
$sender->sendMessage(str_replace("{player}", $name, $this->core->getNested("tpa.sender.tpaccept")));
$player->sendMessage(str_replace("{player}", $sender->getName(), $this->core->getNested("tpa.player.tpaccept")));
}
}

public function tpreject($name) : void{
$player = $this->getServer()->getPlayer($name);
if($this->getInviteControl($name)){
$sender = $this->getServer()->getPlayer($this->getInvite($name));
#0 plugins/CorePCP_v3.3.5.phar/src/CorePCP/tasks/TpaTask(34): CorePCP\Core->tpaccept(string[14] PhytonStreak30)
#1 src/pocketmine/scheduler/TaskHandler(137): CorePCP\tasks\TpaTask->onRun(integer 124075)
#2 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 124075)
#3 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 124075)
#4 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 124075)
#5 src/pocketmine/Server(2154): pocketmine\Server->tick()
#6 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1588): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#9 src/pocketmine/PocketMine(304): pocketmine\server()
#10 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies