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

Submitted by PocketMine-MP 3.5.13

General information

Version: 3.5.13
Git commit: 9afa0e54
Plugin involvement: Direct
Report date: 2019-06-12 14:15:25 +0000 UTC

System Information

PHP version: 7.2.13
Operating system: win
System banner: Windows NT WIN-0JS87OFP9PH 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64

Error information

Warning: the MLGRush plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function teleport() on null
File: plugins/MLGRush_v1.0.0.phar/src/PrinxIsLeqit/MLGRush/MLGRush
Line: #869
Error level: Error
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879

$x1 = $arenafile->get('player1x');
$y1 = $arenafile->get('player1y');
$z1 = $arenafile->get('player1z');

$x2 = $arenafile->get('player2x');
$y2 = $arenafile->get('player2y');
$z2 = $arenafile->get('player2z');

$this->getOwner()->getServer()->getPlayer($arenafile->get('playerone'))->teleport(new Vector3($x1, $y1, $z1));
$this->getOwner()->getServer()->getPlayer($arenafile->get('playertwo'))->teleport(new Vector3($x2, $y2, $z2));

$blocks = $arenafile->get('blocks');
foreach ($blocks as $block) {
$b = explode(':', $block);
$this->getOwner()->getServer()->getLevelByName($gamename)->setBlock(new Vector3($b['0'], $b['1'], $b['2']), Block::get(0));
}

$arenafile->set('mode', 'starting2');
$arenafile->set('counter', 5);
#0 src/pocketmine/scheduler/TaskHandler(159): PrinxIsLeqit\MLGRush\MLGTask->onRun(integer 2681)
#1 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 2681)
#2 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 2681)
#3 src/pocketmine/Server(2587): pocketmine\plugin\PluginManager->tickSchedulers(integer 2681)
#4 src/pocketmine/Server(2342): pocketmine\Server->tick()
#5 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1784): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(250): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Administrator\Desktop\WhiteLightM - Copy (2)\WhiteLightMc2019\, string C:\Users\Administrator\Desktop\WhiteLightM - Copy (2)\WhiteLightMc2019\plugins\)
#8 (1): require(string phar://C:/Users/Administrator/Desktop/WhiteLightM - Copy (2)/WhiteLightMc2019/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show