menu
#4220976 Undefined variable: gold

Submitted by PocketMine-MP 3.12.2

General information

Version: 3.12.2
Git commit: 9b6b3f50
Plugin involvement: Direct
Report date: 2020-05-23 07:41:41 +0000 UTC

System Information

PHP version: 7.3.18
Operating system: linux
System banner: Linux minecraft 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64

Error information

Warning: the Wormhole plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: gold
File: plugins/Wormhole.phar/src/cyphrex/Wormhole/Status
Line: #29
Error level: ErrorException
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
		$tps = $this->instance->getServer()->getTicksPerSecond();
$online = count($this->instance->getServer()->getOnlinePlayers());
$maxonline = $this->instance->getServer()->getMaxPlayers();

foreach($this->instance->getServer()->getLevels() as $level) {
foreach ($level->getPlayers() as $player) {
$gamemode = ["S", "C", "A"][$player->getGamemode()];
$world = $player->getLevel()->getName() . " ($gamemode)";

$status = "§d$world $d §6Gold§f $gold $d §cMobs§f $mobs $d §aOn§f $online";

if ($player->getGamemode() == 0 || $player->getGamemode() == 2)
$status .= "\n ";

$player->sendPopup($status);

$name = $player->getName();
$health = (new Players)->getHealthTag($player->getHealth(), $player->getMaxHealth());
$player->setNameTag("$name\n$health");
}
#0 plugins/Wormhole.phar/src/cyphrex/Wormhole/Status(29): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[24] Undefined variable: gold, string[81] phar:///root/minecraft/pmmp/plugins/Wormhole.phar/src/cyphrex/Wormhole/Status.ph, integer 29, array[8])
#1 plugins/Wormhole.phar/src/cyphrex/Wormhole/Schedule(19): cyphrex\Wormhole\Status->statusBar()
#2 src/pocketmine/scheduler/TaskHandler(134): cyphrex\Wormhole\Schedule->onRun(integer 101)
#3 src/pocketmine/scheduler/TaskScheduler(176): pocketmine\scheduler\TaskHandler->run(integer 101)
#4 src/pocketmine/plugin/PluginManager(643): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 101)
#5 src/pocketmine/Server(2380): pocketmine\plugin\PluginManager->tickSchedulers(integer 101)
#6 src/pocketmine/Server(2143): pocketmine\Server->tick()
#7 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1584): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[21] /root/minecraft/pmmp/, string[29] /root/minecraft/pmmp/plugins/)
#10 src/pocketmine/PocketMine(295): pocketmine\server()
#11 (11): require(string[76] phar:///root/minecraft/pmmp/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show