mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 00:09:39 +00:00
backport 205e13d88: Config: add getPath() (#2758)
Config->getPath() returns the path of the config i.e. the place where the config file is located.
This commit is contained in:
parent
eedea4998b
commit
eaa78fe849
@ -248,6 +248,15 @@ class Config{
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the path of the config.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPath() : string{
|
||||
return $this->file;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the options for the JSON encoding when saving
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user