menu
#9718770 minijaham\PMEssentials\commands\SpawnCommand::__construct(): Argument #1 ($plugin) must be of type minijaham\PMEssentials\Loader, minijaham\PMEssentials\managers\CommandManager given, called in E:\PocketMine-MP LAN Servers\Commissions\plugins\PMEssentials\src\managers\CommandManager.php on line 41

Submitted by PocketMine-MP 5.8.2

General information

Version: 5.8.2
Git commit: c3c81b09
Plugin involvement: Direct
Report date: 2023-12-03 05:25:38 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.1.24
JIT status: Not available
Operating system: win
System banner: Windows NT DESKTOP-QL64HUC 10.0 build 19045 (Windows 10) AMD64

Error information

Warning: the PMEssentials plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: minijaham\PMEssentials\commands\SpawnCommand::__construct(): Argument #1 ($plugin) must be of type minijaham\PMEssentials\Loader, minijaham\PMEssentials\managers\CommandManager given, called in E:\PocketMine-MP LAN Servers\Commissions\plugins\PMEssentials\src\managers\CommandManager.php on line 41
File: plugins/PMEssentials/src/commands/SpawnCommand
Line: #27
Type: TypeError
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
use minijaham\PMEssentials\Loader;

final class SpawnCommand extends Command implements PluginOwned
{
/**
* SpawnCommand Constructor
*
* @param Loader $plugin
*/
public function __construct(
private Loader $plugin
) {
parent::__construct("spawn", "Teleport to Spawn!", "/spawn");
$this->setPermission("pmessentials.spawn");
}

/**
* Execute Function
*
* @param CommandSender $sender
#0 plugins/PMEssentials/src/managers/CommandManager(41): minijaham\PMEssentials\commands\SpawnCommand->__construct(object minijaham\PMEssentials\managers\CommandManager#44812)
#1 plugins/PMEssentials/src/managers/CommandManager(28): minijaham\PMEssentials\managers\CommandManager->initialize()
#2 plugins/PMEssentials/src/Loader(42): minijaham\PMEssentials\managers\CommandManager->__construct(object minijaham\PMEssentials\Loader#44800)
#3 pmsrc/src/plugin/PluginBase(119): minijaham\PMEssentials\Loader->onEnable()
#4 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#5 pmsrc/src/Server(1391): pocketmine\plugin\PluginManager->enablePlugin(object minijaham\PMEssentials\Loader#44800)
#6 pmsrc/src/Server(1034): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#44764)
#7 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[41] E:\PocketMine-MP LAN Servers\Commissions\, string[49] E:\PocketMine-MP LAN Servers\Commissions\plugins\)
#8 pmsrc/src/PocketMine(364): pocketmine\server()
#9 pmsrc(11): require(string[85] phar://E:/PocketMine-MP LAN Servers/Commissions/PocketMine-MP.phar/src/PocketMin)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show