mirror of
https://github.com/farcasclaudiu/QRcraft.git
synced 2026-06-28 21:01:10 +03:00
Merge pull request #1 from shoghicp/patch-1
Fixes "Too many open files"
This commit is contained in:
@@ -45,10 +45,7 @@ class QRcraftPlugIn extends PluginBase implements CommandExecutor
|
|||||||
|
|
||||||
public function loadConfiguration()
|
public function loadConfiguration()
|
||||||
{
|
{
|
||||||
if (!file_exists($this->getDataFolder() . "config.yml")) {
|
$this->saveDefaultConfig();
|
||||||
@mkdir($this->getDataFolder());
|
|
||||||
file_put_contents($this->getDataFolder() . "config.yml", $this->getResource("config.yml"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onDisable()
|
public function onDisable()
|
||||||
|
|||||||
Reference in New Issue
Block a user