menu
#4873651 Call to undefined method pocketmine\command\ConsoleCommandSender::getInventory()

Submitted by PocketMine-MP 3.18.0

General information

Version: 3.18.0
Git commit: 3f649062
Plugin involvement: Direct
Report date: 2021-04-07 19:49:14 +0000 UTC
Server uptime: 0 days 2 hours 42 minutes 52 seconds

System Information

PHP version: 7.4.15
Operating system: linux
System banner: Linux 03e4f903-6dd1-422b-af9b-efe617556c6b 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: the Unknown plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method pocketmine\command\ConsoleCommandSender::getInventory()
File: plugins/EvilCoreOficial.phar/src/VitalHCF/commands/FixCommand
Line: #70
Error level: Error
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
							}
}
}
$sender->sendMessage(str_replace(["&", "{playerName}"], ["ยง", $player->getName()], Loader::getConfiguration("messages")->get("player_fix_other_player_correctly")));
}else{
if(!$sender->hasPermission("fixall.command.use")){
$sender->sendMessage(TE::RED."You have not permissions to use this command");
return;
}
foreach($sender->getInventory()->getContents() as $id => $item){
if($item instanceof Tool or $item instanceof Armor){
if($item->getDamage() > 0){
$sender->getInventory()->setItem($id, $item->setDamage(0));
}
}
}
foreach($sender->getArmorInventory()->getContents() as $id => $item){
if($item instanceof Tool or $item instanceof Armor){
if($item->getDamage() > 0){
$sender->getArmorInventory()->setItem($id, $item->setDamage(0));
#0 pmsrc/src/pocketmine/command/SimpleCommandMap(248): VitalHCF\commands\FixCommand->execute(object pocketmine\command\ConsoleCommandSender, string[3] fix, array[1])
#1 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[7] fix all)
#2 pmsrc/src/pocketmine/Server(1422): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[7] fix all)
#3 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\Server->pocketmine\{closure}()
#4 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
#5 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1617824954.0169)
#6 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#7 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#8 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#9 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#10 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show