menu
#4656967 Undefined variable: Online

Submitted by PocketMine-MP 3.15.4

General information

Version: 3.15.4
Git commit: e8b6b563
Plugin involvement: Direct
Report date: 2020-11-22 02:48:53 +0000 UTC

System Information

PHP version: 7.3.23
Operating system: linux
System banner: Linux 2e232fa8-951c-4f15-ab08-21da252bebb4 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: the Free_For_All plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: Online
File: plugins/FFA.phar/src/FFA/Task/TagTask
Line: #46
Error level: ErrorException
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
					$online=0;

foreach($this->plugin->players as $pl){
$online++;
}
$title = ["§d§lFFA §7[1.0.]", "§d§lFFA§7 [1.0]", "§d§lFFA§7 [1.0]"];
$titlerainbow = $title[array_rand($title)];
$entity->setScale(1.5);
$entity->setNameTagAlwaysVisible(true);
$entity->setNameTag($titlerainbow."\n".TE::GRAY."Online: ".TE::AQUA.$Online."\n"."§8§l»§l§aTocame para entrar§8 «");
$entity->addEffect(new EffectInstance(Effect::getEffect(Effect::SPEED), 99999999));
}
}
}
}
}
#0 plugins/FFA.phar/src/FFA/Task/TagTask(46): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[26] Undefined variable: Online, string[64] phar:///home/container/plugins/FFA.phar/src/FFA/Task/TagTask.php, integer 46, array[7])
#1 src/pocketmine/scheduler/TaskHandler(137): FFA\Task\TagTask->onRun(integer 8107)
#2 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 8107)
#3 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 8107)
#4 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 8107)
#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