menu
#3758502 Modulo by zero

Submitted by PocketMine-MP 3.11.1

General information

Version: 3.11.1
Git commit: 40a2211a
Plugin involvement: Direct
Report date: 2020-02-13 05:36:12 +0000 UTC

System Information

PHP version: 7.3.5
Operating system: win
System banner: Windows NT TaiNamreal28 6.3 build 9600 (Windows Server 2012 R2 Datacenter Edition) AMD64

Error information

Warning: the BossBar plugin was directly involved in this crash. Please contact the plugin author.
Message: Modulo by zero
File: plugins/BossBar (2).phar/src/BossBar/Main
Line: #62
Error level: DivisionByZeroError
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
			foreach ($world->getPlayers() as $player){
API::setTitle($this->getText($player), $this->entityRuntimeId, [$player]);
}
}
}

public function getText(Player $player){
$text = '';
if (!empty($this->headBar)) $text .= $this->formatText($player, $this->headBar) . "\n" . "\n" . TextFormat::RESET;
$currentMSG = $this->cmessages[$this->i % count($this->cmessages)];
if (strpos($currentMSG, '%') > -1){
$percentage = substr($currentMSG, 1, strpos($currentMSG, '%') - 1);
if (is_numeric($percentage)) API::setPercentage(intval($percentage) + 0.5, $this->entityRuntimeId);
$currentMSG = substr($currentMSG, strpos($currentMSG, '%') + 2);
}
$text .= $this->formatText($player, $currentMSG);
return mb_convert_encoding($text, 'UTF-8');
}

public function formatText(Player $player, string $text){
#0 plugins/BossBar (2).phar/src/BossBar/Main(54): BossBar\Main->getText(object pocketmine\Player)
#1 plugins/BossBar (2).phar/src/BossBar/SendTask(14): BossBar\Main->sendBossBar()
#2 src/pocketmine/scheduler/TaskHandler(159): BossBar\SendTask->onRun(integer 2561)
#3 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 2561)
#4 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 2561)
#5 src/pocketmine/Server(2567): pocketmine\plugin\PluginManager->tickSchedulers(integer 2561)
#6 src/pocketmine/Server(2343): pocketmine\Server->tick()
#7 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1785): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] C:\Users\vps\Desktop\INK CREATIVE\, string[42] C:\Users\vps\Desktop\INK CREATIVE\plugins\)
#10 src/pocketmine/PocketMine(295): pocketmine\server()
#11 (1): require(string[89] phar://C:/Users/vps/Desktop/INK CREATIVE/PocketMine-MP.phar/src/pocketmine/Pocke)

Loaded Plugins

  • Show

Server Settings

  • Show