mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 16:49:53 +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{
|
||||
$validator = new Validator(
|
||||
new Key("mode", new In(['whitelist', 'blacklist'], true), false),
|
||||
new Key("plugins", new AllOf(new ArrayType(), new Each(new StringType())), false)
|
||||
new Key("mode", new In(['whitelist', 'blacklist'], true), true),
|
||||
new Key("plugins", new AllOf(new ArrayType(), new Each(new StringType())), true)
|
||||
);
|
||||
$validator->setName('plugin_list.yml');
|
||||
try{
|
||||
|
Loading…
x
Reference in New Issue
Block a user