menu
#267 Typed property anmine\events\Event::$start must not be accessed before initialization

Submitted by PocketMine-MP 5.22.1+dev.2082

General information

Version: 5.22.1+dev.2082
Git commit: 422f7837
Plugin involvement: Direct
Report date: 2024-12-18 14:48:38 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 3 seconds

System Information

PHP version: 8.3.4
JIT status: Not available
Operating system: linux
System banner: Linux anmine.ru 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64

Error information

Warning: the AnEvents plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Typed property anmine\events\Event::$start must not be accessed before initialization
File: plugins/AnEvents/src/anmine/events/Event
Line: #32
Type: Error
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

public function canRun(): bool
{
return $this->start->getTimestamp() <= time() && $this->end->getTimestamp() >= time();
}

public function isStartSoon(): bool
{
$now = time();
$startTime = $this->start->getTimestamp();

return $startTime > $now && $startTime <= $now + 86400;
}

public function isRunning(): bool
{
return $this->isRunning;
}

public function setRunning(bool $isRunning): void
#0 plugins/AnEvents/src/anmine/events/EventsLoader(28): anmine\events\Event->isStartSoon()
#1 plugins/AnEvents/src/anmine/events/EventsLoader(17): anmine\events\EventsLoader->registerEvent(string[29] anmine\events\newyear\NYEvent)
#2 pmsrc/src/plugin/PluginBase(119): anmine\events\EventsLoader->onEnable()
#3 pmsrc/src/plugin/PluginManager(463): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#4 pmsrc/src/Server(1472): pocketmine\plugin\PluginManager->enablePlugin(object anmine\events\EventsLoader#77317)
#5 pmsrc/src/Server(1089): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#55895)
#6 pmsrc/src/PocketMine(355): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[27] /home/anupdate/servers/s99/, string[35] /home/anupdate/servers/s99/plugins/)
#7 pmsrc/src/PocketMine(378): pocketmine\server()
#8 /home/anupdate/servers/s99/InCore.phar(168): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPTQBUu0.tar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show