menu
#10624705 itoozh\mystery\command\sub\LootSubCommand::__construct(): Argument #1 ($plugin) must be of type pocketmine\plugin\PluginBase, null given, called in /home/container/plugins/MysteryBox/src/itoozh/mystery/command/MysteryCrateCommand.php on line 27

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Direct
Report date: 2024-04-03 05:19:34 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux 2b716b96-10c5-4ca4-8692-4fca3bfb0b0f 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64

Error information

Warning: the MysteryCrate plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: itoozh\mystery\command\sub\LootSubCommand::__construct(): Argument #1 ($plugin) must be of type pocketmine\plugin\PluginBase, null given, called in /home/container/plugins/MysteryBox/src/itoozh/mystery/command/MysteryCrateCommand.php on line 27
File: plugins/MysteryBox/src/itoozh/mystery/command/sub/LootSubCommand
Line: #18
Type: TypeError
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use muqsit\invmenu\InvMenu;
use muqsit\invmenu\type\InvMenuTypeIds;
use pocketmine\command\CommandSender;
use pocketmine\player\Player;
use pocketmine\plugin\PluginBase;
use pocketmine\utils\TextFormat;

class LootSubCommand extends BaseSubCommand
{
public function __construct(PluginBase $plugin, string $name, string $description = "", array $aliases = [])
{
parent::__construct($plugin, $name, $description, $aliases);
}

/**
* @throws ArgumentOrderException
*/
protected function prepare(): void
{
$this->registerArgument(0, new StringListArgument('loot', ['common', 'exclusive']));
#0 plugins/MysteryBox/src/itoozh/mystery/command/MysteryCrateCommand(27): itoozh\mystery\command\sub\LootSubCommand->__construct(null, string[4] loot)
#1 /home/container/virions/Commando/src/CortexPE/Commando/BaseCommand(89): itoozh\mystery\command\MysteryCrateCommand->prepare()
#2 plugins/MysteryBox/src/itoozh/mystery/command/MysteryCrateCommand(21): CortexPE\Commando\BaseCommand->__construct(object itoozh\mystery\Main#52553, string[12] mysterycrate, string[52] Use this command to manage the server mystery crate., array[0])
#3 plugins/MysteryBox/src/itoozh/mystery/Main(62): itoozh\mystery\command\MysteryCrateCommand->__construct(object itoozh\mystery\Main#52553, string[12] mysterycrate, string[52] Use this command to manage the server mystery crate.)
#4 pmsrc/src/plugin/PluginBase(119): itoozh\mystery\Main->onEnable()
#5 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#6 pmsrc/src/Server(1404): pocketmine\plugin\PluginManager->enablePlugin(object itoozh\mystery\Main#52553)
#7 pmsrc/src/Server(1035): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#45239)
#8 pmsrc/src/PocketMine(350): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#9 pmsrc/src/PocketMine(373): pocketmine\server()
#10 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show