Closed zpros123 closed 3 years ago
When i tried to do it in console this popped up [12:46:36] [Server thread/CRITICAL]: Error: "Call to a member function getSize() on array" (EXCEPTION) in "pmsrc/src/pocketmine/item/enchantment/Enchantment" at line 158 [12:46:36] [Server thread/CRITICAL]: #0 plugins/PiggyCustomEnchants.phar/src/DaPigGuy/PiggyCustomEnchants/CustomEnchants/CustomEnchants(31): pocketmine\item\enchantment\Enchantment::getEnchantment(integer 803) [12:46:36] [Server thread/CRITICAL]: #1 plugins/PiggyCustomEnchants.phar/src/DaPigGuy/PiggyCustomEnchants/Commands/CustomEnchantCommand(112): DaPigGuy\PiggyCustomEnchants\CustomEnchants\CustomEnchants::getEnchantmentByName(string[6] spider) [12:46:36] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/command/SimpleCommandMap(248): DaPigGuy\PiggyCustomEnchants\Commands\CustomEnchantCommand->execute(object pocketmine\command\ConsoleCommandSender, string[2] ce, array[2]) [12:46:36] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/Server(1810): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[14] ce info spider) [12:46:36] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/Server(1422): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[14] ce info spider) [12:46:36] [Server thread/CRITICAL]: #5 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine{closure}() [12:46:36] [Server thread/CRITICAL]: #6 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [12:46:36] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/Server(2156): pocketmine\snooze\SleeperHandler->sleepUntil(double 1610973996.8166)
When i try to do the enchant command in console it crashed the server here is the crash dump file Mon_Jan_18-13.46.36-CET_2021.log.txt
Also when i start up the server this started showing up after i reinstalled the plugin [10:36:22] [Server thread/INFO]: Enabling PiggyCustomEnchantsShop v1.3.5 [10:36:22] [Server thread/CRITICAL]: Error: "Call to a member function getSize() on array" (EXCEPTION) in "pmsrc/src/pocketmine/item/enchantment/Enchantment" at line 158 [10:36:22] [Server thread/CRITICAL]: #0 plugins/PiggyCustomEnchantsShop.phar/src/DaPigGuy/PiggyCustomEnchantsShop/PiggyCustomEnchantsShop(62): pocketmine\item\enchantment\Enchantment::getEnchantment(integer 0) [10:36:22] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/plugin/PluginBase(116): DaPigGuy\PiggyCustomEnchantsShop\PiggyCustomEnchantsShop->onEnable() [10:36:22] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1) [10:36:22] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/Server(1786): pocketmine\plugin\PluginManager->enablePlugin(object DaPigGuy\PiggyCustomEnchantsShop\PiggyCustomEnchantsShop) [10:36:22] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/Server(1772): pocketmine\Server->enablePlugin(object DaPigGuy\PiggyCustomEnchantsShop\PiggyCustomEnchantsShop) [10:36:22] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/Server(1585): pocketmine\Server->enablePlugins(integer 1) [10:36:22] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/) [10:36:22] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/PocketMine(302): pocketmine\server() [10:36:22] [Server thread/CRITICAL]: #8 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php) [10:36:22] [Server thread/INFO]: Disabling PiggyCustomEnchantsShop v1.3.5
unable to reproduce
Please make sure your issue complies with these guidelines:
Issue Description
Steps to Reproduce the Issue
OS and Versions
Extra Information
Im using a server hosting website called bisecthosting and have 3gb ram on the server