Code PHP: Codepublic function __construct(Loader $plugin, Block $block){$plugin->getServer()->getLogger()->notice('ORTask listener called');$this->plugin = $plugin;$this->block = $block; Error PHP: 11.01 15:28:15 [Server] Server thread/CRITICAL ArgumentCountError: "Too few arguments to function Core\Tasks\ORTask::__construct(), 1 passed in /plugins/Immensecore/src/Core/Loader.php on line 71 and exactly 2 expected" (EXCEPTION) in "Immensecore/src/Core/Tasks/ORTask" at line 14 Any help will be greatly appreciated!
You are looking at the wrong place. ORTask.php#14 is the place you define the function. Loader.php#71 is the place you call the constructor function. If you don't need the arguments, change ORTask.php#14 to remove the unneeded arguments. If you don't pass enough arguments, change Loader.php#71 to add the required arguments.