public function removeMetadata($metadataKey, Plugin $plugin) { if ($this->getLevel() instanceof Level) { $this->getLevel()->getBlockMetadata()->removeMetadata($this, $metadataKey, $plugin); } }