menu
#4656866 Attempting to create an ore generator with block: Coal Ore

Submitted by PocketMine-MP 4.0.0+dev

General information

Version: 4.0.0+dev
Git commit: 4520e425
Plugin involvement: Direct
Report date: 2020-11-22 00:26:00 +0000 UTC

System Information

PHP version: 7.4.11
Operating system: linux
System banner: Linux ns556347 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: the NexusPrison plugin was directly involved in this crash. Please contact the plugin author.
Message: Attempting to create an ore generator with block: Coal Ore
File: plugins/NexusPrison.phar/src/core/game/item/types/custom/OreGenerator
Line: #41
Error level: core\game\item\ItemException
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
    /**
* OreGenerator constructor.
*
* @param Block $ore
*
* @throws ItemException
*/
public function __construct(Block $ore) {
if(!$ore instanceof Ore) {
throw new ItemException("Attempting to create an ore generator with block: " . $ore->getName());
}
$name = $ore->getName();
switch($ore->getId()) {
case BlockLegacyIds::EMERALD_ORE:
$id = ItemIds::EMERALD_BLOCK;
$color = TextFormat::GREEN;
break;
case BlockLegacyIds::DIAMOND_ORE:
$id = ItemIds::DIAMOND_BLOCK;
$color = TextFormat::AQUA;
#0 plugins/NexusPrison.phar/src/core/game/economy/EconomyManager(65): core\game\item\types\custom\OreGenerator->__construct(object pocketmine\block\CoalOre)
#1 plugins/NexusPrison.phar/src/core/game/economy/EconomyManager(37): core\game\economy\EconomyManager->init()
#2 plugins/NexusPrison.phar/src/core/game/GameManager(76): core\game\economy\EconomyManager->__construct(object core\Nexus)
#3 plugins/NexusPrison.phar/src/core/game/GameManager(68): core\game\GameManager->init()
#4 plugins/NexusPrison.phar/src/core/Nexus(230): core\game\GameManager->__construct(object core\Nexus)
#5 src/plugin/PluginBase(144): core\Nexus->onEnable()
#6 src/plugin/PluginManager(373): pocketmine\plugin\PluginBase->onEnableStateChange(boolean 1)
#7 src/Server(1266): pocketmine\plugin\PluginManager->enablePlugin(object core\Nexus)
#8 src/Server(1028): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder)
#9 src/PocketMine(246): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[21] /home/servers/prison/, string[29] /home/servers/prison/plugins/)
#10 src/PocketMine(271): pocketmine\server()
#11 (11): require(string[65] phar:///home/servers/prison/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show