From 205e13d88002bae9a4fbbf11ea4ab791b84d739d Mon Sep 17 00:00:00 2001 From: "Jack M. Taylor" <32965703+JackMD@users.noreply.github.com> Date: Thu, 14 Feb 2019 15:58:19 +0500 Subject: [PATCH] Config: add getPath() (#2758) Config->getPath() returns the path of the config i.e. the place where the config file is located. --- src/pocketmine/utils/Config.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pocketmine/utils/Config.php b/src/pocketmine/utils/Config.php index e5617f0c5..7b9c2a710 100644 --- a/src/pocketmine/utils/Config.php +++ b/src/pocketmine/utils/Config.php @@ -192,6 +192,15 @@ class Config{ } } + /** + * Returns the path of the config. + * + * @return string + */ + public function getPath() : string{ + return $this->file; + } + /** * Flushes the config to disk in the appropriate format. *