mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-12 04:45:12 +00:00
ÂResourcePackManager: allow setting force_resources from a plugin
This commit is contained in:
parent
1cf508abdb
commit
515f8eae4c
@ -154,6 +154,13 @@ class ResourcePackManager{
|
|||||||
return $this->serverForceResources;
|
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.
|
* Returns an array of resource packs in use, sorted in order of priority.
|
||||||
* @return ResourcePack[]
|
* @return ResourcePack[]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user