menu
#4550331 Undefined property: neocraft\tasks\InviteTask::$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 17:58:35 +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 property: neocraft\tasks\InviteTask::$faction
File: plugins/HCF.phar/src/neocraft/tasks/InviteTask
Line: #26
Error level: ErrorException
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

public function __construct(Main $main, FactionsPlayer $player, Faction $faction) {
$this->plugin = $main;
$this->player = $player;
$main->getScheduler()->scheduleRepeatingTask($this, 20);
}

public function onRun(int $currentTick) {
$player = $this->player;
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());
#0 plugins/HCF.phar/src/neocraft/tasks/InviteTask(26): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[55] Undefined property: neocraft\tasks\InviteTask::$faction, string[73] phar:///home/container/plugins/HCF.phar/src/neocraft/tasks/InviteTask.php, integer 26, array[2])
#1 src/pocketmine/scheduler/TaskHandler(137): neocraft\tasks\InviteTask->onRun(integer 22846)
#2 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 22846)
#3 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 22846)
#4 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 22846)
#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