menu
#10625181 pocketmine\plugin\PluginManager::registerEvents(): Argument #1 ($listener) must be of type pocketmine\event\Listener, Heady\spawn\Main given, called in C:\Users\sevra\OneDrive\Bureau\DKPO\plugins\Spawn\src\Heady\spawn\main.php on line 12

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Indirect
Report date: 2024-04-03 05:36:04 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.2.17
JIT status: Not available
Operating system: win
System banner: Windows NT SACHA 10.0 build 22631 (Windows 11) AMD64

Error information

Warning: the spawn plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Thread: Main
Message: pocketmine\plugin\PluginManager::registerEvents(): Argument #1 ($listener) must be of type pocketmine\event\Listener, Heady\spawn\Main given, called in C:\Users\sevra\OneDrive\Bureau\DKPO\plugins\Spawn\src\Heady\spawn\main.php on line 12
File: pmsrc/src/plugin/PluginManager
Line: #591
Type: TypeError
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
		/** @var \ReflectionClass<Event> $eventClass */
return $eventClass->getName();
}

/**
* Registers all the events in the given Listener class
*
* @throws PluginException
*/
public function registerEvents(Listener $listener, Plugin $plugin) : void{
if(!$plugin->isEnabled()){
throw new PluginException("Plugin attempted to register " . get_class($listener) . " while not enabled");
}

$reflection = new \ReflectionClass(get_class($listener));
foreach($reflection->getMethods(\ReflectionMethod::IS_PUBLIC) as $method){
$tags = Utils::parseDocComment((string) $method->getDocComment());
if(isset($tags[ListenerMethodTags::NOT_HANDLER]) || ($eventClass = $this->getEventsHandledBy($method)) === null){
continue;
}
#0 plugins/Spawn/src/Heady/spawn/main(12): pocketmine\plugin\PluginManager->registerEvents(object Heady\spawn\Main#45294, object Heady\spawn\Main#45294)
#1 pmsrc/src/plugin/PluginBase(119): Heady\spawn\Main->onEnable()
#2 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#3 pmsrc/src/Server(1404): pocketmine\plugin\PluginManager->enablePlugin(object Heady\spawn\Main#45294)
#4 pmsrc/src/Server(1035): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#45247)
#5 pmsrc/src/PocketMine(350): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[36] C:\Users\sevra\OneDrive\Bureau\DKPO\, string[44] C:\Users\sevra\OneDrive\Bureau\DKPO\plugins\)
#6 pmsrc/src/PocketMine(373): pocketmine\server()
#7 pmsrc(11): require(string[80] phar://C:/Users/sevra/OneDrive/Bureau/DKPO/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show