menu
#6720312 Unsupported operand types: int * string

Submitted by PocketMine-MP 4.3.1

General information

Version: 4.3.1
Git commit: f7dce4af
Plugin involvement: Direct
Report date: 2022-05-14 10:21:08 +0000 UTC
Server uptime: 0 days 0 hours 3 minutes 8 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux 6711dfa4527d 5.4.0-47-generic #51-Ubuntu SMP Fri Sep 4 19:50:52 UTC 2020 x86_64

Error information

Warning: the CustomShopUI plugin was directly involved in this crash. Please contact the plugin author.
Message: Unsupported operand types: int * string
File: plugins/ShopUI-FormAPI-Working (2) (1).phar/src/AlexPads/CustomShopUI/Main
Line: #434
Error level: TypeError
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
                if (($this->getConfig()->get("Thanks")) === true) {
if ($data1 === null) {
$player->sendMessage($msg->getNested("Messages.Thanks2"));
} else {
$player->sendMessage($msg->getNested("Messages.Thanks"));
}
} else {
if ($data[1] == false) {
$economy = EconomyManager::get();
$economy->removeMoney($player, $list[3] * $data1, static function(bool $success) use($msg, $name, $data1, $list, $economy, $player) : void {
if($success){
if ($player === null){
$economy->addMoney($player, $list[3] * $data1);
}else{
$inventory = $player->getInventory();
if ($list[5] != "Default") {
$inventory->addItem(ItemFactory::getInstance()->get((int)$list[0], (int)$list[1], $data1)->setCustomName($list[5]));
} elseif ($list[5] == "Default") {
$inventory->addItem(ItemFactory::getInstance()->get((int)$list[0], (int)$list[1], $data1));
}
#0 plugins/ShopUI-FormAPI-Working (2) (1).phar/src/AlexPads/CustomShopUI/libs/Vecnavium/FormsUI/Form(46): AlexPads\CustomShopUI\Main->AlexPads\CustomShopUI\{closure}(object pocketmine\player\Player#30264, array[3])
#1 pmsrc/src/player/Player(2005): AlexPads\CustomShopUI\libs\Vecnavium\FormsUI\Form->handleResponse(object pocketmine\player\Player#30264, array[3])
#2 pmsrc/src/network/mcpe/handler/InGamePacketHandler(888): pocketmine\player\Player->onFormSubmit(integer 11, array[3])
#3 pmsrc/vendor/pocketmine/bedrock-protocol/src/ModalFormResponsePacket(46): pocketmine\network\mcpe\handler\InGamePacketHandler->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#124692)
#4 pmsrc/src/network/mcpe/NetworkSession(398): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#96872)
#5 pmsrc/src/network/mcpe/NetworkSession(361): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#124692, string[20] e..[null,false,"1"].)
#6 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[62] .I....+...IK.)N.Q2T..2.......eu..w..v......a{CC.....Q.Go... Q.)
#7 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[71] ..%#.E...z.~Nf4...}.A..B......5.O.y?.G....I....a.,....j...O......<...qu)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#28523)
#9 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#11 pmsrc/src/Server(1661): pocketmine\snooze\SleeperHandler->sleepUntil(double 1652523668.7931)
#12 pmsrc/src/Server(1047): pocketmine\Server->tickProcessor()
#13 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[20] /server/server-data/, string[28] /server/server-data/plugins/)
#14 pmsrc/src/PocketMine(327): pocketmine\server()
#15 pmsrc(11): require(string[54] phar:///server/jars/pmmp-4.3.1.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show