Error information
Warning: the AcsrelCodes plugin was directly involved in this crash. Please contact the plugin author.
Message: |
scandir(phar:///home/container/plugins/AcsrelCodes_v1.0.0.phar/src/acsrel/acsrelcodes\procedure\functions): Failed to open directory: operation failed |
File: |
plugins/AcsrelCodes_v1.0.0.phar/src/acsrel/acsrelcodes/AcsrelCodes |
Line: |
#95 |
Error level: |
ErrorException |
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
self::$instance = $this;
new FormsManager();
if (!is_dir($this->getDataFolder() . "commands")) mkdir($this->getDataFolder() . "commands");
if (!is_dir($this->getDataFolder() . "recyclebin")) mkdir($this->getDataFolder() . "recyclebin");
if (file_exists($this->getDataFolder() . "events.dat")) $this->events = unserialize(file_get_contents($this->getDataFolder() . "events.dat"));
if (file_exists($this->getDataFolder() . "removeOps.dat")) $this->removeOps = unserialize(file_get_contents($this->getDataFolder() . "removeOps.dat"));
foreach ($this->removeOps as $player) $this->getServer()->removeOp($player);
$this->removeOps = [];
file_put_contents($this->getDataFolder() . "removeOps.dat", serialize($this->removeOps));
foreach (array_diff(scandir((__DIR__ . '\procedure\functions')), [".", "..", "BaseFunction.php"]) as $file) {
/** @var BaseFunction $function */
$function = 'acsrel\acsrelcodes\procedure\functions\\' . str_replace(".php", "", $file);
self::$functionsClasses[strtolower($function::getName())] = $function;
}
foreach (self::$supportedEvents as $event) {
if (!array_key_exists($event, $this->events)) $this->events[$event] = [];
$this->saveEvents();
}
foreach ($this->getAllRecycleBinCommands() as $command) {
if ((microtime(true) - $command->deleted) >= 1209600) {
#0 (): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[150] scandir(phar:///home/container/plugins/AcsrelCodes_v1.0.0.phar/src/acsrel/acsrel, string[93] phar:///home/container/plugins/AcsrelCodes_v1.0.0.phar/src/acsrel/acsrelcodes/Ac, int 95)
#1 plugins/AcsrelCodes_v1.0.0.phar/src/acsrel/acsrelcodes/AcsrelCodes(95): scandir(string[97] phar:///home/container/plugins/AcsrelCodes_v1.0.0.phar/src/acsrel/acsrelcodes\pr)
#2 pmsrc/src/plugin/PluginBase(117): acsrel\acsrelcodes\AcsrelCodes->onEnable()
#3 pmsrc/src/plugin/PluginManager(448): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#4 pmsrc/src/Server(1419): pocketmine\plugin\PluginManager->enablePlugin(object acsrel\acsrelcodes\AcsrelCodes#25756)
#5 pmsrc/src/Server(1024): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#25752)
#6 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[16] /home/container/, string[24] /home/container/plugins/)
#7 pmsrc/src/PocketMine(327): pocketmine\server()
#8 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)