Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not execute task PiggyCustomEnchants\Tasks\UseEnchantedBookTask: #108

Closed
teracube opened this issue Jan 5, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@teracube
Copy link

commented Jan 5, 2018

Please make sure your issue complies with these guidelines:

    • Server Software must be the official PMMP w/o vanilla patching plugins (i.e. TeaSpoon)
    • Issue must have not been reported previously
    • Make sure you are on the latest version of PMMP & PiggyCustomEnchants
    • Have a detailed title, like "CustomEnchants::getName() must be..."
    • If possible, provide crashdumps/errors related to the issue.

General

Could not execute task PiggyCustomEnchants\Tasks\UseEnchantedBookTask: Argument 1 passed to PiggyCustomEnchants\Main::getEnchantType() must be an instance of pocketmine\item\enchantment\Enchantment given, called in phar:///home/gsp_1485/g3.hmserv.eu-19144/plugins/PiggyCustomEnchants_dev-190.phar/src/PiggyCustomEnchants/Main.php on line 709�

Version of PiggyCustomEnchants:

PiggyCustomEnchants_dev-190.phar

Steps to Reproduce the Issue

  1. PocketMine-MP version 1.7dev-591� "[REDACTED]" (API 3.0.0-ALPHA10)�
  2. PiggyCustomEnchants v1.1.0

sorry i don't know how to reproduce this issue

Extra Information

2018-01-05 [13:23:14] �[Server thread/CRITICAL]: TypeError: "Argument 1 passed to PiggyCustomEnchants\Main::getEnchantType() must be an instance of PiggyCustomEnchants\CustomEnchants\CustomEnchants, instance of pocketmine\item\enchantment\Enchantment given, called in phar:///home/gsp_1485/g3.hmserv.eu-19144/plugins/PiggyCustomEnchants_dev-190.phar/src/PiggyCustomEnchants/Main.php on line 709" (EXCEPTION) in "PiggyCustomEnchants_dev-190.phar/src/PiggyCustomEnchants/Main" at line 553�
2018-01-05 [13:23:14] �[Server thread/DEBUG]: #0 PiggyCustomEnchants_dev-190.phar/src/PiggyCustomEnchants/Main(709): PiggyCustomEnchants\Main->getEnchantType(pocketmine\item\enchantment\Enchantment object)�
2018-01-05 [13:23:14] �[Server thread/DEBUG]: #1 PiggyCustomEnchants_dev-190.phar/src/PiggyCustomEnchants/Tasks/UseEnchantedBookTask(44): PiggyCustomEnchants\Main->canBeEnchanted(pocketmine\item\Sword object, pocketmine\item\enchantment\Enchantment object, integer 3)�
2018-01-05 [13:23:14] �[Server thread/DEBUG]: #2 src/pocketmine/scheduler/TaskHandler(160): PiggyCustomEnchants\Tasks\UseEnchantedBookTask->onRun(integer 568281)�
2018-01-05 [13:23:14] �[Server thread/DEBUG]: #3 src/pocketmine/scheduler/ServerScheduler(326): pocketmine\scheduler\TaskHandler->run(integer 568281)�
2018-01-05 [13:23:14] �[Server thread/DEBUG]: #4 src/pocketmine/Server(2533): pocketmine\scheduler\ServerScheduler->mainThreadHeartbeat(integer 568281)�
2018-01-05 [13:23:14] �[Server thread/DEBUG]: #5 src/pocketmine/Server(2276): pocketmine\Server->tick()�
2018-01-05 [13:23:14] �[Server thread/DEBUG]: #6 src/pocketmine/Server(2151): pocketmine\Server->tickProcessor()�
2018-01-05 [13:23:14] �[Server thread/DEBUG]: #7 src/pocketmine/Server(1739): pocketmine\Server->start()�
2018-01-05 [13:23:14] �[Server thread/DEBUG]: #8 src/pocketmine/PocketMine(554): 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-01-05 [13:23:14] �[Server thread/DEBUG]: #9 /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-01-05 [13:23:22] �[Server thread/INFO]: - **** ][ LPBchouchDz69 - > Thefulldiams�
2018-01-05 [13:23:25] �[Server thread/CRITICAL]: Could not execute task PiggyCustomEnchants\Tasks\UseEnchantedBookTask: Argument 1 passed to PiggyCustomEnchants\Main::getEnchantType() must be an instance of PiggyCustomEnchants\CustomEnchants\CustomEnchants, instance of pocketmine\item\enchantment\Enchantment given, called in phar:///home/gsp_1485/g3.hmserv.eu-19144/plugins/PiggyCustomEnchants_dev-190.phar/src/PiggyCustomEnchants/Main.php on line 709�
2018-01-05 [13:23:25] �[Server thread/CRITICAL]: TypeError: "Argument 1 passed to PiggyCustomEnchants\Main::getEnchantType() must be an instance of PiggyCustomEnchants\CustomEnchants\CustomEnchants, instance of pocketmine\item\enchantment\Enchantment given, called in phar:///home/gsp_1485/g3.hmserv.eu-19144/plugins/PiggyCustomEnchants_dev-190.phar/src/PiggyCustomEnchants/Main.php on line 709" (EXCEPTION) in "PiggyCustomEnchants_dev-190.phar/src/PiggyCustomEnchants/Main" at line 553�
2018-01-05 [13:23:25] �[Server thread/DEBUG]: #0 PiggyCustomEnchants_dev-190.phar/src/PiggyCustomEnchants/Main(709): PiggyCustomEnchants\Main->getEnchantType(pocketmine\item\enchantment\Enchantment object)�
2018-01-05 [13:23:25] �[Server thread/DEBUG]: #1 PiggyCustomEnchants_dev-190.phar/src/PiggyCustomEnchants/Tasks/UseEnchantedBookTask(44): PiggyCustomEnchants\Main->canBeEnchanted(pocketmine\item\ItemBlock object, pocketmine\item\enchantment\Enchantment object, integer 3)�
2018-01-05 [13:23:25] �[Server thread/DEBUG]: #2 src/pocketmine/scheduler/TaskHandler(160): PiggyCustomEnchants\Tasks\UseEnchantedBookTask->onRun(integer 568514)�
2018-01-05 [13:23:25] �[Server thread/DEBUG]: #3 src/pocketmine/scheduler/ServerScheduler(326): pocketmine\scheduler\TaskHandler->run(integer 568514)�
2018-01-05 [13:23:25] �[Server thread/DEBUG]: #4 src/pocketmine/Server(2533): pocketmine\scheduler\ServerScheduler->mainThreadHeartbeat(integer 568514)�
2018-01-05 [13:23:25] �[Server thread/DEBUG]: #5 src/pocketmine/Server(2276): pocketmine\Server->tick()�
2018-01-05 [13:23:25] �[Server thread/DEBUG]: #6 src/pocketmine/Server(2151): pocketmine\Server->tickProcessor()�
2018-01-05 [13:23:25] �[Server thread/DEBUG]: #7 src/pocketmine/Server(1739): pocketmine\Server->start()�
2018-01-05 [13:23:25] �[Server thread/DEBUG]: #8 src/pocketmine/PocketMine(554): 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-01-05 [13:23:25] �[Server thread/DEBUG]: #9 /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)�```
@teracube

This comment has been minimized.

Copy link
Author

commented Jan 5, 2018

@DaPigGuy

This comment has been minimized.

Copy link
Owner

commented Jan 5, 2018

Are you trying to use enchanted books with normal enchants?

@DaPigGuy DaPigGuy added the bug label Jan 5, 2018

@teracube

This comment has been minimized.

Copy link
Author

commented Jan 5, 2018

@DaPigGuy
no
i don’t know how to reproduce this issue sorry

@DaPigGuy

This comment has been minimized.

Copy link
Owner

commented Jan 5, 2018

Would you mind trying to enchant an enchanted book with any vanilla enchant and using it on an item?

@DaPigGuy DaPigGuy closed this in cde941a Jan 6, 2018

@DaPigGuy DaPigGuy added the fixed/done label Jan 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.