menu
#4775811 Undefined variable: players

Submitted by PocketMine-MP 3.17.5

General information

Version: 3.17.5
Git commit: 3a0c8dd5
Plugin involvement: Direct
Report date: 2021-02-23 13:57:12 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 22 seconds

System Information

PHP version: 7.3.21
Operating system: linux
System banner: Linux 149df92b-0ea5-4176-9a66-8707a11d3396 4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021 x86_64

Error information

Warning: the Unknown plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: players
File: plugins/Galaxy (1).phar/src/VitalHCF/commands/KeyCommand
Line: #67
Error level: ErrorException
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
                }
if(!in_array($args[2], Crates::getCratesAvailable())){
$sender->sendMessage(TE::RED."The key you are entering does not exist. ".TE::YELLOW."(Mythic, Xtreme, Cosmic, Netherite)");
return;
}
if($args[1] == "all"){
foreach(Loader::getInstance()->getServer()->getOnlinePlayers() as $players){
Crates::giveKey($players, $args[2], $args[3], $sender->getName());
}
$players->sendMessage(TE::GOLD."You receive a key ".Crates::getKeyName($args[2]));
return;
}
$player = Loader::getInstance()->getServer()->getPlayer($args[1]);
if($player === null){
$sender->sendMessage(TE::RED."This player is offline!");
return;
}
Crates::giveKey($player, $args[2], $args[3], $sender->getName());
$player->sendMessage(TE::GOLD."You receive a key ".Crates::getKeyName($args[2]));
break;
#0 plugins/Galaxy (1).phar/src/VitalHCF/commands/KeyCommand(67): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[27] Undefined variable: players, string[83] phar:///home/container/plugins/Galaxy (1).phar/src/VitalHCF/commands/KeyCommand., integer 67, array[3])
#1 pmsrc/src/pocketmine/command/SimpleCommandMap(248): VitalHCF\commands\KeyCommand->execute(object pocketmine\command\ConsoleCommandSender, string[3] key, array[4])
#2 pmsrc/src/pocketmine/Server(1810): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[24] key give all Ability 100)
#3 pmsrc/src/pocketmine/Server(1422): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[24] key give all Ability 100)
#4 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\Server->pocketmine\{closure}()
#5 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
#6 pmsrc/src/pocketmine/Server(2156): pocketmine\snooze\SleeperHandler->sleepUntil(double 1614088632.1793)
#7 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
#8 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
#9 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#10 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#11 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show