Infernus101 / KitUI

Advance AdvancedKits! Select Kits from a form, just do /kit and get kits info and select it if available! For Minecraft Bedrock Edition!
GNU General Public License v3.0
44 stars 33 forks source link

Error: "Class 'PiggyCustomEnchants\CustomEnchants\CustomEnchants' not found" (EXCEPTION) #118

Closed AL3XPI closed 5 years ago

AL3XPI commented 5 years ago

KitUI Issue

Issue description

Server crashes when you click on a kit with an enchanted sword (unbreaking 3). 1 of my 2 kits (1 has unenchanted stone sword other has enchanted diamond sword).

Reproducing the issue

  1. ...
  2. ...

Client information

PocketMine-MP Version: (insert commit hash here) 3.9.2 Kit-UI Version: (insert commit hash or version from plugin.yml here) 1.3.5 MCPE Version: (insert game version here) 1.12.0 Plugin Version: (insert commit hash here) PHP version: 7.2

Optional information

...

[19:01:46] [Server thread/CRITICAL]: Error: "Class 'PiggyCustomEnchants\CustomEnchants\CustomEnchants' not found" (EXCEPTION) in "plugins/KitUI.phar/src/Infernus101/KitUI/Kit" at line 159
[19:01:46] [Server thread/DEBUG]: #0 plugins/KitUI.phar/src/Infernus101/KitUI/Kit(110): Infernus101\KitUI\Kit->loadItem(integer 276, integer 0, integer 1, string[7] DEFAULT, string[2] 17, string[1] 3)
[19:01:46] [Server thread/DEBUG]: #1 plugins/KitUI.phar/src/Infernus101/KitUI/Kit(71): Infernus101\KitUI\Kit->add(object pocketmine\Player)
[19:01:46] [Server thread/DEBUG]: #2 plugins/KitUI.phar/src/Infernus101/KitUI/UI/windows/KitInfo(94): Infernus101\KitUI\Kit->equipKit(object pocketmine\Player)
[19:01:46] [Server thread/DEBUG]: #3 plugins/KitUI.phar/src/Infernus101/KitUI/UI/windows/KitInfo(36): Infernus101\KitUI\UI\windows\KitInfo->select(string[5] true.)
[19:01:46] [Server thread/DEBUG]: #4 plugins/KitUI.phar/src/Infernus101/KitUI/PlayerEvents(80): Infernus101\KitUI\UI\windows\KitInfo->handle(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)
[19:01:46] [Server thread/DEBUG]: #5 src/pocketmine/plugin/MethodEventExecutor(38): Infernus101\KitUI\PlayerEvents->onDataPacket(object pocketmine\event\server\DataPacketReceiveEvent)
[19:01:46] [Server thread/DEBUG]: #6 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object Infernus101\KitUI\PlayerEvents, object pocketmine\event\server\DataPacketReceiveEvent)
[19:01:46] [Server thread/DEBUG]: #7 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\server\DataPacketReceiveEvent)
[19:01:46] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\event\Event->call()
[19:01:46] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/protocol/BatchPacket(123): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)
[19:01:46] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[19:01:46] [Server thread/DEBUG]: #11 src/pocketmine/Player(3126): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[19:01:46] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[19:01:46] [Server thread/DEBUG]: #13 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[18] 192.168.1.99 51046, object raklib\protocol\EncapsulatedPacket, integer 0)
[19:01:46] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[19:01:46] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[19:01:46] [Server thread/DEBUG]: #16 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[19:01:46] [Server thread/DEBUG]: #17 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
[19:01:46] [Server thread/DEBUG]: #18 src/pocketmine/Server(2348): pocketmine\snooze\SleeperHandler->sleepUntil(double 1563840106.9726)
[19:01:46] [Server thread/DEBUG]: #19 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
[19:01:46] [Server thread/DEBUG]: #20 src/pocketmine/Server(1784): pocketmine\Server->start()
[19:01:46] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[39] C:\Users\~~~\Documents\Pocketmine-MP\, string[47] C:\Users\~~~\Documents\Pocketmine-MP\plugins\)
[19:01:46] [Server thread/DEBUG]: #22 (1): require(string[94] phar://C:/Users/astro/Documents/Pocketmine-MP/PocketMine-MP.phar/src/pocketmine/)

Config

...

§6§lStarter Kit:

Format: "id:damage:count:name:ench_name:ench_level"

If you want only custom name (no enchantments): "id:damage:count:name"

If you don't want enchantments or custom name: "id:damage:count"

If you want only enchantments (no custom name): "id:damage:count:DEFAULT:ench_name:ench_level" -- you have to put DEFAULT in the name field

If you want more than one enchantment just do: "id:damage:count:name:ench1_name:ench1_level:ench2_name:ench2_level"

or "id:damage:count:DEFAULT:ench1_name:ench1_level:ench2_name:ench2_level" if you don't want a custom item name

Please note: You have to write numeric IDs

items:

AL3XPI commented 5 years ago

@Infernus101

Infernus101 commented 5 years ago

@AL3XPI you're using old KitUI, try with latest release

AL3XPI commented 5 years ago

@Infernus101 I used the latest release and it still gives me the same error.

Infernus101 commented 5 years ago

@Infernus101 I used the latest release and it still gives me the same error.

Whats the version?

AL3XPI commented 5 years ago

1.3.5

Infernus101 commented 5 years ago

1.3.5

do you have old piggyce in your plugins?

AL3XPI commented 5 years ago

i have piggy ce 1.4.6 latest version

Infernus101 commented 5 years ago

send a screenshot of console

AL3XPI commented 5 years ago

image

Infernus101 commented 5 years ago

do /plugins and send output

AL3XPI commented 5 years ago

image @Infernus101

Infernus101 commented 5 years ago

@AL3XPI fixed in v1.3.6

AL3XPI commented 5 years ago

thanks it works now