menu
#2468028 array_rand(): Array is empty

Submitted by PocketMine-MP 3.8.1

General information

Version: 3.8.1
Git commit: 7521160f
Plugin involvement: Direct
Report date: 2019-06-12 05:30:50 +0000 UTC

System Information

PHP version: 7.2.13
Operating system: win
System banner: Windows NT DESKTOP-EFCOQ2Q 10.0 build 17763 (Windows 10) AMD64

Error information

Warning: the BrokenMC-Loader plugin was directly involved in this crash. Please contact the plugin author.
Message: array_rand(): Array is empty
File: plugins/BrokenMC-Loader/src/ElixirCore/Modules/GameManager/GameManager
Line: #95
Error level: ErrorException
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
      $player = $data[0];
$session = $data[1];
$type = $data[2];
$kit = $data[3];
$found = false;

$attempts = 0;

while(!$found and $attempts <= (count($this->games) * 3)){
$game = $this->games[array_rand($this->games)];

if($data[4] === null){
$pregame = $this->getPreGames()[array_rand($this->getPreGames())];

if(!$pregame->isFull() & $pregame->getType() === $type & $kit === $pregame->getKit()){
$this->removeFromQueue($player);
$found = true;

$pregame->addPlayer($player);

#0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string array_rand(): Array is empty, string C:\Users\BaconOFBurger\Desktop\BrokenMC\BrokenMC\BrokenMC-ID(REE-FACTORING)\plugins\BrokenMC-Loader\src\ElixirCore\Modules\GameManager\GameManager.php, integer 95, array Array())
#1 plugins/BrokenMC-Loader/src/ElixirCore/Modules/GameManager/GameManager(95): array_rand(array Array())
#2 src/pocketmine/scheduler/TaskHandler(159): ElixirCore\Modules\GameManager\GameManager->onRun(integer 961)
#3 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 961)
#4 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 961)
#5 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 961)
#6 src/pocketmine/Server(2335): pocketmine\Server->tick()
#7 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1775): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(258): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\BaconOFBurger\Desktop\BrokenMC\BrokenMC\BrokenMC-ID(REE-FACTORING)\, string C:\Users\BaconOFBurger\Desktop\BrokenMC\BrokenMC\BrokenMC-ID(REE-FACTORING)\plugins\)
#10 (1): require(string phar://C:/Users/BaconOFBurger/Desktop/BrokenMC/BrokenMC/BrokenMC-ID(REE-FACTORING)/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show