ResourcePackManager: Add API method getPath()

This commit is contained in:
Dylan K. Taylor 2017-12-22 11:04:15 +00:00
parent 375243860e
commit 3a4f79629c

View File

@ -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