menu
#9249610 Division by zero

Submitted by PocketMine-MP 5.5.0

General information

Version: 5.5.0
Git commit: c8d357f4
Plugin involvement: Direct
Report date: 2023-09-19 16:57:03 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 38 seconds

System Information

PHP version: 8.1.23
JIT status: Not available
Operating system: linux
System banner: Linux 6b0f1e01-41c8-4717-be37-d0f2eea9164d 5.4.0-162-generic #179-Ubuntu SMP Mon Aug 14 08:51:31 UTC 2023 x86_64

Error information

Warning: the weekomComplementPriv plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Division by zero
File: plugins/Complement.phar/src/Complemento/Stats/Main
Line: #415
Type: DivisionByZeroError
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
    $emeraldpl = $this->getEmerald($player);
$redstonepl = $this->getRedstone($player);
$lapispl = $this->getLapis($player);
$goldpl = $this->getGold($player);
$diamondpl = $this->getDiamond($player);
$deathpl = $this->getDeath($player);
$killpl = $this->getKill($player);
$deathppl = $this->getDeathp($player);
$killppl = $this->getKillp($player);
$kdrpl = $killpl/$deathpl;
$kdrppl = $killppl/$deathppl;
$winpl = $this->getWin($player);
$gamesplayedpl = $this->getGames($player);
$menu = InvMenu::create(InvMenu::TYPE_CHEST);
$menu->setName($this->config->get("ui-title"));
$menu->readonly();
$inv = $menu->getInventory();
$inv->setItem(10, VanillaItems::DIAMOND_HELMET()->setCustomName("§l§fPlayer info§r")->setLore(["§fName§5 $namepl \n§fGames:§5 $gamesplayedpl \n§fWins:§5 $winpl"]));
$inv->setItem(12, VanillaItems::IRON_SWORD()->setCustomName("§l§fIn Practice§r")->setLore(["§fKills:§5 $killppl \n§fDeaths:§5 $deathppl \n§fKDR:§5 $kdrppl"]));
$inv->setItem(14, VanillaItems::DIAMOND_SWORD()->setCustomName("§l§fIn UHC§r")->setLore(["§fKills:§5 $killpl \n§fDeaths:§5 $deathpl \n§fKDR:§5 $kdrpl"]));
#0 plugins/Complement.phar/src/Complemento/Stats/Main(272): Complemento\Stats\Main->openStats(object pocketmine\player\Player#151395, object pocketmine\player\Player#123336)
#1 pmsrc/src/command/PluginCommand(46): Complemento\Stats\Main->onCommand(object pocketmine\player\Player#123336, object pocketmine\command\PluginCommand#41789, string[5] stats, array[1])
#2 pmsrc/src/command/SimpleCommandMap(212): pocketmine\command\PluginCommand->execute(object pocketmine\player\Player#123336, string[5] stats, array[1])
#3 pmsrc/src/Server(1416): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#123336, string[7] stats P)
#4 pmsrc/src/player/Player(1512): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#123336, string[7] stats P)
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(826): pocketmine\player\Player->chat(string[8] /stats P)
#6 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#143206)
#7 pmsrc/src/network/mcpe/NetworkSession(445): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#73600)
#8 pmsrc/src/network/mcpe/NetworkSession(383): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#143206, string[30] M./stats P..Or..7l..R..m.X...F)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[34] ..../.I,)V.`.._...<......roD.a`p..)
#10 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[43] .7`O#..g.NT.V.:W.0.p..m*a..y.UX.!+.X.....w.)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#150870)
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#13 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#15 pmsrc/src/Server(1681): pocketmine\snooze\SleeperHandler->sleepUntil(float 1695142623.2712)
#16 pmsrc/src/Server(1064): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#18 pmsrc/src/PocketMine(357): pocketmine\server()
#19 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show