menu
#9718626 floor(): Argument #1 ($num) must be of type int|float, string given

Submitted by PocketMine-MP 5.8.2

General information

Version: 5.8.2
Git commit: c3c81b09
Plugin involvement: Direct
Report date: 2023-12-03 04:53:48 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 10 seconds

System Information

PHP version: 8.1.26
JIT status: Not available
Operating system: linux
System banner: Linux 4759.node.apexhosting.gdn 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64

Error information

Warning: the HubSpawn plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: floor(): Argument #1 ($num) must be of type int|float, string given
File: plugins/HubSpawn-master/src/PedhotDev/HubSpawn/Main
Line: #62
Type: TypeError
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
        }
return $world->getSpawnLocation();
}

public function setHub(Position $position): bool {
$this->data->set("hub", [
"x" => floor($position->getX()),
"y" => floor($position->getY()),
"z" => floor($position->getZ()),
"world" => floor($position->getWorld()->getFolderName()),
]);
return true;
}

public function setSpawnPoint(Position $position): bool {
$position->getWorld()->setSpawnLocation($position->asVector3());
return true;
}

}
#0 plugins/HubSpawn-master/src/PedhotDev/HubSpawn/Main(62): floor(string[5] earth)
#1 plugins/HubSpawn-master/src/PedhotDev/HubSpawn/commands/AdminCommand(33): PedhotDev\HubSpawn\Main->setHub(object pocketmine\world\Position#138979)
#2 pmsrc/src/command/SimpleCommandMap(212): PedhotDev\HubSpawn\commands\AdminCommand->execute(object pocketmine\player\Player#96919, string[8] hubspawn, array[1])
#3 pmsrc/src/Server(1418): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#96919, string[12] hubspawn hub)
#4 pmsrc/src/player/Player(1512): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#96919, string[12] hubspawn hub)
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(826): pocketmine\player\Player->chat(string[13] /hubspawn hub)
#6 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#138991)
#7 pmsrc/src/network/mcpe/NetworkSession(445): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#141107)
#8 pmsrc/src/network/mcpe/NetworkSession(383): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#138991, string[35] M./hubspawn hub.M@^.d./.MU....T...H)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[82] S....(M*.H,.S.2.|......o..=...>.....f.c........O.b./.=.tW.. .........s.8z....R.0)
#10 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[91] .$.....3.%/Fx.S0.bY-...J.K.A.....(..k..Rx..X&rg......PFe..g..6.8h~.O.'i.E...\7.t)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#188293)
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#13 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#15 pmsrc/src/Server(1683): pocketmine\snooze\SleeperHandler->sleepUntil(float 1701579228.8161)
#16 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[68] /home/minecraft/multicraft/servers/server2098033/default/pocketmine/, string[76] /home/minecraft/multicraft/servers/server2098033/default/pocketmine/plugins/)
#18 pmsrc/src/PocketMine(364): pocketmine\server()
#19 pmsrc(11): require(string[117] phar:///home/minecraft/multicraft/servers/server2098033/default/pocketmine/jar/p)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show