menu
#4218913 Unable to resolve "true" to a valid item

Submitted by PocketMine-MP 3.12.1

General information

Version: 3.12.1
Git commit: ded45bdd
Plugin involvement: Indirect
Report date: 2020-05-22 21:54:56 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: win
System banner: Windows NT RAWR-PROX 10.0 build 18363 (Windows 10) AMD64

Error information

Warning: the WorldProtect plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Message: Unable to resolve "true" to a valid item
File: src/pocketmine/item/ItemFactory
Line: #376
Error level: InvalidArgumentException
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
			}else{
throw new \InvalidArgumentException("Unable to parse \"" . $b[1] . "\" from \"" . $str . "\" as a valid meta value");
}

if(is_numeric($b[0])){
$item = self::get((int) $b[0], $meta);
}elseif(defined(ItemIds::class . "::" . strtoupper($b[0]))){
$item = self::get(constant(ItemIds::class . "::" . strtoupper($b[0])), $meta);
}else{
throw new \InvalidArgumentException("Unable to resolve \"" . $str . "\" to a valid item");
}

return $item;
}
}

/**
* Returns whether the specified item ID is already registered in the item factory.
*/
public static function isRegistered(int $id) : bool{
#0 src/pocketmine/item/Item(112): pocketmine\item\ItemFactory::fromString(string[4] true, boolean )
#1 plugins/WorldProtect.phar/src/aliuly/worldprotect/Unbreakable(61): pocketmine\item\Item::fromString(string[4] true)
#2 plugins/WorldProtect.phar/src/aliuly/worldprotect/common/SubCommandMap(48): aliuly\worldprotect\Unbreakable->onSCommand(object pocketmine\command\ConsoleCommandSender, integer 0, string[9] breakable, string[21] Island Resort [Hotel], array[1])
#3 plugins/WorldProtect.phar/src/aliuly/worldprotect/common/BasicPlugin(122): aliuly\worldprotect\common\SubCommandMap->dispatchSCmd(object pocketmine\command\ConsoleCommandSender, object pocketmine\command\PluginCommand, array[1], string[21] Island Resort [Hotel])
#4 plugins/WorldProtect.phar/src/aliuly/worldprotect/Main(235): aliuly\worldprotect\common\BasicPlugin->dispatchSCmd(object pocketmine\command\ConsoleCommandSender, object pocketmine\command\PluginCommand, array[2], string[21] Island Resort [Hotel])
#5 src/pocketmine/command/PluginCommand(54): aliuly\worldprotect\Main->onCommand(object pocketmine\command\ConsoleCommandSender, object pocketmine\command\PluginCommand, string[2] wp, array[2])
#6 src/pocketmine/command/SimpleCommandMap(248): pocketmine\command\PluginCommand->execute(object pocketmine\command\ConsoleCommandSender, string[2] wp, array[2])
#7 src/pocketmine/Server(1807): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[17] wp breakable true)
#8 src/pocketmine/Server(1419): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[17] wp breakable true)
#9 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#10 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#11 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1590184496.2981)
#12 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#13 src/pocketmine/Server(1584): pocketmine\Server->start()
#14 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[67] C:\Users\Rawr-ProX\Downloads\bedrock-server-1.14.60.5\PocketMineMP\, string[75] C:\Users\Rawr-ProX\Downloads\bedrock-server-1.14.60.5\PocketMineMP\plugins\)
#15 src/pocketmine/PocketMine(295): pocketmine\server()
#16 (11): require(string[122] phar://C:/Users/Rawr-ProX/Downloads/bedrock-server-1.14.60.5/PocketMineMP/Pocket)

Loaded Plugins

  • Show

Server Settings

  • Show