Ребят, привет! Решил я короче влезть в экспириенс с нейронкой, через нее прогонял плагин по кругу, в итоге остановился на такой ошибке:
PocketMine-MP version: 5.28.0 [Protocol 800]
Git commit: 5e830c732075d067887eaac9fb605d6a347e8115
PHP version: 8.2.17
OS: Linux, linux
THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: ThorHammer
Thread: Main
Error: Trait “customies\item\ItemComponentsTrait” not found
File: plugins/ThorHammer/src/author/ThorHammerItem
Line: 11
Type: E_ERROR
Backtrace:
Code:
[2]
[3] namespace author;
[4]
[5] use customies\item\CreativeInventoryInfo;
[6] use customies\item\ItemComponents;
[7] use customies\item\ItemComponentsTrait;
[8] use pocketmine\item\Item;
[9] use pocketmine\item\ItemIdentifier;
[10]
[11] class ThorHammerItem extends Item implements ItemComponents {
[12] use ItemComponentsTrait;
[13]
[14] public function __construct(ItemIdentifier $identifier, string $name, string $description) {
[15] parent::__construct($identifier, $name);
[16]
[17] $this->initComponent(
[18] new CreativeInventoryInfo(CreativeInventoryInfo::CATEGORY_EQUIPMENT), // Категория в креативе
[19] [
[20] “texture” => “thor_hammer”, // Имя текстуры из ресурс-пака
[21] “description” => $description
Плагины я писать не умею, потому через ИИ и полез, тут полностью все она писала. Может кто-нибудь помочь с этим?