CortexPE / TeaSpoon

☕ A PLUGIN to Extend PMMP's Functionality without completely changing it.
GNU Affero General Public License v3.0
144 stars 100 forks source link

(EXCEPTION) in "TeaSpoon_dev-190.phar/src/CortexPE/EventListener" at line 128 #254

Closed teracube closed 6 years ago

teracube commented 6 years ago

Issue Description

(EXCEPTION) in "TeaSpoon_dev-190.phar/src/CortexPE/EventListener" at line 128

TeaSpoon issue or incompatibility latest buid TeaSpoon and latest build PiggyCustomEnchants or PMMP latest build ??

in my config.yml

enchantments:
 # Weather to enable & register Vanilla Enchantments (Set to false if you're going to use VanillaEnchantments plugin etc...) or not
 register: false

Steps to Reproduce

  1. ...PocketMine-MP version 1.7dev-1039 "[REDACTED]" (API 3.0.0-ALPHA12)
  2. ...TeaSpoon_dev-190 latest build
  3. ...PiggyCustomEnchants_dev-229 latest build

sorry i don't know reproduce this issue

Crashdump, Backtrace or Other Files

2018-05-23 [11:11:06] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\entity\EntityDamageEvent' to 'TeaSpoon v1.0.0': Call to undefined method pocketmine\event\entity\EntityDamageEvent::getDamage() on CortexPE\EventListener
2018-05-23 [11:11:06] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\event\entity\EntityDamageEvent::getDamage()" (EXCEPTION) in "TeaSpoon_dev-190.phar/src/CortexPE/EventListener" at line 128
2018-05-23 [11:11:06] [Server thread/DEBUG]: #0 src/pocketmine/plugin/MethodEventExecutor(38): CortexPE\EventListener->onDamage(pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #1 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(CortexPE\EventListener object, pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #2 src/pocketmine/plugin/PluginManager(701): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #3 src/pocketmine/entity/Entity(897): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #4 src/pocketmine/entity/Living(524): pocketmine\entity\Entity->attack(pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #5 src/pocketmine/Player(3706): pocketmine\entity\Living->attack(pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #6 src/pocketmine/entity/Living(387): pocketmine\Player->attack(pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #7 src/pocketmine/entity/Entity(1442): pocketmine\entity\Living->fall(double 3.4467)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #8 src/pocketmine/entity/Entity(1654): pocketmine\entity\Entity->updateFallState(double -0.65179999999999, boolean 1)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #9 src/pocketmine/Player(1559): pocketmine\entity\Entity->move(double -0.0031999999999996, double -0.65179999999999, double -0.038899999999956)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #10 src/pocketmine/Player(1704): pocketmine\Player->processMovement(integer 1)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #11 src/pocketmine/level/Level(750): pocketmine\Player->onUpdate(integer 80503)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #12 src/pocketmine/Server(2377): pocketmine\level\Level->doTick(integer 80503)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #13 src/pocketmine/Server(2528): pocketmine\Server->checkTickUpdates(integer 80503, double 1527066666.0477)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #14 src/pocketmine/Server(2276): pocketmine\Server->tick()
2018-05-23 [11:11:06] [Server thread/DEBUG]: #15 src/pocketmine/Server(2150): pocketmine\Server->tickProcessor()
2018-05-23 [11:11:06] [Server thread/DEBUG]: #16 src/pocketmine/Server(1733): pocketmine\Server->start()
2018-05-23 [11:11:06] [Server thread/DEBUG]: #17 src/pocketmine/PocketMine(290): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #18 /home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-05-23 [11:11:06] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\entity\EntityDamageEvent' to 'PiggyCustomEnchants v1.1.3': Call to undefined method pocketmine\event\entity\EntityDamageEvent::getDamage() on PiggyCustomEnchants\EventListener
2018-05-23 [11:11:06] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\event\entity\EntityDamageEvent::getDamage()" (EXCEPTION) in "PiggyCustomEnchants_dev-229.phar/src/PiggyCustomEnchants/EventListener" at line 1000
2018-05-23 [11:11:06] [Server thread/DEBUG]: #0 PiggyCustomEnchants_dev-229.phar/src/PiggyCustomEnchants/EventListener(152): PiggyCustomEnchants\EventListener->checkArmorEnchants(pocketmine\Player object, pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #1 src/pocketmine/plugin/MethodEventExecutor(38): PiggyCustomEnchants\EventListener->onDamage(pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(PiggyCustomEnchants\EventListener object, pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginManager(701): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #4 src/pocketmine/entity/Entity(897): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #5 src/pocketmine/entity/Living(524): pocketmine\entity\Entity->attack(pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #6 src/pocketmine/Player(3706): pocketmine\entity\Living->attack(pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #7 src/pocketmine/entity/Living(387): pocketmine\Player->attack(pocketmine\event\entity\EntityDamageEvent object)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #8 src/pocketmine/entity/Entity(1442): pocketmine\entity\Living->fall(double 3.4467)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #9 src/pocketmine/entity/Entity(1654): pocketmine\entity\Entity->updateFallState(double -0.65179999999999, boolean 1)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #10 src/pocketmine/Player(1559): pocketmine\entity\Entity->move(double -0.0031999999999996, double -0.65179999999999, double -0.038899999999956)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #11 src/pocketmine/Player(1704): pocketmine\Player->processMovement(integer 1)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #12 src/pocketmine/level/Level(750): pocketmine\Player->onUpdate(integer 80503)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #13 src/pocketmine/Server(2377): pocketmine\level\Level->doTick(integer 80503)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #14 src/pocketmine/Server(2528): pocketmine\Server->checkTickUpdates(integer 80503, double 1527066666.0477)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #15 src/pocketmine/Server(2276): pocketmine\Server->tick()
2018-05-23 [11:11:06] [Server thread/DEBUG]: #16 src/pocketmine/Server(2150): pocketmine\Server->tickProcessor()
2018-05-23 [11:11:06] [Server thread/DEBUG]: #17 src/pocketmine/Server(1733): pocketmine\Server->start()
2018-05-23 [11:11:06] [Server thread/DEBUG]: #18 src/pocketmine/PocketMine(290): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
2018-05-23 [11:11:06] [Server thread/DEBUG]: #19 /home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Paste your crashdump here (if theres any)

<!-- Privacy concerns about the TeaSpoonDumps? You can check out the code for yourself ;) As it doesn't collect any sensitive information other than in-depth server information -->
```text
# Paste the contents of your TeaSpoonDump here ( by running /bugreport ) [can be found at <TeaSpoon Plugin Folder>/dumps/<time>]
ghost commented 6 years ago

@teracube I will fix that today