Skip to content
This repository was archived by the owner on May 4, 2026. It is now read-only.
This repository was archived by the owner on May 4, 2026. It is now read-only.

onstart #139

@ViruZzInGame

Description

@ViruZzInGame

PocketMine-MP Crash Dump Wed Jan 7 14:22:27 UTC 2026

PocketMine-MP version: 5.39.2 [Protocol 898]
Git commit: a6ced39472135aacb64cd75b06c5adb452b9db20
PHP version: 8.2.29
OS: Linux, linux

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: AuctionHouse

Thread: Main
Error: Class "pocketmine\network\mcpe\protocol\types\command\CommandEnum" not found
File: plugins/AuctionHouse.phar/src/shock95x/auctionhouse/libs/_45f135c7cfd69bf7/CortexPE/Commando/args/StringEnumArgument
Line: 48
Type: Error
Backtrace:
#0 plugins/AuctionHouse.phar/src/shock95x/auctionhouse/commands/subcommand/CategoryCommand(24): shock95x\auctionhouse\libs_45f135c7cfd69bf7\CortexPE\Commando\args\StringEnumArgument->__construct(string[4] name, true)
#1 plugins/AuctionHouse.phar/src/shock95x/auctionhouse/libs/_45f135c7cfd69bf7/CortexPE/Commando/BaseCommand(89): shock95x\auctionhouse\commands\subcommand\CategoryCommand->prepare()
#2 plugins/AuctionHouse.phar/src/shock95x/auctionhouse/libs/_45f135c7cfd69bf7/CortexPE/Commando/BaseSubCommand(41): shock95x\auctionhouse\libs_45f135c7cfd69bf7\CortexPE\Commando\BaseCommand->__construct(object shock95x\auctionhouse\AuctionHouse#68840, string[8] category, string[19] Opens category menu, array[0])
#3 plugins/AuctionHouse.phar/src/shock95x/auctionhouse/commands/AHCommand(27): shock95x\auctionhouse\libs_45f135c7cfd69bf7\CortexPE\Commando\BaseSubCommand->__construct(object shock95x\auctionhouse\AuctionHouse#68840, string[8] category, string[19] Opens category menu)
#4 plugins/AuctionHouse.phar/src/shock95x/auctionhouse/libs/_45f135c7cfd69bf7/CortexPE/Commando/BaseCommand(89): shock95x\auctionhouse\commands\AHCommand->prepare()
#5 plugins/AuctionHouse.phar/src/shock95x/auctionhouse/AuctionHouse(76): shock95x\auctionhouse\libs_45f135c7cfd69bf7\CortexPE\Commando\BaseCommand->__construct(object shock95x\auctionhouse\AuctionHouse#68840, string[2] ah, string[20] AuctionHouse command)
#6 pmsrc/src/plugin/PluginBase(119): shock95x\auctionhouse\AuctionHouse->onEnable()
#7 pmsrc/src/plugin/PluginManager(461): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#8 pmsrc/src/Server(1466): pocketmine\plugin\PluginManager->enablePlugin(object shock95x\auctionhouse\AuctionHouse#68840)
#9 pmsrc/src/Server(1077): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#68144)
#10 pmsrc/src/PocketMine(367): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[16] /home/container/, string[24] /home/container/plugins/)
#11 pmsrc/src/PocketMine(390): pocketmine\server()
#12 pmsrc(170): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPYFHA9H.tar/src/PocketMine.php)

Code:
[39] use function strtolower;
[40]
[41] abstract class StringEnumArgument extends BaseArgument {
[42]
[43] protected const VALUES = [];
[44]
[45] public function __construct(string $name, bool $optional = false) {
[46] parent::__construct($name, $optional);
[47]
[48] $this->parameterData->enum = new CommandEnum($this->getEnumName(), $this->getEnumValues());
[49] }
[50]
[51] public function getNetworkType(): int {
[52] // this will be disregarded by PM anyways because this will be considered as a string enum
[53] return -1;
[54] }
[55]
[56] public function canParse(string $testString, CommandSender $sender): bool {
[57] return (bool)preg_match(
[58] "/^(" . implode("|", array_map("\strtolower", $this->getEnumValues())) . ")$/iu",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions