menu
#2581942 count(): Parameter must be an array or an object that implements Countable

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-07-12 04:38:42 +0000 UTC

System Information

PHP version: 7.2.2
Operating system: win
System banner: Windows NT UHUVV16TSDJ7IAR 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) AMD64

Error information

Warning: the HologramCountDown plugin was directly involved in this crash. Please contact the plugin author.
Message: count(): Parameter must be an array or an object that implements Countable
File: plugins/#HologramCoundown/src/Tungst_HLC/RefreshTask
Line: #46
Error level: ErrorException
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
        $this->main = $main;
$this->maxtop = $this->main->getConfig()->get("maxtop");

}
public function onRun($currentTick)
{
if($this->text <= 0){$this->text = 30;}
$this->text--;
if(!$this->isCall){return;}
if(count($this->floatingtext) == count($this->main->getConfig()->get("location"))){
for($i = 0;$i<count($this->floatingtext);$i++){
$this->floatingtext[$i]->setText($this->text);
$this->main->getServer()->getLevelByName($this->worldname[$i])->addParticle($this->floatingtext[$i]);
}
}else{
for($i = 0;$i<count($this->floatingtext);$i++){
$this->floatingtext[$i]->setInvisible();
$this->main->getServer()->getLevelByName($this->worldname[$i])->addParticle($this->floatingtext[$i]);
}
$this->floatingtext = [];
#0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string count(): Parameter must be an array or an object that implements Countable, string C:\Users\Administrator\Desktop\MCPE\plugins\#HologramCoundown\src\Tungst_HLC\RefreshTask.php, integer 46, array Array())
#1 plugins/#HologramCoundown/src/Tungst_HLC/RefreshTask(46): count(boolean )
#2 src/pocketmine/scheduler/TaskHandler(159): Tungst_HLC\RefreshTask->onRun(integer 1101)
#3 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1101)
#4 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1101)
#5 src/pocketmine/Server(2558): pocketmine\plugin\PluginManager->tickSchedulers(integer 1101)
#6 src/pocketmine/Server(2334): pocketmine\Server->tick()
#7 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1774): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Administrator\Desktop\MCPE\, string C:\Users\Administrator\Desktop\MCPE\plugins\)
#10 (1): require(string phar://C:/Users/Administrator/Desktop/MCPE/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show