menu
#5776830 str_replace(): Argument #2 ($replace) must be of type array|string, int given

Submitted by PocketMine-MP 3.26.5

General information

Version: 3.26.5
Git commit: a4af1609
Plugin involvement: Direct
Report date: 2022-01-14 20:40:19 +0000 UTC
Server uptime: 0 days 0 hours 4 minutes 0 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux 5acdf5e9-afd3-42cf-88f1-557ec4ad40bd 4.15.0-140-generic #144-Ubuntu SMP Fri Mar 19 14:12:35 UTC 2021 x86_64

Error information

Warning: the AutoClearLagg plugin was directly involved in this crash. Please contact the plugin author.
Message: str_replace(): Argument #2 ($replace) must be of type array|string, int given
File: plugins/AutoClearLagg(2).phar/src/twisted/autoclearlagg/AutoClearLagg
Line: #111
Error level: TypeError
102
103
104
105
106
107
108
109
110
111
112
113
114
115
                                ++$entitiesCleared;
}
}
}
}
$this->getServer()->broadcastMessage(str_replace("{COUNT}", $entitiesCleared, $this->messages[self::LANG_ENTITIES_CLEARED]));

$this->seconds = $this->interval;
}else if(in_array($this->seconds, $this->broadcastTimes)){
$this->getServer()->broadcastMessage(str_replace("{SECONDS}", $this->seconds, $this->messages[self::LANG_TIME_LEFT]));
}
}), 20);
}
}
#0 plugins/AutoClearLagg(2).phar/src/twisted/autoclearlagg/AutoClearLagg(111): str_replace(string[9] {SECONDS}, integer 60, string[43] ..cEntities will clear in {SECONDS} seconds)
#1 pmsrc/src/pocketmine/scheduler/ClosureTask(61): twisted\autoclearlagg\AutoClearLagg->twisted\autoclearlagg\{closure}(integer 4781)
#2 pmsrc/src/pocketmine/scheduler/TaskHandler(137): pocketmine\scheduler\ClosureTask->onRun(integer 4781)
#3 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 4781)
#4 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 4781)
#5 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 4781)
#6 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#7 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#8 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#9 pmsrc/src/pocketmine/PocketMine(332): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#10 pmsrc/src/pocketmine/PocketMine(362): pocketmine\server()
#11 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show