Fixing a bug !

This commit is contained in:
Ad5001 2016-10-08 16:35:02 +03:00 committed by GitHub
parent c5c8e3c1eb
commit 456a0bfef8

View file

@ -72,7 +72,7 @@ class execTask extends \pocketmine\scheduler\AsyncTask {
public function onRun() {
$address = '0.0.0.0';
$port = yaml_parse(file_get_contents("plugins\\Online\\config.yml"))["port"];
$port = yaml_parse(file_get_contents($this->path . "plugins\\Online\\config.yml"))["port"];
// shell_exec("cd plugins/Online");
switch(true) {
case stristr(PHP_OS, "WIN"):
@ -87,4 +87,4 @@ class execTask extends \pocketmine\scheduler\AsyncTask {
break;
}
}
}
}