menu
#9718864 Multiple access type modifiers are not allowed

Submitted by PocketMine-MP 5.8.2

General information

Version: 5.8.2
Git commit: c3c81b09
Plugin involvement: Direct
Report date: 2023-12-03 05:47:49 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 2 seconds

System Information

PHP version: 8.1.26
JIT status: Not available
Operating system: linux
System banner: Linux 49ec092b-7a95-41ff-81d8-3dc85617f43c 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64

Error information

Warning: the HCF plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Multiple access type modifiers are not allowed
File: plugins/HCF/src/HCF/commands/events/AirdropCommand
Line: #82
Type: CompileError
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
            }
$item = self::getItem();
$item->setCount((int)$amount);
$player->getInventory()->addItem($item);
$player->sendMessage("§7You received §e".$amount."§r§7 §l§gAirDrops§r.");

}
}

public protected function getItem() : Item {
$item = VanillaBlocks::FURNACE()->asItem();
$item->setCustomName("§r§l§gAirdrops§r");
$item->setLore(["",
"§r§7Place the airdrop to receive rewards.",
"",
"",
"§r§eAvaiable: §r§belectromc.tebex.io"
]);
$namedtag = $airdrops->getNamedTag();
$namedtag->setString('airdrop', 'airdrops');
#0 pmsrc/src/thread/ThreadSafeClassLoader(123): pocketmine\thread\ThreadSafeClassLoader->loadClass(string[34] HCF\commands\events\AirdropCommand)
#1 plugins/HCF/src/HCF/commands/Commands(52): pocketmine\thread\ThreadSafeClassLoader->pocketmine\thread\{closure}(string[34] HCF\commands\events\AirdropCommand)
#2 plugins/HCF/src/HCF/Main(92): HCF\commands\Commands::init()
#3 pmsrc/src/plugin/PluginBase(119): HCF\Main->onEnable()
#4 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#5 pmsrc/src/Server(1391): pocketmine\plugin\PluginManager->enablePlugin(object HCF\Main#44896)
#6 pmsrc/src/Server(1034): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#44753)
#7 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#8 pmsrc/src/PocketMine(364): pocketmine\server()
#9 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