Browse Source

Fixing a bug !

master
Ad5001 3 years ago
committed by GitHub
parent
commit
456a0bfef8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Ad5001/Online/Main.php

+ 2
- 2
src/Ad5001/Online/Main.php 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;
}
}
}
}

Loading…
Cancel
Save