menu
#4219977 Undefined variable: members

Submitted by PocketMine-MP 3.12.1

General information

Version: 3.12.1
Git commit: ded45bdd
Plugin involvement: Direct
Report date: 2020-05-23 02:48:36 +0000 UTC

System Information

PHP version: 7.3.16
Operating system: linux
System banner: Linux 69479d6d-4ca1-4c54-bbb5-bb58d6e0c11e 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64

Error information

Warning: the KitMap plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: members
File: plugins/HardCore.phar/src/Factions/Task/Verification
Line: #43
Error level: ErrorException
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
              	  if($player->getInventory()->getItemInHand()->getId() === ItemIds::SUGAR){
foreach(Loader::getArea()->getOnlinesM($player->getMyFaction()) as $onlines){
if($members->distanceSquared($player) < 250){
$members->addEffect(new EffectInstance(Effect::getEffect(Effect::SPEED), 20 * 5, 1));
}
}
}
if($player->getInventory()->getItemInHand()->getId() === ItemIds::IRON_INGOT){
foreach(Loader::getArea()->getOnlinesM($player->getMyFaction()) as $onlines){
if($members->distanceSquared($player) < 250){
$members->addEffect(new EffectInstance(Effect::getEffect(Effect::DAMAGE_RESISTANCE), 20 * 5, 1));
}
}
}
if($player->getInventory()->getItemInHand()->getId() === ItemIds::SUGAR){
foreach(Loader::getArea()->getOnlinesM($player->getMyFaction()) as $onlines){
if($members->distanceSquared($player) < 250){
$members->addEffect(new EffectInstance(Effect::getEffect(Effect::SPEED), 20 * 5, 3));
}
}
#0 plugins/HardCore.phar/src/Factions/Task/Verification(43): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[27] Undefined variable: members, string[79] phar:///home/container/plugins/HardCore.phar/src/Factions/Task/Verification.php, integer 43, array[3])
#1 src/pocketmine/scheduler/TaskHandler(134): Factions\Task\Verification->onRun(integer 761)
#2 src/pocketmine/scheduler/TaskScheduler(176): pocketmine\scheduler\TaskHandler->run(integer 761)
#3 src/pocketmine/plugin/PluginManager(643): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 761)
#4 src/pocketmine/Server(2380): pocketmine\plugin\PluginManager->tickSchedulers(integer 761)
#5 src/pocketmine/Server(2143): pocketmine\Server->tick()
#6 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1584): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#9 src/pocketmine/PocketMine(295): pocketmine\server()
#10 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show