mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
ResourcePackManager: Add API method getPath()
This commit is contained in:
@ -109,6 +109,14 @@ class ResourcePackManager{
|
||||
$this->server->getLogger()->debug("Successfully loaded " . count($this->resourcePacks) . " resource packs");
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the directory which resource packs are loaded from.
|
||||
* @return string
|
||||
*/
|
||||
public function getPath() : string{
|
||||
return $this->path;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether players must accept resource packs in order to join.
|
||||
* @return bool
|
||||
|
Reference in New Issue
Block a user