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

Effects aren't working #78

Closed DrakerZR closed 6 years ago

DrakerZR commented 6 years ago

Issue description

(Sorry for the bad english :p) If I add an effect in a Kit, effect doesn't works, and it doesn't show the command in the kit (tell {player} ) ...

Client information

PocketMine-MP Version: 1.7dev-827 Kit-UI Version: 1.2.2 MCPE Version: 1.2.11 PHP version: 7.2 ...

2018-03-15 [01:23:25] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\entity\Effect::setDuration()" (EXCEPTION) in "KitUIMaster.phar/src/Infernus101/KitUI/Kit" at line 129
2018-03-15 [01:23:25] [Server thread/DEBUG]: #0 KitUIMaster.phar/src/Infernus101/KitUI/Kit(80): Infernus101\KitUI\Kit->loadEffect(string strength, integer 300, integer 1)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #1 KitUIMaster.phar/src/Infernus101/KitUI/UI/windows/KitInfo(87): Infernus101\KitUI\Kit->add(pocketmine\Player object)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #2 KitUIMaster.phar/src/Infernus101/KitUI/UI/windows/KitInfo(97): Infernus101\KitUI\UI\windows\KitInfo->select(string true.)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #3 KitUIMaster.phar/src/Infernus101/KitUI/PlayerEvents(80): Infernus101\KitUI\UI\windows\KitInfo->handle(pocketmine\network\mcpe\protocol\ModalFormResponsePacket object)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #4 src/pocketmine/plugin/MethodEventExecutor(38): Infernus101\KitUI\PlayerEvents->onDataPacket(pocketmine\event\server\DataPacketReceiveEvent object)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #5 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(Infernus101\KitUI\PlayerEvents object, pocketmine\event\server\DataPacketReceiveEvent object)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #6 src/pocketmine/plugin/PluginManager(687): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\server\DataPacketReceiveEvent object)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(91): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\server\DataPacketReceiveEvent object)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\ModalFormResponsePacket object)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #10 src/pocketmine/Player(3014): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(147): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #12 vendor/pocketmine/raklib/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 192.168.1.95 54981, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(88): raklib\server\ServerHandler->handlePacket()
2018-03-15 [01:23:25] [Server thread/DEBUG]: #14 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
2018-03-15 [01:23:25] [Server thread/DEBUG]: #15 src/pocketmine/Server(2491): pocketmine\network\Network->processInterfaces()
2018-03-15 [01:23:25] [Server thread/DEBUG]: #16 src/pocketmine/Server(2240): pocketmine\Server->tick()
2018-03-15 [01:23:25] [Server thread/DEBUG]: #17 src/pocketmine/Server(2116): pocketmine\Server->tickProcessor()
2018-03-15 [01:23:25] [Server thread/DEBUG]: #18 src/pocketmine/Server(1702): pocketmine\Server->start()
2018-03-15 [01:23:25] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(305): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /storage/sdcard0/PocketMine-MP/, string /storage/sdcard0/PocketMine-MP/plugins/)
2018-03-15 [01:23:25] [Server thread/DEBUG]: #20 /storage/sdcard0/PocketMine-MP/PocketMine-MP.phar(1): require(string phar:///storage/sdcard0/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php) this.)
artulloss commented 6 years ago

yes there were api changes several days ago, I opened the same issue report on advancedkits

The api changes are here. https://github.com/pmmp/PocketMine-MP/commit/dc3bf8546e2f700cb79adf988e15735a0c2d84fa