menu
#5037722 Undefined variable: player

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-21 21:51:45 +0000 UTC
Server uptime: 0 days 0 hours 40 minutes 30 seconds

System Information

PHP version: 7.4.21
Operating system: linux
System banner: Linux ce97a4dd-070d-402c-b64b-3b8a97373293 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: the ClassyHCF plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: player
File: plugins/ClassyHCF_v2.0.3.phar/src/VitalHCF/Task/event/KothTask
Line: #73
Error level: ErrorException
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
            }
}
if($koth->getKothTime() === 0){
if(empty($koth->getCapturer())) return;

CrateManager::giveKey($koth->getCapturer(), "Koth", rand(1, 3));

Loader::getInstance()->getServer()->broadcastMessage(str_replace(["&", "{kothName}", "{playerName}"], ["ยง", $koth->getName(), $koth->getCapturer()->getName()], Loader::getConfiguration("messages")->get("koth_is_captured")));

Factions::setPoints(Factions::getFaction($koth->getCapturer()), Factions::getPoints(Factions::getFaction($player->getName())) - 1);

# Webhook to send the message to discord
$message = $koth->getName()." KOTH was captured by ".$koth->getCapturer()->getName();
Loader::getInstance()->getServer()->getAsyncPool()->submitTask(new DiscordMessage(Loader::getDefaultConfig("URL"), $message, "Classy | Koth Information"));

$koth->setEnable(false);
Loader::getInstance()->getScheduler()->cancelTask($this->getTaskId());
}else{
$koth->setKothTime($koth->getKothTime() - 1);
}
#0 plugins/ClassyHCF_v2.0.3.phar/src/VitalHCF/Task/event/KothTask(73): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[26] Undefined variable: player, string[89] phar:///home/container/plugins/ClassyHCF_v2.0.3.phar/src/VitalHCF/Task/event/Kot, integer 73, array[2])
#1 pmsrc/src/pocketmine/scheduler/TaskHandler(137): VitalHCF\Task\event\KothTask->onRun(integer 48571)
#2 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 48571)
#3 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 48571)
#4 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 48571)
#5 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#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