mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
ÂCommand: fixed inconsistent API method name
This commit is contained in:
@@ -139,7 +139,7 @@ class SimpleCommandMap implements CommandMap{
|
||||
}
|
||||
|
||||
public function register(string $fallbackPrefix, Command $command, ?string $label = null) : bool{
|
||||
if(count($command->getPermission()) === 0){
|
||||
if(count($command->getPermissions()) === 0){
|
||||
throw new \InvalidArgumentException("Commands must have a permission set");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user