TheAz928 / VanillaEnchantments

Ever wanted to have working Enchants on your PocketMine-MP server? Well now you can!
GNU General Public License v3.0
40 stars 33 forks source link

Error with bows #60

Closed YHC2538 closed 6 years ago

YHC2538 commented 6 years ago

[19:48:57] [Server thread/DEBUG]: #20 C:/Users/pc/Desktop/PocketMine-MP/PocketMine-MP.phar(1): require(string phar://C:/Users/pc/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php) [19:49:00] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\entity\EntityShootBowEvent' to 'VanillaEnchantments v3.1.0_ALPHA': Call to a member function setShort() on null on vanilla\Core [19:49:00] [Server thread/CRITICAL]: Error: "Call to a member function setShort() on null" (EXCEPTION) in "VanillaEnchantments-master/src/vanilla/Core" at line 209 [19:49:00] [Server thread/DEBUG]: #0 src/pocketmine/plugin/MethodEventExecutor(38): vanilla\Core->onShoot(pocketmine\event\entity\EntityShootBowEvent object) [19:49:00] [Server thread/DEBUG]: #1 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(vanilla\Core object, pocketmine\event\entity\EntityShootBowEvent object) [19:49:00] [Server thread/DEBUG]: #2 src/pocketmine/plugin/PluginManager(699): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityShootBowEvent object) [19:49:00] [Server thread/DEBUG]: #3 src/pocketmine/item/Bow(73): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\entity\EntityShootBowEvent object)[19:49:00] [Server thread/DEBUG]: #4 src/pocketmine/Player(2557): pocketmine\item\Bow->onReleaseUsing(pocketmine\Player object) [19:49:00] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [19:49:00] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(155): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [19:49:00] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) [19:49:00] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [19:49:00] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) [19:49:00] [Server thread/DEBUG]: #10 src/pocketmine/Player(3038): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) [19:49:00] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(153): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) [19:49:00] [Server thread/DEBUG]: #12 vendor/pocketmine/raklib/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 192.168.15.17 60668, raklib\protocol\EncapsulatedPacket object, integer 0) [19:49:00] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(94): raklib\server\ServerHandler->handlePacket() [19:49:00] [Server thread/DEBUG]: #14 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process() [19:49:00] [Server thread/DEBUG]: #15 src/pocketmine/Server(2495): pocketmine\network\Network->processInterfaces() [19:49:00] [Server thread/DEBUG]: #16 src/pocketmine/Server(2243): pocketmine\Server->tick() [19:49:00] [Server thread/DEBUG]: #17 src/pocketmine/Server(2119): pocketmine\Server->tickProcessor() [19:49:00] [Server thread/DEBUG]: #18 src/pocketmine/Server(1701): pocketmine\Server->start() [19:49:00] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(305): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\pc\Desktop\PocketMine-MP\, string C:\Users\pc\Desktop\PocketMine-MP\plugins\) [19:49:00] [Server thread/DEBUG]: #20 C:/Users/pc/Desktop/PocketMine-MP/PocketMine-MP.phar(1): require(string phar://C:/Users/pc/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

TheAz928 commented 6 years ago

Are you using any custom enchantments plugin?

TheAz928 commented 6 years ago

Or anything that multiplies arrows that are shot?

YHC2538 commented 6 years ago

Yes, I am using piggycustomenchants, and yes, I'm using the volley enchant that shoots multiple arrows.

YHC2538 commented 6 years ago

Can you fix it?

YHC2538 commented 6 years ago

That still didn't fix the error, I'm using piggycustomenchants, volley enchant.

[21:42:57] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\entity\EntityShootBowEvent' to 'VanillaEnchantments v3.1.0_ALPHA': Call to a member function setShort() on null on vanilla\Core [21:42:57] [Server thread/CRITICAL]: Error: "Call to a member function setShort() on null" (EXCEPTION) in "VanillaEnchantments-master/src/vanilla/Core" at line 211 [21:42:57] [Server thread/DEBUG]: #0 src/pocketmine/plugin/MethodEventExecutor(38): vanilla\Core->onShoot(pocketmine\event\entity\EntityShootBowEvent object) [21:42:57] [Server thread/DEBUG]: #1 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(vanilla\Core object, pocketmine\event\entity\EntityShootBowEvent object) [21:42:57] [Server thread/DEBUG]: #2 src/pocketmine/plugin/PluginManager(752): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityShootBowEvent object) [21:42:57] [Server thread/DEBUG]: #3 src/pocketmine/item/Bow(73): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\entity\EntityShootBowEvent object) [21:42:57] [Server thread/DEBUG]: #4 src/pocketmine/Player(2559): pocketmine\item\Bow->onReleaseUsing(pocketmine\Player object) [21:42:57] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [21:42:57] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(155): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [21:42:57] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) [21:42:57] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [21:42:57] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) [21:42:57] [Server thread/DEBUG]: #10 src/pocketmine/Player(3036): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) [21:42:57] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(158): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) [21:42:57] [Server thread/DEBUG]: #12 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 192.168.15.17 51495, raklib\protocol\EncapsulatedPacket object, integer 0) [21:42:57] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket() [21:42:57] [Server thread/DEBUG]: #14 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process() [21:42:57] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(80): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object) [21:42:57] [Server thread/DEBUG]: #16 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}() [21:42:57] [Server thread/DEBUG]: #17 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications() [21:42:57] [Server thread/DEBUG]: #18 src/pocketmine/Server(2258): pocketmine\snooze\SleeperHandler->sleepUntil(double 1531402977.4197) [21:42:57] [Server thread/DEBUG]: #19 src/pocketmine/Server(2129): pocketmine\Server->tickProcessor() [21:42:57] [Server thread/DEBUG]: #20 src/pocketmine/Server(1710): pocketmine\Server->start() [21:42:57] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(237): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\\Desktop\PocketMine-MP\, string C:\Users\\Desktop\PocketMine-MP\plugins\) [21:42:57] [Server thread/DEBUG]: #22 C:/Users//Desktop/PocketMine-MP/PocketMine-MP.phar(1): require(string phar://C:/Users//Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

TheAz928 commented 6 years ago

Go ask the author, not me.

YHC2538 commented 6 years ago

Piggycustomenchants say that it was vanilla enchant’s error, but you say it's piggycustomenchants'...

TheAz928 commented 6 years ago

Please try latest build.

TheAz928 commented 6 years ago

should be fixed now