mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-12 12:55:21 +00:00
Fixed plugin resources
This commit is contained in:
parent
36027f1073
commit
83eb032393
@ -109,8 +109,8 @@ abstract class PluginBase implements Plugin, CommandExecutor{
|
|||||||
$this->loader = $loader;
|
$this->loader = $loader;
|
||||||
$this->server = $server;
|
$this->server = $server;
|
||||||
$this->description = $description;
|
$this->description = $description;
|
||||||
$this->dataFolder = $dataFolder;
|
$this->dataFolder = rtrim($dataFolder, "\\/") . "/";
|
||||||
$this->file = $file;
|
$this->file = rtrim($file, "\\/") . "/";
|
||||||
$this->configFile = $this->dataFolder . "config.yml";
|
$this->configFile = $this->dataFolder . "config.yml";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -182,7 +182,7 @@ abstract class PluginBase implements Plugin, CommandExecutor{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$out = $this->file . $filename;
|
$out = $this->dataFolder . $filename;
|
||||||
if(!file_exists($this->dataFolder)){
|
if(!file_exists($this->dataFolder)){
|
||||||
@mkdir($this->dataFolder, 0755, true);
|
@mkdir($this->dataFolder, 0755, true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user