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

Submitted by PocketMine-MP 3.8.0

General information

Version: 3.8.0
Git commit: 088fbf65
Plugin involvement: Direct
Report date: 2019-05-15 17:09:37 +0000 UTC

System Information

PHP version: 7.2.13
Operating system: linux
System banner: Linux 2c2a9cfbdcff 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64

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: #1011
Error level: Error
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021

$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', 'starting3');
$arenafile->set('counter', 5);
#0 src/pocketmine/scheduler/TaskHandler(159): PrinxIsLeqit\MLGRush\MLGTask->onRun(integer 5859934)
#1 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 5859934)
#2 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 5859934)
#3 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 5859934)
#4 src/pocketmine/Server(2335): pocketmine\Server->tick()
#5 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1775): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(258): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /root/pmmp/, string /root/pmmp/plugins/)
#8 (1): require(string phar:///root/pmmp/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show