menu
#9718638 Call to undefined method minijaham\PMEssentials\commands\SpawnCommand::getPlugin()

Submitted by PocketMine-MP 5.8.2

General information

Version: 5.8.2
Git commit: c3c81b09
Plugin involvement: Direct
Report date: 2023-12-03 04:55:59 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 4 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: Call to undefined method minijaham\PMEssentials\commands\SpawnCommand::getPlugin()
File: plugins/PMEssentials/src/commands/SpawnCommand
Line: #47
Type: Error
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
     * @param  string $commandLabel
* @param array $args
*
* @throws RuntimeException
*
* @return bool
*/
public function execute(CommandSender $sender, string $commandLabel, array $args): bool
{
$commands_config = $this->getPlugin()->getCommandsConfig();

if (!$sender instanceof Player) {
$sender->sendMessage(TextFormat::colorize($commands_config->getNested("execute-ingame")));
return true;
}
if (!$this->testPermission($sender)) {
$sender->sendMessage(TextFormat::colorize($commands_config->getNested("no-permission")));
return true;
}
try {
#0 pmsrc/src/command/SimpleCommandMap(212): minijaham\PMEssentials\commands\SpawnCommand->execute(object pocketmine\console\ConsoleCommandSender#44717, string[5] spawn, array[0])
#1 pmsrc/src/Server(1418): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\console\ConsoleCommandSender#44717, string[5] spawn)
#2 pmsrc/src/Server(1840): pocketmine\Server->dispatchCommand(object pocketmine\console\ConsoleCommandSender#44717, string[5] spawn)
#3 pmsrc/src/Server(1680): pocketmine\Server->tick()
#4 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#5 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\)
#6 pmsrc/src/PocketMine(364): pocketmine\server()
#7 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