mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-09 15:29:47 +00:00
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
470879c9bf
commit
205e13d880
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user