menu
#4774461 array_rand() expects parameter 1 to be array, bool given

Submitted by PocketMine-MP 3.17.5

General information

Version: 3.17.5
Git commit: 3a0c8dd5
Plugin involvement: Direct
Report date: 2021-02-22 20:42:24 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 4 seconds

System Information

PHP version: 7.3.21
Operating system: linux
System banner: Linux 384ebc73-6699-475a-88f8-ffb4c3886dc3 4.15.0-124-generic #127-Ubuntu SMP Fri Nov 6 10:54:43 UTC 2020 x86_64

Error information

Warning: the CLABot plugin was directly involved in this crash. Please contact the plugin author.
Message: array_rand() expects parameter 1 to be array, bool given
File: plugins/Bot-master.phar/src/Bot/NPCTask
Line: #39
Error level: TypeError
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
				$this->getEntity()->setSneaking(true);
break;
case "unsneak":
$this->getEntity()->setSneaking(false);
break;
case "jump":
$this->getEntity()->jump();
break;
}
$this->getEntity()->setNameTag($names[array_rand($names)]);
$this->getEntity()->spawnToAll();
if($this->getType() !== "start") $this->startTask("start", 20);
}

protected function getEntity() : BotEntity{
return $this->entity;
}

protected function getType() : string{
return $this->type;
#0 plugins/Bot-master.phar/src/Bot/NPCTask(39): array_rand(boolean )
#1 pmsrc/src/pocketmine/scheduler/TaskHandler(137): Bot\NPCTask->onRun(integer 1258)
#2 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 1258)
#3 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1258)
#4 pmsrc/src/pocketmine/Server(2390): pocketmine\plugin\PluginManager->tickSchedulers(integer 1258)
#5 pmsrc/src/pocketmine/Server(2153): pocketmine\Server->tick()
#6 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
#7 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
#8 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#9 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#10 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show