menu
#4656836 file_get_contents(): failed to open stream: phar error: "resources/vanilla/r16_to_current_item_map.json" is not a file in phar "/home/container/PocketMine-MP.phar"

Submitted by PocketMine-MP 4.0.0+dev

General information

Version: 4.0.0+dev
Git commit: af1fe7c2
Plugin involvement: Indirect
Report date: 2020-11-21 23:33:52 +0000 UTC

System Information

PHP version: 7.4.11
Operating system: linux
System banner: Linux 0b7c64dd-b4aa-45c2-8fa4-8108be3fbfc4 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64

Error information

Warning: the EmperialsSky plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Message: file_get_contents(): failed to open stream: phar error: "resources/vanilla/r16_to_current_item_map.json" is not a file in phar "/home/container/PocketMine-MP.phar"
File: src/network/mcpe/convert/ItemTranslator
Line: #66
Error level: ErrorException
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
	private $complexCoreToNetMapping = [];
/**
* [internalId, metadata] = array[runtimeId]
* @var int[][]
* @phpstan-var array<int, array{int, int}>
*/
private $complexNetToCoreMapping = [];

private static function make() : self{
$data = file_get_contents(\pocketmine\RESOURCE_PATH . '/vanilla/r16_to_current_item_map.json');
if($data === false) throw new AssumptionFailedError("Missing required resource file");
$json = json_decode($data, true);
if(!is_array($json) or !isset($json["simple"], $json["complex"]) || !is_array($json["simple"]) || !is_array($json["complex"])){
throw new AssumptionFailedError("Invalid item table format");
}

$legacyStringToIntMapRaw = file_get_contents(\pocketmine\RESOURCE_PATH . '/vanilla/item_id_map.json');
if($legacyStringToIntMapRaw === false){
throw new AssumptionFailedError("Missing required resource file");
}
#0 (): pocketmine\errorhandler\ErrorToExceptionHandler::handle(integer 2, string[252] file_get_contents(phar:///home/container/PocketMine-MP.phar/resources//vanilla/r, string[85] phar:///home/container/PocketMine-MP.phar/src/network/mcpe/convert/ItemTranslato, integer 66, array[0])
#1 src/network/mcpe/convert/ItemTranslator(66): file_get_contents(string[89] phar:///home/container/PocketMine-MP.phar/resources//vanilla/r16_to_current_item)
#2 src/utils/SingletonTrait(36): pocketmine\network\mcpe\convert\ItemTranslator::make()
#3 plugins/EmperialsSky_v3.1.0.phar/src/emperialspe/skyblock/item/Items(111): pocketmine\network\mcpe\convert\ItemTranslator::getInstance()
#4 plugins/EmperialsSky_v3.1.0.phar/src/emperialspe/skyblock/item/Items(48): emperialspe\skyblock\item\Items::registerCustomItem(string[23] emperialspe:stone_crook, object emperialspe\skyblock\item\Crook)
#5 plugins/EmperialsSky_v3.1.0.phar/src/emperialspe/skyblock/EmperialsSky(101): emperialspe\skyblock\item\Items::init()
#6 src/plugin/PluginBase(144): emperialspe\skyblock\EmperialsSky->onEnable()
#7 src/plugin/PluginManager(373): pocketmine\plugin\PluginBase->onEnableStateChange(boolean 1)
#8 src/Server(1266): pocketmine\plugin\PluginManager->enablePlugin(object emperialspe\skyblock\EmperialsSky)
#9 src/Server(1028): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder)
#10 src/PocketMine(246): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#11 src/PocketMine(271): pocketmine\server()
#12 (11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show