PluginManager: fixed bug in YML commands permission type checking

This commit is contained in:
Dylan K. Taylor 2018-07-08 16:19:46 +01:00
parent 066c9d4fd4
commit 2d454ae56f

View File

@ -665,7 +665,7 @@ class PluginManager{
}elseif(is_string($data["permission"])){
$newCmd->setPermission($data["permission"]);
}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");
}
}