menu
#3979389 Argument 2 passed to pocketmine\nbt\tag\DoubleTag::__construct() must be of the type float, string given

Submitted by PocketMine-MP 3.11.4

General information

Version: 3.11.4
Git commit: 13f28d84
Plugin involvement: None
Report date: 2020-03-25 11:44:57 +0000 UTC

System Information

PHP version: 7.3.7
Operating system: android
System banner: Linux localhost 3.18.71-perf-g2211f76 #1 SMP PREEMPT Fri Nov 8 14:43:26 WIB 2019 aarch64

Error information

Message: Argument 2 passed to pocketmine\nbt\tag\DoubleTag::__construct() must be of the type float, string given
File: vendor/pocketmine/nbt/src/tag/DoubleTag
Line: #40
Error level: TypeError
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

class DoubleTag extends NamedTag{
/** @var float */
private $value;

/**
* @param string $name
* @param float $value
*/
public function __construct(string $name = "", float $value = 0.0){
parent::__construct($name);
$this->value = $value;
}

public function getType() : int{
return NBT::TAG_Double;
}

public function read(NBTStream $nbt, ReaderTracker $tracker) : void{
$this->value = $nbt->getDouble();
#0 src/pocketmine/entity/Entity(947): pocketmine\nbt\tag\DoubleTag->__construct(string[0] , string[4] Yok!)
#1 src/pocketmine/entity/Living(169): pocketmine\entity\Entity->saveNBT()
#2 src/pocketmine/entity/Human(786): pocketmine\entity\Living->saveNBT()
#3 src/pocketmine/Player(3767): pocketmine\entity\Human->saveNBT()
#4 src/pocketmine/Player(3680): pocketmine\Player->save()
#5 src/pocketmine/network/mcpe/RakLibInterface(176): pocketmine\Player->close(object pocketmine\lang\TranslationContainer, string[21] Internal server error)
#6 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 192.168.43.74 41555, object raklib\protocol\EncapsulatedPacket, integer 0)
#7 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
#8 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
#9 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
#10 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#11 src/pocketmine/Server(2406): pocketmine\snooze\SleeperHandler->sleepUntil(double 1585136697.7975)
#12 src/pocketmine/Server(2250): pocketmine\Server->tickProcessor()
#13 src/pocketmine/Server(1811): pocketmine\Server->start()
#14 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] /storage/emulated/0/PocketMine-MP/, string[42] /storage/emulated/0/PocketMine-MP/plugins/)
#15 src/pocketmine/PocketMine(297): pocketmine\server()
#16 (1): require(string[89] phar:///storage/emulated/0/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/Pocke)

Loaded Plugins

  • Show

Server Settings

  • Show