mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 09:26:06 +00:00
PluginManager: fixed bug in YML commands permission type checking
This commit is contained in:
@ -665,7 +665,7 @@ class PluginManager{
|
|||||||
}elseif(is_string($data["permission"])){
|
}elseif(is_string($data["permission"])){
|
||||||
$newCmd->setPermission($data["permission"]);
|
$newCmd->setPermission($data["permission"]);
|
||||||
}else{
|
}else{
|
||||||
throw new \InvalidArgumentException("Permission must be a string or boolean, " . gettype($data["permission"] . " given"));
|
throw new \InvalidArgumentException("Permission must be a string or boolean, " . gettype($data["permission"]) . " given");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user