Closed double9e closed 4 years ago
TypeError: "Argument 1 passed to DaPigGuy\PiggyCustomEnchants\CustomEnchantManager::getEnchantment() must be of the type integer, string given, called in phar://C:/Users/lobby/Desktop/Server/Server/plugins/PiggyCustomEnchantsShop_dev-28.phar/src/DaPigGuy/PiggyCustomEnchantsShop/commands/subcommands/AddSubCommand.php on line 64" (EXCEPTION) in "plugins/PiggyCustomEnchants_dev-294.phar/src/DaPigGuy/PiggyCustomEnchants/CustomEnchantManager" at line 257 [16:30:30] [Server thread/DEBUG]: #0 plugins/PiggyCustomEnchantsShop_dev-28.phar/src/DaPigGuy/PiggyCustomEnchantsShop/commands/subcommands/AddSubCommand(64): DaPigGuy\PiggyCustomEnchants\CustomEnchantManager::getEnchantment(string[6] prison) [16:30:30] [Server thread/DEBUG]: #1 plugins/PiggyCustomEnchantsShop_dev-28.phar/src/DaPigGuy/PiggyCustomEnchantsShop/libs/jojoe77777/FormAPI/Form(46): DaPigGuy\PiggyCustomEnchantsShop\commands\subcommands\AddSubCommand->DaPigGuy\PiggyCustomEnchantsShop\commands\subcommands{closure}(object pocketmine\Player, array[3]) [16:30:30] [Server thread/DEBUG]: #2 src/pocketmine/Player(3472): DaPigGuy\PiggyCustomEnchantsShop\libs\jojoe77777\FormAPI\Form->handleResponse(object pocketmine\Player, array[3]) [16:30:30] [Server thread/DEBUG]: #3 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(259): pocketmine\Player->onFormSubmit(integer 1, array[3]) [16:30:30] [Server thread/DEBUG]: #4 src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [16:30:30] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [16:30:30] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/BatchPacket(123): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [16:30:30] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [16:30:30] [Server thread/DEBUG]: #8 src/pocketmine/Player(3136): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [16:30:30] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [16:30:30] [Server thread/DEBUG]: #10 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 49.230.107.33 39928, object raklib\protocol\EncapsulatedPacket, integer 0) [16:30:30] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [16:30:30] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [16:30:30] [Server thread/DEBUG]: #13 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [16:30:30] [Server thread/DEBUG]: #14 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [16:30:30] [Server thread/DEBUG]: #15 src/pocketmine/Server(2355): pocketmine\snooze\SleeperHandler->sleepUntil(double 1572168630.5739) [16:30:30] [Server thread/DEBUG]: #16 src/pocketmine/Server(2212): pocketmine\Server->tickProcessor() [16:30:30] [Server thread/DEBUG]: #17 src/pocketmine/Server(1790): pocketmine\Server->start() [16:30:30] [Server thread/DEBUG]: #18 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[37] C:\Users\lobby\Desktop\Server\Server\, string[45] C:\Users\lobby\Desktop\Server\Server\plugins) [16:30:30] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(299): pocketmine\server()
download in poggit.
Give us more info to reproduce this bug.
TypeError: "Argument 1 passed to DaPigGuy\PiggyCustomEnchants\CustomEnchantManager::getEnchantment() must be of the type integer, string given, called in phar://C:/Users/lobby/Desktop/Server/Server/plugins/PiggyCustomEnchantsShop_dev-28.phar/src/DaPigGuy/PiggyCustomEnchantsShop/commands/subcommands/AddSubCommand.php on line 64" (EXCEPTION) in "plugins/PiggyCustomEnchants_dev-294.phar/src/DaPigGuy/PiggyCustomEnchants/CustomEnchantManager" at line 257 [16:30:30] [Server thread/DEBUG]: #0 plugins/PiggyCustomEnchantsShop_dev-28.phar/src/DaPigGuy/PiggyCustomEnchantsShop/commands/subcommands/AddSubCommand(64): DaPigGuy\PiggyCustomEnchants\CustomEnchantManager::getEnchantment(string[6] prison) [16:30:30] [Server thread/DEBUG]: #1 plugins/PiggyCustomEnchantsShop_dev-28.phar/src/DaPigGuy/PiggyCustomEnchantsShop/libs/jojoe77777/FormAPI/Form(46): DaPigGuy\PiggyCustomEnchantsShop\commands\subcommands\AddSubCommand->DaPigGuy\PiggyCustomEnchantsShop\commands\subcommands{closure}(object pocketmine\Player, array[3]) [16:30:30] [Server thread/DEBUG]: #2 src/pocketmine/Player(3472): DaPigGuy\PiggyCustomEnchantsShop\libs\jojoe77777\FormAPI\Form->handleResponse(object pocketmine\Player, array[3]) [16:30:30] [Server thread/DEBUG]: #3 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(259): pocketmine\Player->onFormSubmit(integer 1, array[3]) [16:30:30] [Server thread/DEBUG]: #4 src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [16:30:30] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [16:30:30] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/BatchPacket(123): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [16:30:30] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [16:30:30] [Server thread/DEBUG]: #8 src/pocketmine/Player(3136): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [16:30:30] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [16:30:30] [Server thread/DEBUG]: #10 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 49.230.107.33 39928, object raklib\protocol\EncapsulatedPacket, integer 0) [16:30:30] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [16:30:30] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [16:30:30] [Server thread/DEBUG]: #13 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [16:30:30] [Server thread/DEBUG]: #14 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [16:30:30] [Server thread/DEBUG]: #15 src/pocketmine/Server(2355): pocketmine\snooze\SleeperHandler->sleepUntil(double 1572168630.5739) [16:30:30] [Server thread/DEBUG]: #16 src/pocketmine/Server(2212): pocketmine\Server->tickProcessor() [16:30:30] [Server thread/DEBUG]: #17 src/pocketmine/Server(1790): pocketmine\Server->start() [16:30:30] [Server thread/DEBUG]: #18 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[37] C:\Users\lobby\Desktop\Server\Server\, string[45] C:\Users\lobby\Desktop\Server\Server\plugins) [16:30:30] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(299): pocketmine\server()