ÂResourcePackManager: allow setting force_resources from a plugin

This commit is contained in:
Dylan K. Taylor 2023-08-07 17:05:45 +01:00
parent 1cf508abdb
commit 515f8eae4c
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -154,6 +154,13 @@ class ResourcePackManager{
return $this->serverForceResources;
}
/**
* Sets whether players must accept resource packs in order to join.
*/
public function setResourcePacksRequired(bool $value) : void{
$this->serverForceResources = $value;
}
/**
* Returns an array of resource packs in use, sorted in order of priority.
* @return ResourcePack[]