menu
#7557620 A non-numeric value encountered

Submitted by PocketMine-MP 4.9.0

General information

Version: 4.9.0
Git commit: 785dc712
Plugin involvement: Direct
Report date: 2022-09-23 03:28:41 +0000 UTC
Server uptime: 0 days 7 hours 52 minutes 32 seconds

System Information

PHP version: 8.0.22
JIT status: Disabled
Operating system: linux
System banner: Linux fafe5cb6-64f1-473d-940e-13e04228d21d 5.4.0-124-generic #140-Ubuntu SMP Thu Aug 4 02:23:37 UTC 2022 x86_64

Error information

Warning: the Apuestas plugin was directly involved in this crash. Please contact the plugin author.
Message: A non-numeric value encountered
File: plugins/Apuestas_v0.1.0 (1).phar/src/Apuestas/ApuestaCommand
Line: #41
Error level: ErrorException
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
                $sender->sendMessage(TextFormat::colorize($this->main->replaceVars($this->main->getMessage("apuesta-perdida"), [
"PREFIX" => $this->main->getMessage("prefix"),
"DINERO" => "$args[0]"
])));
$this->main->removeMoney($sender, floatval($args[0]));
break;
case false:
$sender->sendMessage(TextFormat::colorize($this->main->replaceVars($this->main->getMessage("apuesta-ganada"), [
"PREFIX" => $this->main->getMessage("prefix"),
"CANTIDAD" => strval($args[0]*2)
])));
$this->main->addMoney($sender, $args[0]*2);
break;
}
$this->main->task->set($sender->getName(), $this->main->config->get("cooldown"));
$this->main->task->save();
} else {
$sender->sendMessage(TextFormat::colorize($this->main->replaceVars($this->main->getMessage("cooldown-activo"), [
"PREFIX" => $this->main->getMessage("prefix"),
"MINUTOS" => strval($minutes),
#0 plugins/Apuestas_v0.1.0 (1).phar/src/Apuestas/ApuestaCommand(41): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[31] A non-numeric value encountered, string[87] phar:///home/container/plugins/Apuestas_v0.1.0 (1).phar/src/Apuestas/ApuestaComm, int 41)
#1 pmsrc/src/command/SimpleCommandMap(205): Apuestas\ApuestaCommand->execute(object pocketmine\player\Player#3168817, string[2] cf, array[1])
#2 pmsrc/src/Server(1448): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#3168817, string[26] cf 0.929393939292)$("?"?$2)
#3 pmsrc/src/player/Player(1410): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#3168817, string[26] cf 0.929393939292)$("?"?$2)
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(754): pocketmine\player\Player->chat(string[27] /cf 0.929393939292)$("?"?$2)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#3407367)
#6 pmsrc/src/network/mcpe/NetworkSession(409): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#3343838)
#7 pmsrc/src/network/mcpe/NetworkSession(372): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#3407367, string[48] M./cf 0.929393939292)$("?"?$2.lL..F.!'.A........)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[48] 3...ONS0..4.4.C#K#M..%{%{.#.....n...'.7K........)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 684, string[57] ...DRB5.|.[..n4B... ..l..|.[.l#/f,?...$bd..........b.`...)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#2848350)
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#13 pmsrc/src/Server(1707): pocketmine\snooze\SleeperHandler->sleepUntil(float 1663903721.7977)
#14 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#15 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#16 pmsrc/src/PocketMine(328): pocketmine\server()
#17 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show