menu
#2387519 Invalid argument supplied for foreach()

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-05-15 18:33:55 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux Server 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1 (2019-04-12) x86_64

Error information

Warning: the AdvancedJoin plugin was directly involved in this crash. Please contact the plugin author.
Message: Invalid argument supplied for foreach()
File: plugins/AdvancedJoin.phar/src/tim03we/advancedjoin/AdvancedJoin
Line: #51
Error level: ErrorException
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
        $name = $player->getName();
$playerrep = $name;
$getarray = array();
if($settings->get("Spawn-Point") == "") {
$this->getLogger()->debug("Since no spawn point was set in the config, the player is not teleported.");
} else {
$this->getServer()->loadLevel($settings->get("Spawn-Point"));
$player->teleport($this->getServer()->getLevelByName($settings->get("Spawn-Point"))->getSafeSpawn());
}
foreach($settings->get("Commands") as $command) {
Server::getInstance()->dispatchCommand(new ConsoleCommandSender(), $this->convert($command, $playerrep));
}
if($settings->get("Invetory-Clear") == "true") {
$player->getInventory()->clearAll();
} else if($settings->get("Health") == "true") {
$player->setHealth(20);
} else if($settings->get("Feed") == "true") {
$player->setFood(20);
} else if($settings->get("Welcome-Message" == "")) {
$this->getLogger()->debug("The player will not receive a welcome message because none has been set in the config.");
#0 plugins/AdvancedJoin.phar/src/tim03we/advancedjoin/AdvancedJoin(51): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string Invalid argument supplied for foreach(), string phar:///home/gungame/plugins/AdvancedJoin.phar/src/tim03we/advancedjoin/AdvancedJoin.php, integer 51, array Array())
#1 src/pocketmine/plugin/MethodEventExecutor(38): tim03we\advancedjoin\AdvancedJoin->onJoin(pocketmine\event\player\PlayerJoinEvent object)
#2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(tim03we\advancedjoin\AdvancedJoin object, pocketmine\event\player\PlayerJoinEvent object)
#3 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerJoinEvent object)
#4 src/pocketmine/Player(1082): pocketmine\event\Event->call()
#5 plugins/SynapsePM_dev-9.phar/src/synapsepm/Player(229): pocketmine\Player->doFirstSpawn()
#6 plugins/SynapsePM_dev-9.phar/src/synapsepm/Player(118): synapsepm\Player->completeLoginSequence()
#7 plugins/SynapsePM_dev-9.phar/src/synapsepm/Player(138): synapsepm\Player->processPacket(pocketmine\network\mcpe\protocol\ResourcePacksInfoPacket object)
#8 src/pocketmine/Player(3197): synapsepm\Player->sendDataPacket(pocketmine\network\mcpe\protocol\ResourcePacksInfoPacket object, boolean , boolean )
#9 src/pocketmine/Player(2052): pocketmine\Player->dataPacket(pocketmine\network\mcpe\protocol\ResourcePacksInfoPacket object)
#10 src/pocketmine/Player(1994): pocketmine\Player->processLogin()
#11 src/pocketmine/network/mcpe/VerifyLoginTask(166): pocketmine\Player->onVerifyCompleted(pocketmine\network\mcpe\protocol\LoginPacket object, NULL , boolean 1)
#12 src/pocketmine/scheduler/AsyncPool(319): pocketmine\network\mcpe\VerifyLoginTask->onCompletion(pocketmine\Server object)
#13 src/pocketmine/Server(2562): pocketmine\scheduler\AsyncPool->collectTasks()
#14 src/pocketmine/Server(2334): pocketmine\Server->tick()
#15 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#16 src/pocketmine/Server(1774): pocketmine\Server->start()
#17 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gungame/, string /home/gungame/plugins/)
#18 (1): require(string phar:///home/gungame/pocketmine.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show