menu
#5038464 Invalid argument supplied for foreach()

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-22 03:42:07 +0000 UTC
Server uptime: 0 days 0 hours 10 minutes 34 seconds

System Information

PHP version: 7.4.21
Operating system: linux
System banner: Linux 27b764d1-4e87-4207-a6d4-1d36be461500 4.9.0-16-amd64 #1 SMP Debian 4.9.272-1 (2021-06-21) x86_64

Error information

Warning: the OlympusNetwork plugin was directly involved in this crash. Please contact the plugin author.
Message: Invalid argument supplied for foreach()
File: plugins/Olympus Network.phar/src/VitalHCF/player/Player
Line: #1655
Error level: ErrorException
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
    

/**
* @return void
*/
public function addPermissionsPlayer() : void {
$permission = Loader::getInstance()->getPermission($this);
if($this->getRank() === "Guest"){
$file = Loader::getConfiguration("permissions");
foreach($file->get($this->getRank()) as $permissions){
$permission->setPermission($permissions, true);
}
}
if($this->getRank() === "Sr-Admin"){
$file = Loader::getConfiguration("permissions");
foreach($file->get($this->getRank()) as $permissions){
$permission->setPermission($permissions, true);
}
}
if($this->getRank() === "Admin"){
#0 plugins/Olympus Network.phar/src/VitalHCF/player/Player(1655): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[39] Invalid argument supplied for foreach(), string[82] phar:///home/container/plugins/Olympus Network.phar/src/VitalHCF/player/Player.p, integer 1655, array[2])
#1 plugins/Olympus Network.phar/src/VitalHCF/Task/asynctask/LoadPlayerData(86): VitalHCF\player\Player->addPermissionsPlayer()
#2 pmsrc/src/pocketmine/scheduler/AsyncPool(319): VitalHCF\Task\asynctask\LoadPlayerData->onCompletion(object pocketmine\Server)
#3 pmsrc/src/pocketmine/Server(2393): pocketmine\scheduler\AsyncPool->collectTasks()
#4 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#5 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#6 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#7 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#8 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#9 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show