menu
#2824041 Undefined index: id

Submitted by PocketMine-MP 3.9.4

General information

Version: 3.9.4
Git commit: 1be6783c
Plugin involvement: Direct
Report date: 2019-09-11 09:06:35 +0000 UTC

System Information

PHP version: 7.3.7
Operating system: linux
System banner: Linux b7ecfa69b32d 4.4.0-148-generic #174-Ubuntu SMP Tue May 7 12:20:14 UTC 2019 x86_64

Error information

Warning: the MysteryCrate plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined index: id
File: plugins/MysteryCrate.phar/src/JackMD/MysteryCrate/UpdaterEvent
Line: #153
Error level: ErrorException
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
		$reward = array_rand($drops, 1);
$reward = $drops[$reward];

if(!isset($reward["id"]) || !isset($reward["meta"]) || !isset($reward["amount"])){
$this->player->kick("§cMysteryCrate caught fire!\nPlease report to Admin to look for error on console.", false);
$this->plugin->getLogger()->error("Either `id` or `meta` or `amount` key is missing in " . ucfirst($type) . " Crate.");
$this->plugin->getServer()->getPluginManager()->disablePlugin($this->plugin);
}

$item = Item::get($reward["id"], $reward["meta"], $reward["amount"]);

if(isset($reward["name"])){
$item->setCustomName($reward["name"]);
}
if(isset($reward["lore"])){
$item->setLore([$reward["lore"]]);
}
if(isset($reward["commands"])){
foreach($reward["commands"] as $index => $cmd){
$nbt = $item->getNamedTag() ?? new CompoundTag("", []);
#0 plugins/MysteryCrate.phar/src/JackMD/MysteryCrate/UpdaterEvent(153): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[19] Undefined index: id, string[89] phar:///aternos/server/plugins/MysteryCrate.phar/src/JackMD/MysteryCrate/Updater, integer 153, array[6])
#1 plugins/MysteryCrate.phar/src/JackMD/MysteryCrate/UpdaterEvent(216): JackMD\MysteryCrate\UpdaterEvent->getReward()
#2 src/pocketmine/scheduler/TaskHandler(159): JackMD\MysteryCrate\UpdaterEvent->onRun(integer 5666)
#3 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 5666)
#4 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 5666)
#5 src/pocketmine/Server(2569): pocketmine\plugin\PluginManager->tickSchedulers(integer 5666)
#6 src/pocketmine/Server(2345): pocketmine\Server->tick()
#7 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1784): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /aternos/server/, string[24] /aternos/server/plugins/)
#10 src/pocketmine/PocketMine(299): pocketmine\server()
#11 (1): require(string[64] phar:///aternos/server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show