menu
#5038218 Undefined index: ivanpn98

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-22 02:04:00 +0000 UTC
Server uptime: 0 days 0 hours 17 minutes 58 seconds

System Information

PHP version: 7.4.21
Operating system: win
System banner: Windows NT CORSAIRPC 10.0 build 19042 (Windows 10) AMD64

Error information

Warning: the OnlineTime plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined index: ivanpn98
File: plugins/OnlineTime.phar/src/Zedstar16/OnlineTime/Main
Line: #184
Error level: ErrorException
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
        } else $t = 0;
$t = ($t + $totalsecs);
return ($t < 0 ? '-' : '') . sprintf("%02d%s%02d%s%02d", floor(abs($t) / 3600), ":", (abs($t) / 60) % 60, ":", abs($t) % 60);
}

public function getSessionTime($pn): String
{
$pn = "$pn";
$pn = strtolower($pn);
$t = time() - self::$times[$pn];
return ($t < 0 ? '-' : '') . sprintf("%02d%s%02d%s%02d", floor(abs($t) / 3600), ":", (abs($t) / 60) % 60, ":", abs($t) % 60);
}

public function onDisable(): void
{
foreach (self::$times as $player => $time) {
$player = "$player";
$player = strtolower($player);
if ($this->getServer()->getPlayer($player) !== null) {
$p = $this->getServer()->getPlayer($player);
#0 plugins/OnlineTime.phar/src/Zedstar16/OnlineTime/Main(184): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[25] Undefined index: ivanpn98, string[114] phar://C:/Users/ivanp/Desktop/MinecraftServer/PocketMine/plugins/OnlineTime.phar, integer 184, array[1])
#1 plugins/Scoreboard.phar/src/Ayzrix/Scoreboard/Extensions/OnlineTime(30): Zedstar16\OnlineTime\Main->getSessionTime(string[8] ivanpn98)
#2 plugins/Scoreboard.phar/src/Ayzrix/Scoreboard/Utils/Utils(68): Ayzrix\Scoreboard\Extensions\OnlineTime::getSessionTime(object pocketmine\Player)
#3 plugins/Scoreboard.phar/src/Ayzrix/Scoreboard/Tasks/ScoreboardTask(36): Ayzrix\Scoreboard\Utils\Utils::formateString(object pocketmine\Player, string[6] ..1..r)
#4 pmsrc/src/pocketmine/scheduler/TaskHandler(137): Ayzrix\Scoreboard\Tasks\ScoreboardTask->onRun(integer 21524)
#5 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 21524)
#6 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 21524)
#7 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 21524)
#8 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#9 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#10 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#11 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[50] C:\Users\ivanp\Desktop\MinecraftServer\PocketMine\, string[58] C:\Users\ivanp\Desktop\MinecraftServer\PocketMine\plugins\)
#12 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#13 pmsrc(11): require(string[105] phar://C:/Users/ivanp/Desktop/MinecraftServer/PocketMine/PocketMine-MP.phar/src/)

Loaded Plugins

  • Show

Server Settings

  • Show