mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-17 08:54:22 +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");
|
$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.
|
* Returns whether players must accept resource packs in order to join.
|
||||||
* @return bool
|
* @return bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user