menu
#10624992 Undefined property: itoozh\mystery\command\MysteryCrateCommand::$plugin

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:29: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: Undefined property: itoozh\mystery\command\MysteryCrateCommand::$plugin
File: plugins/MysteryBox/src/itoozh/mystery/command/MysteryCrateCommand
Line: #26
Type: ErrorException
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
    public function __construct(Plugin $plugin, string $name, Translatable|string $description = "", array $aliases = [])
{
parent::__construct($plugin, $name, $description, $aliases);
$this->plugin = $plugin;
$this->setPermission('use.mystery.crate.command');
}

protected function prepare(): void
{
$this->registerSubCommand(new LootSubCommand($this->plugin, 'loot'));
$this->registerSubCommand(new GiveAllSubCommand($this->plugin, 'giveall'));
$this->registerSubCommand(new GiveSubCommand($this->plugin, 'give'));
}

public function onRun(CommandSender $sender, string $aliasUsed, array $args): void
{
$this->sendUsage();
}
}
#0 plugins/MysteryBox/src/itoozh/mystery/command/MysteryCrateCommand(26): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[71] Undefined property: itoozh\mystery\command\MysteryCrateCommand::$plugin, string[85] /home/container/plugins/MysteryBox/src/itoozh/mystery/command/MysteryCrateComman, int 26)
#1 /home/container/virions/Commando/src/CortexPE/Commando/BaseCommand(89): itoozh\mystery\command\MysteryCrateCommand->prepare()
#2 plugins/MysteryBox/src/itoozh/mystery/command/MysteryCrateCommand(19): CortexPE\Commando\BaseCommand->__construct(object itoozh\mystery\Main#52531, 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#52531, 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#52531)
#7 pmsrc/src/Server(1035): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#45255)
#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