mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +00:00
PluginGraylist: all fields are mandatory
This commit is contained in:
parent
219cf2126b
commit
05a1f45111
@ -71,8 +71,8 @@ class PluginGraylist{
|
|||||||
*/
|
*/
|
||||||
public static function fromArray(array $array) : PluginGraylist{
|
public static function fromArray(array $array) : PluginGraylist{
|
||||||
$validator = new Validator(
|
$validator = new Validator(
|
||||||
new Key("mode", new In(['whitelist', 'blacklist'], true), false),
|
new Key("mode", new In(['whitelist', 'blacklist'], true), true),
|
||||||
new Key("plugins", new AllOf(new ArrayType(), new Each(new StringType())), false)
|
new Key("plugins", new AllOf(new ArrayType(), new Each(new StringType())), true)
|
||||||
);
|
);
|
||||||
$validator->setName('plugin_list.yml');
|
$validator->setName('plugin_list.yml');
|
||||||
try{
|
try{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user