From 456a0bfef84b936a1acd59a29bec96ad1a9aad86 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sat, 8 Oct 2016 16:35:02 +0300 Subject: [PATCH] Fixing a bug ! --- src/Ad5001/Online/Main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ad5001/Online/Main.php b/src/Ad5001/Online/Main.php index 70c74d6..6ab7ec8 100644 --- a/src/Ad5001/Online/Main.php +++ b/src/Ad5001/Online/Main.php @@ -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; } } -} \ No newline at end of file +}