menu
#2580594 Undefined index: Place

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:52:17 +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: Undefined index: Place
File: plugins/Core/src/entity/LeaderboardNPC
Line: #52
Error level: ErrorException
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
                $datapath = Main::get()->getServer()->getDataPath() . "data" . DIRECTORY_SEPARATOR . "players";
$cfg = new Config($datapath . DIRECTORY_SEPARATOR . $this->getPlayer() . ".yml", Config::YAML);
if($this->last == $data) if($this->kill[$this->getPlayer()] !== $cfg->get("kills")) $this->runCheck($data);
}
}
return $t;
}

public function runCheck($data): void{
foreach($data["Place"] as $p => $place){
if($this->getPlace() == $place){
$cfg = Player::getConfig($p);
$kill = $cfg->get("kills");
$this->kill[$p] = $kill;
if($kill !== 0){
$title = Main::get()->utils->getLeaderboardPlace($place) . C::WHITE . $p;
$subtitle = C::DARK_AQUA . "with " . C::AQUA . $kill . " kills";
if($this->namedtag->getString("name") !== $p) $this->namedtag->setString("name", $p);
}else{
$title = C::RED . "Unknown";
#0 plugins/Core/src/entity/LeaderboardNPC(52): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Undefined index: Place, string C:\Users\xxnic\Desktop\Server\plugins\Core\src\entity\LeaderboardNPC.php, integer 52, array Array())
#1 plugins/Core/src/entity/LeaderboardNPC(31): entity\LeaderboardNPC->runCheck(array Array())
#2 src/pocketmine/entity/Entity(1473): entity\LeaderboardNPC->entityBaseTick(integer 1)
#3 src/pocketmine/level/Level(848): pocketmine\entity\Entity->onUpdate(integer 120)
#4 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 120)
#5 src/pocketmine/Server(2434): pocketmine\level\Level->doTick(integer 120)
#6 src/pocketmine/Server(2565): pocketmine\Server->checkTickUpdates(integer 120, double 1562863937.9394)
#7 src/pocketmine/Server(2334): pocketmine\Server->tick()
#8 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1774): pocketmine\Server->start()
#10 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\)
#11 (1): require(string phar://C:/Users/xxnic/Desktop/Server/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show