menu
#2388047 Return value of jkorn\pvpcore\world\WorldHandler::getWorldFromLevel() must be an instance of jkorn\pvpcore\world\PvPCWorld, null returned

Submitted by PocketMine-MP 3.8.1

General information

Version: 3.8.1
Git commit: 7521160f
Plugin involvement: Direct
Report date: 2019-05-16 00:20:54 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux 63db548b-c1cf-4f9e-aa5c-b50abd830b4d 4.4.0-141-generic #167-Ubuntu SMP Wed Dec 5 10:40:15 UTC 2018 x86_64

Error information

Warning: the PvPCore plugin was directly involved in this crash. Please contact the plugin author.
Message: Return value of jkorn\pvpcore\world\WorldHandler::getWorldFromLevel() must be an instance of jkorn\pvpcore\world\PvPCWorld, null returned
File: plugins/PvPCore-PMMP-master/src/jkorn/pvpcore/world/WorldHandler
Line: #75
Error level: TypeError
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85

$this->config->save();
}

/**
* @param Level $level
* @return PvPCWorld
*/
public function getWorldFromLevel(Level $level) : PvPCWorld {
return $this->getWorld($level->getName());
}

/**
* @param string $level
* @return PvPCWorld|null
*/
public function getWorld(string $level) {
$result = null;
$worlds = $this->getAllWorlds();
if(count($worlds) > 0){
#0 plugins/PvPCore-PMMP-master/src/jkorn/pvpcore/PvPCoreListener(38): jkorn\pvpcore\world\WorldHandler->getWorldFromLevel(pocketmine\level\Level object)
#1 src/pocketmine/plugin/MethodEventExecutor(38): jkorn\pvpcore\PvPCoreListener->onEntityDamage(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(jkorn\pvpcore\PvPCoreListener object, pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#3 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#4 src/pocketmine/entity/Entity(983): pocketmine\event\Event->call()
#5 src/pocketmine/entity/Living(572): pocketmine\entity\Entity->attack(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#6 src/pocketmine/Player(3713): pocketmine\entity\Living->attack(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#7 src/pocketmine/entity/projectile/Projectile(318): pocketmine\Player->attack(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#8 src/pocketmine/entity/projectile/Projectile(252): pocketmine\entity\projectile\Projectile->onHitEntity(pocketmine\Player object, pocketmine\math\RayTraceResult object)
#9 src/pocketmine/entity/Entity(1463): pocketmine\entity\projectile\Projectile->move(double -1.0865428180925, double -0.42968960241096, double 0.2163337710016)
#10 src/pocketmine/level/Level(849): pocketmine\entity\Entity->onUpdate(integer 5033)
#11 src/pocketmine/level/Level(794): pocketmine\level\Level->actuallyDoTick(integer 5033)
#12 src/pocketmine/Server(2435): pocketmine\level\Level->doTick(integer 5033)
#13 src/pocketmine/Server(2566): pocketmine\Server->checkTickUpdates(integer 5033, double 1557966054.9342)
#14 src/pocketmine/Server(2335): pocketmine\Server->tick()
#15 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
#16 src/pocketmine/Server(1775): pocketmine\Server->start()
#17 src/pocketmine/PocketMine(258): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/container/, string /home/container/plugins/)
#18 (1): require(string phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show