menu
#9719016 Undefined array key "Online"

Submitted by PocketMine-MP 5.7.0

General information

Version: 5.7.0
Git commit: 22b9e703
Plugin involvement: Direct
Report date: 2023-12-03 06:25:35 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 9 seconds

System Information

PHP version: 8.2.10
JIT status: Not available
Operating system: win
System banner: Windows NT BEEAZ 10.0 build 22621 (Windows 11) AMD64

Error information

Warning: the MultiServerCounter plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined array key "Online"
File: plugins/MultiServerCounter/src/BeeAZ/MSC/MSC
Line: #58
Type: ErrorException
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
                            array_shift($cmd);
if ($cmd[0] === 'transferserver') {
$ip = $cmd[1] ?? '127.0.0.1';
$port = $cmd[2] ?? 19132;
$BeeQuery = new BeeQuery($ip, $port);
$query = $BeeQuery->query();
$online = $query['Players'] ?? 0;
$this->count += $online;
$maxonline = $query['MaxPlayers'] ?? 0;
$status = $query['Online'] ? 'Online' : 'Offline';
$entity->setScoreTag($status . "\n " . $online . "/" . $maxonline . " Playing");
}
}
}
}
}
}
}

public function onQuery(QueryRegenerateEvent $event){
#0 plugins/MultiServerCounter/src/BeeAZ/MSC/MSC(58): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[28] Undefined array key "Online", string[89] C:\Users\Legion\Desktop\ServerGame\Lobby\plugins\MultiServerCounter\src\BeeAZ\MS, int 58)
#1 plugins/MultiServerCounter/src/BeeAZ/MSC/MSC(33): BeeAZ\MSC\MSC->updateNPC()
#2 pmsrc/src/scheduler/TaskHandler(113): pocketmine\scheduler\Task@anonymous´┐ŻC:\Users\Legion\Desktop\ServerGame\Lobby\plugins\MultiServerCounter\src\BeeAZ\MSC\MSC.php:21$25c->onRun()
#3 pmsrc/src/scheduler/TaskScheduler(137): pocketmine\scheduler\TaskHandler->run()
#4 pmsrc/src/plugin/PluginManager(530): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(int 141)
#5 pmsrc/src/Server(1790): pocketmine\plugin\PluginManager->tickSchedulers(int 141)
#6 pmsrc/src/Server(1679): pocketmine\Server->tick()
#7 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#8 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[41] C:\Users\Legion\Desktop\ServerGame\Lobby\, string[49] C:\Users\Legion\Desktop\ServerGame\Lobby\plugins\)
#9 pmsrc/src/PocketMine(357): pocketmine\server()
#10 pmsrc(11): require(string[85] phar://C:/Users/Legion/Desktop/ServerGame/Lobby/PocketMine-MP.phar/src/PocketMin)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show