mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
PluginDescription: loosen invalid permission message (it might be wrong type as well as not existing)
This commit is contained in:
parent
d07517fe8b
commit
258c38f9cd
@ -132,7 +132,7 @@ class PluginDescription{
|
||||
throw new PluginDescriptionParseException("Command $commandName has invalid properties");
|
||||
}
|
||||
if(!isset($commandData["permission"]) || !is_string($commandData["permission"])){
|
||||
throw new PluginDescriptionParseException("Command $commandName does not have a permission set");
|
||||
throw new PluginDescriptionParseException("Command $commandName does not have a valid permission set");
|
||||
}
|
||||
$this->commands[$commandName] = new PluginDescriptionCommandEntry(
|
||||
$commandData["description"] ?? null,
|
||||
|
Loading…
x
Reference in New Issue
Block a user