menu
#2387632 Call to a member function getInventory() on null

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-05-15 19:57:46 +0000 UTC

System Information

PHP version: 7.2.8
Operating system: linux
System banner: Linux 3bf46a748270 4.9.144-xxxx-std-ipv6-64 #494761 SMP Mon Dec 10 14:02:48 UTC 2018 x86_64

Error information

Warning: the Kohi1v1 plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getInventory() on null
File: plugins/Kohi1v1/src/SavionLegends/Kohi1v1/game/KohiClass
Line: #242
Error level: Error
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252

public function end(){
if(isset(Utils::$tasks[$this->getName()])){
$this->getPlugin()->getScheduler()->cancelTask(Utils::$tasks[$this->getName()]);
unset(Utils::$tasks[$this->getName()]);
}
if(count($this->getPlayers()) !== 0){
foreach($this->getPlayers() as $name){
$player = $this->getServer()->getPlayer($name);
$player->getInventory()->clearAll();
$player->setHealth($player->getMaxHealth());
$this->removePlayer($player);
}
}
$this->status = GameClass::WAITING;
$this->time = 15;
$this->players = [];
$this->tempPos = 0;
}

#0 plugins/Kohi1v1/src/SavionLegends/Kohi1v1/tasks/KohiTask(110): SavionLegends\Kohi1v1\game\KohiClass->end()
#1 src/pocketmine/scheduler/TaskHandler(159): SavionLegends\Kohi1v1\tasks\KohiTask->onRun(integer 1313)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1313)
#3 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1313)
#4 src/pocketmine/Server(2558): pocketmine\plugin\PluginManager->tickSchedulers(integer 1313)
#5 src/pocketmine/Server(2334): pocketmine\Server->tick()
#6 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1774): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/minecraft/multicraft/servers/server55421/, string /home/minecraft/multicraft/servers/server55421/plugins/)
#9 (1): require(string phar:///home/minecraft/multicraft/servers/server55421/PMMP-Latest-Stable.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show