menu
#5776874 Undefined array key "coal"

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:51:38 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 20 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux 90b1a0ca-c0e1-4f33-b7fb-5658dacb2f1a 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64

Error information

Warning: the OreSpawners plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined array key "coal"
File: plugins/OreSpawners.phar/src/RKAbdul/OreSpawners/EventListener
Line: #70
Error level: ErrorException
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
                    }
}), intval($delay));
}
}
}

public function checkBlock(Block $bbelow)
{
$bbid = $bbelow->getId();
$coalid = intval($this->cfg["ore-generator-blocks"]["coal"]);
$ironid = intval($this->cfg["ore-generator-blocks"]["iron"]);
$goldid = intval($this->cfg["ore-generator-blocks"]["gold"]);
$diamondid = intval($this->cfg["ore-generator-blocks"]["diamond"]);
$emeraldid = intval($this->cfg["ore-generator-blocks"]["emerald"]);
$lapizid = intval($this->cfg["ore-generator-blocks"]["lapis"]);
$redstoneid = intval($this->cfg["ore-generator-blocks"]["redstone"]);
switch ($bbid) {
case $coalid:
$ore = Block::get(Block::COAL_ORE);
break;
#0 plugins/OreSpawners.phar/src/RKAbdul/OreSpawners/EventListener(70): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[26] Undefined array key "coal", string[89] phar:///home/container/plugins/OreSpawners.phar/src/RKAbdul/OreSpawners/EventLis, integer 70)
#1 plugins/OreSpawners.phar/src/RKAbdul/OreSpawners/EventListener(52): RKAbdul\OreSpawners\EventListener->checkBlock(object pocketmine\block\GlazedTerracotta)
#2 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): RKAbdul\OreSpawners\EventListener->onBlockUpdate(object pocketmine\event\block\BlockUpdateEvent)
#3 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object RKAbdul\OreSpawners\EventListener, object pocketmine\event\block\BlockUpdateEvent)
#4 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\block\BlockUpdateEvent)
#5 pmsrc/src/pocketmine/level/Level(842): pocketmine\event\Event->call()
#6 pmsrc/src/pocketmine/level/Level(787): pocketmine\level\Level->actuallyDoTick(integer 358)
#7 pmsrc/src/pocketmine/Server(2265): pocketmine\level\Level->doTick(integer 358)
#8 pmsrc/src/pocketmine/Server(2396): pocketmine\Server->checkTickUpdates(integer 358, double 1642193498.2454)
#9 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#10 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#11 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#12 pmsrc/src/pocketmine/PocketMine(332): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#13 pmsrc/src/pocketmine/PocketMine(362): pocketmine\server()
#14 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