menu
#2580549 Call to a member function getString() on null

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-07-11 16:31:55 +0000 UTC

System Information

PHP version: 7.2.2
Operating system: win
System banner: Windows NT DESKTOP-H35I5OQ 10.0 build 17134 (Windows 10) AMD64

Error information

Warning: the Core plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getString() on null
File: plugins/Core/src/entity/EntityHandler
Line: #65
Error level: Error
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
        return Server::getInstance()->getOfflinePlayerData($player);
}

public function updateSkins(): void{
foreach(Server::getInstance()->getLevels() as $lvl){
foreach($lvl->getEntities() as $entity){
if(!$entity instanceof Player){
if($entity instanceof LeaderboardNPC){
$skin = $this->getData(strtolower($entity->getPlayer()))->getTag("Skin");
$entity->setSkin(new Skin($skin->getString("Name"), $skin->getByteArray("Data")));
//$entity->setOwnSkin($skin);
}
}
}
}
}

public function spawnLeaderboardNPCS(): void{
for($i = 1; $i < 4; $i++){
$nbt = Entity::createBaseNBT(Main::get()->utils->getPosition()->getLeaderboardNPC($i));
#0 plugins/Core/src/entity/LeaderboardNPC(30): entity\EntityHandler->updateSkins()
#1 src/pocketmine/entity/Entity(1473): entity\LeaderboardNPC->entityBaseTick(integer 2)
#2 src/pocketmine/level/Level(848): pocketmine\entity\Entity->onUpdate(integer 3806)
#3 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 3806)
#4 src/pocketmine/Server(2434): pocketmine\level\Level->doTick(integer 3806)
#5 src/pocketmine/Server(2565): pocketmine\Server->checkTickUpdates(integer 3806, double 1562862715.6944)
#6 src/pocketmine/Server(2334): pocketmine\Server->tick()
#7 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1774): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\xxnic\Desktop\Server\, string C:\Users\xxnic\Desktop\Server\plugins\)
#10 (1): require(string phar://C:/Users/xxnic/Desktop/Server/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show