menu
#9718660 Declaration of HCF\airdrop\FloatingText::initEntity(): void must be compatible with pocketmine\entity\Entity::initEntity(pocketmine\nbt\tag\CompoundTag $nbt): void

Submitted by PocketMine-MP 5.8.2

General information

Version: 5.8.2
Git commit: c3c81b09
Plugin involvement: Direct
Report date: 2023-12-03 05:01:05 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 34 seconds

System Information

PHP version: 8.1.26
JIT status: Not available
Operating system: linux
System banner: Linux 49ec092b-7a95-41ff-81d8-3dc85617f43c 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64

Error information

Warning: the HCF plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Declaration of HCF\airdrop\FloatingText::initEntity(): void must be compatible with pocketmine\entity\Entity::initEntity(pocketmine\nbt\tag\CompoundTag $nbt): void
File: plugins/HCF/src/HCF/airdrop/FloatingText
Line: #22
Type: E_COMPILE_ERROR
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
	public $width = 0;
public $height = 0;

/** @var int */
private int $seconds = 0;

/** @var int */
public const NETWORK_ID = self::NPC;

protected function initEntity() : void
{
$this->setScale(0.0001);
$this->setNameTagVisible();
$this->setNameTagAlwaysVisible();
$this->propertyManager->setFloat(self::DATA_BOUNDING_BOX_WIDTH, 0);
$this->propertyManager->setFloat(self::DATA_BOUNDING_BOX_HEIGHT, 0);
}

/**
* @param int $currentTick

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show