menu
#10302470 Call to a member function setTime() on null

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Direct
Report date: 2024-02-12 18:35:08 +0000 UTC
Server uptime: 0 days 0 hours 32 minutes 37 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux fa55ccc7-2427-4ff7-aa40-578cb0f30467 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64

Error information

Warning: the HardCoreFactions plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to a member function setTime() on null
File: plugins/HCF 0.1/src/HCF/command/event/EventCommand
Line: #90
Type: Error
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
                        if($result === null){
return;
}
if(!in_array(Time::stringInputToStringFormat($result[0]), Time::formats)){
$player->sendMessage(TextHelper::replace(TextHelper::getMessageFile()->get("invalid-time-format"), [
"available_format(s)" => implode(", ", Time::formats),
]));
return;
}
$event->setTime(Time::stringFormatToFinalTime(Time::stringToInt($result[0]), $result[0]));
$event->setEnabled(true);
$event->doTick();
});
$customForm->setTitle(TextFormat::colorize('&4Keyall Manager'));
$customForm->addInput(TextHelper::replace("&r&aEnter the time&f:"), "&7Example&f:&7 1d, 1h, 1m");
$player->sendForm($customForm);
break;
case 2:
$event = EventHandler::getInstance()->getEventById(EventType::SOTW_EVENT);
$customForm = new CustomMenuForm(function(Player $player, mixed $result) use ($event) : void {
#0 plugins/HCF 0.1/src/HCF/api/form/IForm(47): HCF\command\event\EventCommand->HCF\command\event\{closure}(object HCF\player\Player#183358, array[1])
#1 pmsrc/src/player/Player(2139): HCF\api\form\IForm->handleResponse(object HCF\player\Player#183358, array[1])
#2 pmsrc/src/network/mcpe/handler/InGamePacketHandler(973): pocketmine\player\Player->onFormSubmit(int 9, array[1])
#3 pmsrc/vendor/pocketmine/bedrock-protocol/src/ModalFormResponsePacket(63): pocketmine\network\mcpe\handler\InGamePacketHandler->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#190813)
#4 pmsrc/src/network/mcpe/NetworkSession(462): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#190148)
#5 pmsrc/src/network/mcpe/NetworkSession(400): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#190813, string[12] e...["1h"]..)
#6 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[14] ..e...["1h"]..)
#7 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[23] .;. $..i....X....7....V)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#200701)
#9 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#11 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#13 pmsrc/src/Server(1699): pocketmine\snooze\SleeperHandler->sleepUntil(float 1707762908.4707)
#14 pmsrc/src/Server(1067): pocketmine\Server->tickProcessor()
#15 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#16 pmsrc/src/PocketMine(364): pocketmine\server()
#17 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show