mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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[]
|
||||
|
Loading…
x
Reference in New Issue
Block a user