menu
#4550291 Call to undefined method neocraft\FactionsPlayer::getArmorIventory()

Submitted by PocketMine-MP 3.15.0

General information

Version: 3.15.0
Git commit: a498b041
Plugin involvement: Direct
Report date: 2020-09-26 17:36:29 +0000 UTC

System Information

PHP version: 7.3.16
Operating system: linux
System banner: Linux d69d31d2-bbbb-4607-b8c2-f894ebfa7a48 4.4.0-157-generic #185-Ubuntu SMP Tue Jul 23 09:17:01 UTC 2019 x86_64

Error information

Warning: the NeoCraftHCF plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method neocraft\FactionsPlayer::getArmorIventory()
File: plugins/HCF.phar/src/neocraft/listener/FactionListener
Line: #87
Error level: Error
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
    }

public function onQuit(PlayerQuitEvent $event){
$event->getPlayer()->savePvPTimer();
if($event->getPlayer()->logout){
$nbt = Entity::createBaseNBT(new Vector3($event->getPlayer()->x,$event->getPlayer()->y+0.1,$event->getPlayer()->z), null, $event->getPlayer()->yaw, $event->getPlayer()->pitch);
$nbt->setString("Jugador", $event->getPlayer()->getName());
$nbt->setString("Faction", $event->getPlayer()->getFaction());
$nbt->setString("Inv", Main::write($event->getPlayer()->getInventory()));
$nbt->setString("Armor", Main::write($event->getPlayer()->getArmorIventory(), "Armor"));
file_put_contents($this->plugin->getDataFolder() . "inventories" . DIRECTORY_SEPARATOR . $event->getPlayer()->getLowerCaseName() . ".nbt", Main::write($event->getPlayer()->getInventory()));
$logout = Entity::createEntity("Logout", $event->getPlayer()->getLevel(), $nbt);
$logout->setNameTag("§cLogout");
$logout->setMaxHealth(150);
$logout->setHealth(150);
$logout->spawnToAll();
$event->getPlayer()->getInventory()->clearAll();
$event->getPlayer()->getArmorInventory()->clearAll();
}
}
#0 src/pocketmine/plugin/MethodEventExecutor(42): neocraft\listener\FactionListener->onQuit(object pocketmine\event\player\PlayerQuitEvent)
#1 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object neocraft\listener\FactionListener, object pocketmine\event\player\PlayerQuitEvent)
#2 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent)
#3 src/pocketmine/Player(3638): pocketmine\event\Event->call()
#4 src/pocketmine/network/mcpe/RakLibInterface(122): pocketmine\Player->close(object pocketmine\lang\TranslationContainer, string[17] client disconnect)
#5 vendor/pocketmine/raklib/src/server/ServerHandler(131): pocketmine\network\mcpe\RakLibInterface->closeSession(string[19] 186.4.166.105 35135, string[17] client disconnect)
#6 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
#7 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
#8 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
#9 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#10 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1601141789.5127)
#11 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#12 src/pocketmine/Server(1588): pocketmine\Server->start()
#13 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#14 src/pocketmine/PocketMine(304): pocketmine\server()
#15 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies