menu
#4550068 Division by zero

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-09-26 15:38:59 +0000 UTC

System Information

PHP version: 7.3.22
Operating system: linux
System banner: Linux ns556347 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: the NexusPPvP plugin was directly involved in this crash. Please contact the plugin author.
Message: Division by zero
File: plugins/NexusPPvP.phar/src/core/player/NexusPlayer
Line: #342
Error level: ErrorException
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
        }
}

public function initializeScoreboard(): void {
$this->scoreboard->spawn(Nexus::SERVER_NAME);
$this->scoreboard->setScoreLine(1, "");
$this->scoreboard->setScoreLine(2, $this->dataSession->getRank()->getColoredName() . TextFormat::RESET . TextFormat::WHITE . " " . $this->getName());
$this->scoreboard->setScoreLine(3, "");
$this->scoreboard->setScoreLine(4, TextFormat::AQUA . TextFormat::BOLD . " STATS");
$this->scoreboard->setScoreLine(5, TextFormat::RESET . TextFormat::YELLOW . " KDR: " . TextFormat::RESET . TextFormat::WHITE . number_format($this->dataSession->getKills() / $this->dataSession->getDeaths(), 2));
$this->scoreboard->setScoreLine(6, TextFormat::RESET . TextFormat::YELLOW . " ELO: " . TextFormat::RESET . TextFormat::WHITE . number_format((int)$this->dataSession->getElo()));
$this->scoreboard->setScoreLine(7, "");
$this->scoreboard->setScoreLine(8, TextFormat::RED . TextFormat::BOLD . " COMBAT");
$this->scoreboard->setScoreLine(9, TextFormat::RESET . TextFormat::YELLOW . " Enderpearl: " . TextFormat::RESET . TextFormat::WHITE . "0s");
$this->scoreboard->setScoreLine(10, TextFormat::RESET . TextFormat::YELLOW . " Combat Tag: " . TextFormat::RESET . TextFormat::WHITE . "0s");
$this->scoreboard->setScoreLine(11, TextFormat::RESET . TextFormat::YELLOW . " Opponent Ping: " . TextFormat::RESET . TextFormat::WHITE . "0ms");
$this->scoreboard->setScoreLine(12, TextFormat::RESET . TextFormat::YELLOW . " CPS: " . TextFormat::RESET . TextFormat::WHITE . $this->cps);
$this->scoreboard->setScoreLine(13, "");
$this->scoreboard->setScoreLine(14, TextFormat::RESET . TextFormat::LIGHT_PURPLE . " >> store.nexuspe.net");
$this->scoreboard->setScoreLine(15, TextFormat::RESET . TextFormat::LIGHT_PURPLE . " >> vote.nexuspe.net");
#0 plugins/NexusPPvP.phar/src/core/player/NexusPlayer(342): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[16] Division by zero, string[84] phar:///home/servers/practice/plugins/NexusPPvP.phar/src/core/player/NexusPlayer, integer 342, array[0])
#1 plugins/NexusPPvP.phar/src/core/player/task/LoadPlayerTask(47): core\player\NexusPlayer->initializeScoreboard()
#2 src/pocketmine/scheduler/TaskHandler(137): core\player\task\LoadPlayerTask->onRun(integer 732)
#3 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 732)
#4 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 732)
#5 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 732)
#6 src/pocketmine/Server(2154): pocketmine\Server->tick()
#7 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1588): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[23] /home/servers/practice/, string[31] /home/servers/practice/plugins/)
#10 src/pocketmine/PocketMine(304): pocketmine\server()
#11 (11): require(string[78] phar:///home/servers/practice/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies