menu
#4550288 Tag with name "id" not found and no valid default value given

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: None
Report date: 2020-09-26 17:34:42 +0000 UTC

System Information

PHP version: 7.3.22
Operating system: linux
System banner: Linux volcania 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64

Error information

Message: Tag with name "id" not found and no valid default value given
File: vendor/pocketmine/nbt/src/tag/CompoundTag
Line: #178
Error level: RuntimeException
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
	 * @return mixed
*/
public function getTagValue(string $name, string $expectedClass, $default = null, bool $badTagDefault = false){
$tag = $this->getTag($name, $badTagDefault ? NamedTag::class : $expectedClass);
if($tag instanceof $expectedClass){
return $tag->getValue();
}

if($default === null){
throw new \RuntimeException("Tag with name \"$name\" " . ($tag !== null ? "not of expected type" : "not found") . " and no valid default value given");
}

return $default;
}

/*
* The following methods are wrappers around getTagValue() with type safety.
*/

public function getByte(string $name, ?int $default = null, bool $badTagDefault = false) : int{
#0 vendor/pocketmine/nbt/src/tag/CompoundTag(193): pocketmine\nbt\tag\CompoundTag->getTagValue(string[2] id, string[27] pocketmine\nbt\tag\ShortTag, NULL , boolean )
#1 src/pocketmine/item/Item(301): pocketmine\nbt\tag\CompoundTag->getShort(string[2] id)
#2 src/pocketmine/entity/Human(721): pocketmine\item\Item->hasEnchantment(integer 28)
#3 (): pocketmine\entity\Human->pocketmine\entity\{closure}(object pocketmine\item\DiamondHelmet)
#4 src/pocketmine/entity/Human(721): array_filter(array[33], object Closure)
#5 src/pocketmine/Player(1523): pocketmine\entity\Human->getDrops()
#6 src/pocketmine/Player(3786): pocketmine\Player->getDrops()
#7 src/pocketmine/entity/Living(605): pocketmine\Player->onDeath()
#8 src/pocketmine/Player(3776): pocketmine\entity\Living->kill()
#9 src/pocketmine/entity/Entity(983): pocketmine\Player->kill()
#10 src/pocketmine/entity/Living(145): pocketmine\entity\Entity->setHealth(double -1)
#11 src/pocketmine/entity/Entity(940): pocketmine\entity\Living->setHealth(double -1)
#12 src/pocketmine/entity/Living(545): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageEvent)
#13 src/pocketmine/Player(3873): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageEvent)
#14 src/pocketmine/entity/Living(776): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageEvent)
#15 src/pocketmine/entity/Living(699): pocketmine\entity\Living->onAirExpired()
#16 src/pocketmine/entity/Living(655): pocketmine\entity\Living->doAirSupplyTick(integer 1)
#17 src/pocketmine/entity/Human(627): pocketmine\entity\Living->entityBaseTick(integer 1)
#18 src/pocketmine/Player(1785): pocketmine\entity\Human->entityBaseTick(integer 1)
#19 src/pocketmine/level/Level(852): pocketmine\Player->onUpdate(integer 4764)
#20 src/pocketmine/level/Level(785): pocketmine\level\Level->actuallyDoTick(integer 4764)
#21 src/pocketmine/Server(2267): pocketmine\level\Level->doTick(integer 4764)
#22 src/pocketmine/Server(2398): pocketmine\Server->checkTickUpdates(integer 4764, double 1601141682.6487)
#23 src/pocketmine/Server(2154): pocketmine\Server->tick()
#24 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#25 src/pocketmine/Server(1588): pocketmine\Server->start()
#26 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /root/volcania/, string[23] /root/volcania/plugins/)
#27 src/pocketmine/PocketMine(304): pocketmine\server()
#28 (11): require(string[70] phar:///root/volcania/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies