mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
ResourcePackManager: Add API method getPath()
This commit is contained in:
parent
375243860e
commit
3a4f79629c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user