menu
#7556347 Trying to access array offset on value of type bool

Submitted by PocketMine-MP 4.9.0

General information

Version: 4.9.0
Git commit: 785dc712
Plugin involvement: Direct
Report date: 2022-09-22 19:27:12 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 seconds

System Information

PHP version: 8.0.22
JIT status: Disabled
Operating system: linux
System banner: Linux 471a7a0d-1bdd-4539-84b8-e873338bba5a 4.19.0-21-cloud-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64

Error information

Warning: the LobbyCore plugin was directly involved in this crash. Please contact the plugin author.
Message: Trying to access array offset on value of type bool
File: plugins/LobbyCore.phar/src/Digueloulou12/LobbyCore/Commands/Ranks/AddPermission
Line: #17
Error level: ErrorException
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use pocketmine\command\CommandSender;
use pocketmine\command\Command;
use pocketmine\player\Player;
use pocketmine\Server;

class AddPermission extends Command
{
public function __construct()
{
parent::__construct(Utils::getConfigValue("addpermission")[0]);
if (isset(Utils::getConfigValue("addpermission")[1])) $this->setDescription(Utils::getConfigValue("addpermission")[1]);
$this->setAliases(Utils::getConfigValue("addpermission_aliases"));
$this->setPermission("rank.use");
}

/**
* @throws JsonException
*/
public function execute(CommandSender $sender, string $commandLabel, array $args)
{
#0 plugins/LobbyCore.phar/src/Digueloulou12/LobbyCore/Commands/Ranks/AddPermission(17): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[51] Trying to access array offset on value of type bool, string[106] phar:///home/container/plugins/LobbyCore.phar/src/Digueloulou12/LobbyCore/Comman, int 17)
#1 plugins/LobbyCore.phar/src/Digueloulou12/LobbyCore/API/RankAPI(31): Digueloulou12\LobbyCore\Commands\Ranks\AddPermission->__construct()
#2 plugins/LobbyCore.phar/src/Digueloulou12/LobbyCore/LobbyCore(38): Digueloulou12\LobbyCore\API\RankAPI->__construct()
#3 pmsrc/src/plugin/PluginBase(117): Digueloulou12\LobbyCore\LobbyCore->onEnable()
#4 pmsrc/src/plugin/PluginManager(448): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#5 pmsrc/src/Server(1421): pocketmine\plugin\PluginManager->enablePlugin(object Digueloulou12\LobbyCore\LobbyCore#22025)
#6 pmsrc/src/Server(1026): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#21906)
#7 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#8 pmsrc/src/PocketMine(328): pocketmine\server()
#9 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show