menu
#4583156 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-10-17 20:15:38 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: linux
System banner: Linux fdefc538-09c9-4483-9fc3-4aff9929d839 4.4.0-190-generic #220-Ubuntu SMP Fri Aug 28 23:02:15 UTC 2020 x86_64

Error information

Warning: the BetterStats plugin was directly involved in this crash. Please contact the plugin author.
Message: Division by zero
File: plugins/BetterStats_v0.0.1 (16).phar/src/KingOfTurkey38/BetterStats/FloatingText
Line: #86
Error level: ErrorException
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
				["{money}", "{mana}", "{player}", "{chips}", "{blocks}", "{kills}", "{deaths}", "{killstreak}", "{kd}", "{played}"],
[number_format(EconomyAPI::getInstance()->myMoney($this->player)),
number_format(OreGen::getInstance()->getMana($this->player->getName())),
$this->player->getName(),
number_format(\KingOfTurkey38\CoinFlip\Main::getInstance()->getChip($this->player->getName())),
$this->text["blocks"],
$this->text["kills"],
$this->text["death"],
$this->text["streak"],
round(($this->text["kills"] === 0 ? 1 : $this->text["kills"]) / ($this->text["death"] === 0 ? 1 : $this->text["death"]),2),
$d
],
implode("\n", $main->getConfig()->get("floatingText")));

$this->setNameTag($text);


$this->cd = 1;
}
return parent::onUpdate($currentTick);
#0 plugins/BetterStats_v0.0.1 (16).phar/src/KingOfTurkey38/BetterStats/FloatingText(86): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[16] Division by zero, string[107] phar:///home/container/plugins/BetterStats_v0.0.1 (16).phar/src/KingOfTurkey38/B, integer 86, array[4])
#1 src/pocketmine/level/Level(852): KingOfTurkey38\BetterStats\FloatingText->onUpdate(integer 1262)
#2 src/pocketmine/level/Level(785): pocketmine\level\Level->actuallyDoTick(integer 1262)
#3 src/pocketmine/Server(2267): pocketmine\level\Level->doTick(integer 1262)
#4 src/pocketmine/Server(2398): pocketmine\Server->checkTickUpdates(integer 1262, double 1602965738.0113)
#5 src/pocketmine/Server(2154): pocketmine\Server->tick()
#6 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1588): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#9 src/pocketmine/PocketMine(304): pocketmine\server()
#10 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies