artulloss / Hotbar

A versatile and fully featured hotbar plugin for PMMP!
MIT License
16 stars 5 forks source link

crash #5

Closed LeoBdt closed 5 years ago

LeoBdt commented 5 years ago

Describe the bug 2019-05-19 [23:24:30] [Server thread/CRITICAL]: ErrorException: "Undefined index: Enchant" (EXCEPTION) in "plugins/Hotbar_dev-66 (1).phar/src/ARTulloss/Hotbar/Main" at line 76 2019-05-19 [23:24:30] [Server thread/DEBUG]: #0 plugins/Hotbar_dev-66 (1).phar/src/ARTulloss/Hotbar/Main(76): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Undefined index: Enchant, string phar:///home/leo/hub/plugins/Hotbar_dev-66 (1).phar/src/ARTulloss/Hotbar/Main.php, integer 76, array Array()) 2019-05-19 [23:24:30] [Server thread/DEBUG]: #1 plugins/Hotbar_dev-66 (1).phar/src/ARTulloss/Hotbar/Main(57): ARTulloss\Hotbar\Main->registerHotbars() 2019-05-19 [23:24:30] [Server thread/DEBUG]: #2 src/pocketmine/plugin/PluginBase(123): ARTulloss\Hotbar\Main->onEnable() 2019-05-19 [23:24:30] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginManager(587): pocketmine\plugin\PluginBase->setEnabled(boolean 1) 2019-05-19 [23:24:30] [Server thread/DEBUG]: #4 src/pocketmine/Server(1992): pocketmine\plugin\PluginManager->enablePlugin(ARTulloss\Hotbar\Main object) 2019-05-19 [23:24:30] [Server thread/DEBUG]: #5 src/pocketmine/Server(1978): pocketmine\Server->enablePlugin(ARTulloss\Hotbar\Main object) 2019-05-19 [23:24:30] [Server thread/DEBUG]: #6 src/pocketmine/Server(1772): pocketmine\Server->enablePlugins(integer 1) 2019-05-19 [23:24:30] [Server thread/DEBUG]: #7 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/leo/hub/, string /home/leo/hub/plugins/) 2019-05-19 [23:24:30] [Server thread/DEBUG]: #8 (1): require(string phar:///home/leo/hub/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

To Reproduce Steps to reproduce the behavior:

  1. put plugin
  2. start server

Expected behavior

Screenshots

Desktop (please complete the following information):

Additional context

artulloss commented 5 years ago

Please use the latest version on GitHub, or grab the release candidate from poggit. Your configuration is also outdated, you're missing the Enchant part which needs to be either true or false.

LeoBdt commented 5 years ago

enchant part isn't created even with the new version

artulloss commented 5 years ago

Holy shit you're right thanks 😅

LeoBdt commented 5 years ago

No problems dude xD

artulloss commented 5 years ago

Fixed latest commit 👍