menu
#4550341 Undefined variable: faction

Submitted by PocketMine-MP 3.15.0

General information

Version: 3.15.0
Git commit: a498b041
Plugin involvement: Direct
Report date: 2020-09-26 18:08:48 +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: Undefined variable: faction
File: plugins/HCF.phar/src/neocraft/tasks/InviteTask
Line: #38
Error level: ErrorException
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
		if(!$this->faction instanceof Faction){
$this->plugin->getScheduler()->cancelTask($this->getTaskId());
}
if(!$player instanceof FactionsPlayer){
$this->plugin->getScheduler()->cancelTask($this->getTaskId());
}
if(!$player->isOnline()){
$this->plugin->getScheduler()->cancelTask($this->getTaskId());
}
if(!$faction->isInvited($player)){
$this->plugin->getScheduler()->cancelTask($this->getTaskId());
}
if($this->time-- <= 0) {
$this->faction->removeInvite($player);
$player->sendMessage(Main::getPrefix("§a§lInvitation")."§cYour Invite too §6".$this->faction->getName()." §chas expired!");
$this->plugin->getScheduler()->cancelTask($this->getTaskId());
}
}

}
#0 plugins/HCF.phar/src/neocraft/tasks/InviteTask(38): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[27] Undefined variable: faction, string[73] phar:///home/container/plugins/HCF.phar/src/neocraft/tasks/InviteTask.php, integer 38, array[2])
#1 src/pocketmine/scheduler/TaskHandler(137): neocraft\tasks\InviteTask->onRun(integer 6357)
#2 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 6357)
#3 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 6357)
#4 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 6357)
#5 src/pocketmine/Server(2154): pocketmine\Server->tick()
#6 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1588): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#9 src/pocketmine/PocketMine(304): pocketmine\server()
#10 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies