menu
#2821818 scandir(/home/minecraft/multicraft/servers/server74127/plugin_data/PvPLevels/players/): failed to open dir: No such file or directory

Submitted by PocketMine-MP 3.9.4

General information

Version: 3.9.4
Git commit: 1be6783c
Plugin involvement: Direct
Report date: 2019-09-10 16:02:54 +0000 UTC

System Information

PHP version: 7.3.6
Operating system: linux
System banner: Linux ebc76d7c7852 4.9.177-xxxx-std-ipv6-64 #721950 SMP Fri May 17 08:31:25 UTC 2019 x86_64

Error information

Warning: the PvPLevels plugin was directly involved in this crash. Please contact the plugin author.
Message: scandir(/home/minecraft/multicraft/servers/server74127/plugin_data/PvPLevels/players/): failed to open dir: No such file or directory
File: plugins/PvPLevels_dev-21.phar/src/corytortoise/PvPLevels/Main
Line: #230
Error level: ErrorException
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
                if($player->distance($text) <= 5 && $player->distance($text) > 0) {
return $loc;
}
}
}
return false;
}

public function getRankings(string $type) {
$files = scandir($this->getDataFolder() . "players/");
$stats = [];
//Maybe just use str_replace instead?
switch($type) {
case "levels":
$string = "level";
break;
case "kills":
$string = "kills";
break;
case "kdr":
#0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[133] scandir(/home/minecraft/multicraft/servers/server74127/plugin_data/PvPLevels/pla, string[119] phar:///home/minecraft/multicraft/servers/server74127/plugins/PvPLevels_dev-21.p, integer 230, array[1])
#1 plugins/PvPLevels_dev-21.phar/src/corytortoise/PvPLevels/Main(230): scandir(string[77] /home/minecraft/multicraft/servers/server74127/plugin_data/PvPLevels/players/)
#2 plugins/PvPLevels_dev-21.phar/src/corytortoise/PvPLevels/Main(71): corytortoise\PvPLevels\Main->getRankings(string[5] kills)
#3 plugins/PvPLevels_dev-21.phar/src/corytortoise/PvPLevels/UpdateTask(17): corytortoise\PvPLevels\Main->updateTexts()
#4 src/pocketmine/scheduler/TaskHandler(159): corytortoise\PvPLevels\UpdateTask->onRun(integer 6600)
#5 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 6600)
#6 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 6600)
#7 src/pocketmine/Server(2569): pocketmine\plugin\PluginManager->tickSchedulers(integer 6600)
#8 src/pocketmine/Server(2345): pocketmine\Server->tick()
#9 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#10 src/pocketmine/Server(1784): pocketmine\Server->start()
#11 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[47] /home/minecraft/multicraft/servers/server74127/, string[55] /home/minecraft/multicraft/servers/server74127/plugins/)
#12 src/pocketmine/PocketMine(299): pocketmine\server()
#13 (1): require(string[114] phar:///home/minecraft/multicraft/servers/server74127/PMMP-1.12.0-Latest-Stable.)

Loaded Plugins

  • Show

Server Settings

  • Show