menu
#10302237 Invalid item entered in crafts/Botte en ┬žaAmethyste.json

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Direct
Report date: 2024-02-12 17:42:21 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 2 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux 6ed76141-b54b-460a-b8cd-07e87c9d83b3 5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64

Error information

Warning: the CreateCustomCraft plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Invalid item entered in crafts/Botte en ┬žaAmethyste.json
File: plugins/CreateCustomCraft.phar/src/azoxstoz/createcustomcraft/Main
Line: #108
Type: InvalidArgumentException
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
        $factory = StringToItemParser::getInstance();
foreach(array_diff(scandir($this->getDataFolder()."crafts"), ["..", "."]) as $path){
if($this->checkFileExtension($path)) {
$config = new Config($this->getDataFolder()."crafts/{$path}", Config::JSON);
$v = $config->getAll();
if($this->checkCraftingData($v)) {
$recipes = [];
foreach ($v['key'] as $k => $v2) {
if (!$factory->parse($v2['item']) instanceof Item) {
throw new InvalidArgumentException("Invalid item entered in crafts/{$path}");
}
}
$pattern = $v['pattern'];
foreach ($v['key'] as $letter => $keyData) {
if ($keyData['item'] === 'minecraft:air') {
foreach ($pattern as &$row) {
$row = str_replace($letter, ' ', $row);
}
} else {
$recipes[$letter] = new ExactRecipeIngredient($factory->parse($keyData['item']));
#0 plugins/CreateCustomCraft.phar/src/azoxstoz/createcustomcraft/Main(75): azoxstoz\createcustomcraft\Main->loadCraftingRecipes()
#1 pmsrc/src/plugin/PluginBase(119): azoxstoz\createcustomcraft\Main->onEnable()
#2 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#3 pmsrc/src/Server(1407): pocketmine\plugin\PluginManager->enablePlugin(object azoxstoz\createcustomcraft\Main#52520)
#4 pmsrc/src/Server(1036): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#45265)
#5 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#8, object pocketmine\utils\MainLogger#5, string[16] /home/container/, string[24] /home/container/plugins/)
#6 pmsrc/src/PocketMine(364): pocketmine\server()
#7 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show