menu
#5777233 Cannot use non-existing permission ""

Submitted by PocketMine-MP 4.0.6

General information

Version: 4.0.6
Git commit: f7d25f25
Plugin involvement: None
Report date: 2022-01-14 22:20:41 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux 45398359-acd3-4a9b-9d20-86d2c5a928ef 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64

Error information

Message: Cannot use non-existing permission ""
File: pmsrc/src/command/Command
Line: #107
Error level: InvalidArgumentException
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117

public function getPermission() : ?string{
return $this->permission;
}

public function setPermission(?string $permission) : void{
if($permission !== null){
foreach(explode(";", $permission) as $perm){
if(PermissionManager::getInstance()->getPermission($perm) === null){
throw new \InvalidArgumentException("Cannot use non-existing permission \"$perm\"");
}
}
}
$this->permission = $permission;
}

public function testPermission(CommandSender $target, ?string $permission = null) : bool{
if($this->testPermissionSilent($target, $permission)){
return true;
}
#0 pmsrc/src/plugin/PluginBase(192): pocketmine\command\Command->setPermission(string[0] )
#1 pmsrc/src/plugin/PluginBase(97): pocketmine\plugin\PluginBase->registerYamlCommands()
#2 pmsrc/src/plugin/PluginManager(214): pocketmine\plugin\PluginBase->__construct(object DevTools\FolderPluginLoader#23452, object pocketmine\Server#10, object pocketmine\plugin\PluginDescription#23441, string[35] /home/container/plugin_data/pruebas, string[31] /home/container/plugins/pruebas, object pocketmine\plugin\DiskResourceProvider#23434)
#3 pmsrc/src/plugin/PluginManager(357): pocketmine\plugin\PluginManager->internalLoadPlugin(string[31] /home/container/plugins/pruebas, object DevTools\FolderPluginLoader#23452, object pocketmine\plugin\PluginDescription#23441)
#4 pmsrc/src/Server(1003): pocketmine\plugin\PluginManager->loadPlugins(string[24] /home/container/plugins/)
#5 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#6 pmsrc/src/PocketMine(326): pocketmine\server()
#7 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show