DaPigGuy / PiggyCustomEnchants

An open source custom enchantment plugin for PocketMine-MP
https://piggydocs.aericio.net/PiggyCustomEnchants.html
Apache License 2.0
103 stars 118 forks source link

PiggyCE Crashes on Startup #159

Closed teracube closed 6 years ago

teracube commented 6 years ago

Please make sure your issue complies with these guidelines:

General

Server could not load PiggyCustomEnchants plugin

Version:

- PiggyCustomEnchants: - PMMP: This server is running PocketMine-MP version 1.7dev-993 "[REDACTED]" (API 3.0.0-ALPHA12) #### **Steps to Reproduce the Issue** 1.install latest PMMP build and latest PiggyCustomEnchants plugin start the server #### **Extra Information** ``` 2018-05-12 [17:20:45] [Server thread/INFO]: Enabling PiggyCustomEnchants v1.1.3 2018-05-12 [17:20:45] [Server thread/CRITICAL]: ArgumentCountError: "Too few arguments to function pocketmine\item\enchantment\Enchantment::__construct(), 5 passed in phar:///home/gsp_1485/g3.hmserv.eu-19144/plugins/PiggyCustomEnchants_dev-222.phar/src/PiggyCustomEnchants/Main.php on line 437 and exactly 6 expected" (EXCEPTION) in "src/pocketmine/item/enchantment/Enchantment" at line 170 2018-05-12 [17:20:45] [Server thread/DEBUG]: #0 PiggyCustomEnchants_dev-222.phar/src/PiggyCustomEnchants/Main(437): pocketmine\item\enchantment\Enchantment->__construct(integer 417, string Anti Knockback, integer 2, integer 15, integer 1) 2018-05-12 [17:20:45] [Server thread/DEBUG]: #1 PiggyCustomEnchants_dev-222.phar/src/PiggyCustomEnchants/Main(312): PiggyCustomEnchants\Main->translateDataToCE(integer 417, array Array()) 2018-05-12 [17:20:45] [Server thread/DEBUG]: #2 PiggyCustomEnchants_dev-222.phar/src/PiggyCustomEnchants/Main(242): PiggyCustomEnchants\Main->initCustomEnchants() 2018-05-12 [17:20:45] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginBase(90): PiggyCustomEnchants\Main->onEnable() 2018-05-12 [17:20:45] [Server thread/DEBUG]: #4 src/pocketmine/plugin/PharPluginLoader(127): pocketmine\plugin\PluginBase->setEnabled(boolean 1) 2018-05-12 [17:20:45] [Server thread/DEBUG]: #5 src/pocketmine/plugin/PluginManager(577): pocketmine\plugin\PharPluginLoader->enablePlugin(PiggyCustomEnchants\Main object) 2018-05-12 [17:20:45] [Server thread/DEBUG]: #6 src/pocketmine/Server(1930): pocketmine\plugin\PluginManager->enablePlugin(PiggyCustomEnchants\Main object) 2018-05-12 [17:20:45] [Server thread/DEBUG]: #7 src/pocketmine/Server(1916): pocketmine\Server->enablePlugin(PiggyCustomEnchants\Main object) 2018-05-12 [17:20:45] [Server thread/DEBUG]: #8 src/pocketmine/Server(1710): pocketmine\Server->enablePlugins(integer 1) 2018-05-12 [17:20:45] [Server thread/DEBUG]: #9 src/pocketmine/PocketMine(304): 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-12 [17:20:45] [Server thread/DEBUG]: #10 /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-12 [17:20:45] [Server thread/INFO]: Disabling PiggyCustomEnchants v1.1.3 ```
Aericio commented 6 years ago

Plugin crashes on startup. Please fix @DaPigGuy.

SalmonDE commented 6 years ago

https://github.com/pmmp/PocketMine-MP/commit/8239c67b1affcabba8536eec08c9664728eb3218