DaPigGuy / PiggyCrates

A crate plugin for PocketMine-MP supporting unlimited crate types
https://piggydocs.aericio.net/PiggyCrates.html
Apache License 2.0
31 stars 41 forks source link

Plugin crashes when i added new crates from the official website #64

Closed JGYTVevo closed 4 years ago

JGYTVevo commented 4 years ago

Please make sure your issue complies with these guidelines:

 [12:56:21] [Server thread/INFO]: Enabling PiggyCrates v2.0.6
[12:56:21] [Server thread/CRITICAL]: ErrorException: "yaml_parse(): parsing error encountered during parsing: did not find expected key (line 193, column 6), context while parsing a block mapping (line 157, column 5)" (EXCEPTION) in "src/pocketmine/utils/Config" at line 185
[12:56:21] [Server thread/DEBUG]: #0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[162] yaml_parse(): parsing error encountered during parsing: did not find expected ke, string[73] phar:///home/container/PocketMine-MP.phar/src/pocketmine/utils/Config.php, integer 185, array[6])
[12:56:21] [Server thread/DEBUG]: #1 src/pocketmine/utils/Config(185): yaml_parse(string[4040] crates:. Common:. drops:. - id: 1. meta: 0. amount: 16. )
[12:56:21] [Server thread/DEBUG]: #2 src/pocketmine/utils/Config(122): pocketmine\utils\Config->load(string[50] /home/container/plugin_data/PiggyCrates/crates.yml, integer -1, array[0])
[12:56:21] [Server thread/DEBUG]: #3 plugins/PiggyCrates (1).phar/src/DaPigGuy/PiggyCrates/PiggyCrates(65): pocketmine\utils\Config->__construct(string[50] /home/container/plugin_data/PiggyCrates/crates.yml)
[12:56:21] [Server thread/DEBUG]: #4 src/pocketmine/plugin/PluginBase(115): DaPigGuy\PiggyCrates\PiggyCrates->onEnable()
[12:56:21] [Server thread/DEBUG]: #5 src/pocketmine/plugin/PluginManager(541): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
[12:56:21] [Server thread/DEBUG]: #6 src/pocketmine/Server(1783): pocketmine\plugin\PluginManager->enablePlugin(object DaPigGuy\PiggyCrates\PiggyCrates)
[12:56:21] [Server thread/DEBUG]: #7 src/pocketmine/Server(1769): pocketmine\Server->enablePlugin(object DaPigGuy\PiggyCrates\PiggyCrates)
[12:56:21] [Server thread/DEBUG]: #8 src/pocketmine/Server(1582): pocketmine\Server->enablePlugins(integer 1)
[12:56:21] [Server thread/DEBUG]: #9 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[12:56:21] [Server thread/DEBUG]: #10 src/pocketmine/PocketMine(296): pocketmine\server()
[12:56:21] [Server thread/DEBUG]: #11 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
[12:56:21] [Server thread/INFO]: Disabling PiggyCrates v2.0.6
Link to Crashdump:

Extra Information

I went onto the piggycrates web editor and added 2 new crates, then i manually added commands to each prize, then it disables the plugin, this doesnt happen before i edited the code

Aericio commented 4 years ago

This is a configuration error, post your config in https://privatebin.net/ and send the link.

JGYTVevo commented 4 years ago

rip

i deleted the stuff i added and is working again

JGYTVevo commented 4 years ago

https://privatebin.net/?74859fd667e6c375#3fdAmpT78gH8ZcDa8gBxLh5AQndjtj2SR8V8xdbJt8Sq