ifera-mc / MysteryCrate

PLUGIN ARCHIVED. USE https://github.com/DaPigGuy/PiggyCrates instead!
GNU General Public License v3.0
28 stars 31 forks source link

Error with PiggyEnchant #72

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello!

Actually this plugin not work with PiggyCustomEnchant, i got this error:

[07:09:25] [Server thread/CRITICAL]: [MysteryCrate] Could not execute task JackMD\MysteryCrate\UpdaterEvent: Argument 2 passed to pocketmine\nbt\tag\ShortTag::__construct() must be of the type integer, null given, called in /root/build/plugins/PiggyCustomEnchants-master/src/PiggyCustomEnchants/Main.php on line 547
[07:09:25] [Server thread/CRITICAL]: TypeError: "Argument 2 passed to pocketmine\nbt\tag\ShortTag::__construct() must be of the type integer, null given, called in /root/build/plugins/PiggyCustomEnchants-master/src/PiggyCustomEnchants/Main.php on line 547" (EXCEPTION) in "vendor/pocketmine/nbt/src/tag/ShortTag" at line 39
[07:09:25] [Server thread/DEBUG]: #0 PiggyCustomEnchants-master/src/PiggyCustomEnchants/Main(547): pocketmine\nbt\tag\ShortTag->__construct(string lvl, NULL )

I use pmmp version: This server is running PocketMine-MP 3.0.1 for Minecraft: PE v1.4.0 (protocol version 261)

And my plugin version is latest.

Thanks so much for understandings 👍

And hey, can i purpose you to use EnderChests instanceof Chests? Looks better!

And rainbow dust particles will be great :D

Ifera commented 6 years ago

Hi, Something is wrong with your crates.yml file. You might have not followed the pattern set in crates.yml. other than that I cannot reproduce this issue. More features are on the way.