falkirks / MineReset

Powerful mine resetting tool
MIT License
43 stars 42 forks source link

Error: "Cannot use object of type falkirks\minereset\Mine as array" #122

Closed DarzenBR closed 5 years ago

DarzenBR commented 5 years ago

I'm new to php, so go easy on me. Minereset could not run due to the following:

Server thread/CRITICAL]: Error: "Cannot use object of type falkirks\minereset\Mine as array" (EXCEPTION) in "plugins/MineReset-master/src/falkirks/minereset/Mine" at line 278 [10:43:52] [Server thread/DEBUG]: #0 plugins/MineReset-master/src/falkirks/minereset/MineManager(71): falkirks\minereset\Mine::fromJson(object falkirks\minereset\MineManager, object falkirks\minereset\Mine, string[1] A) [10:43:52] [Server thread/DEBUG]: #1 plugins/MineReset-master/src/falkirks/minereset/MineManager(40): falkirks\minereset\MineManager->loadMines() [10:43:52] [Server thread/DEBUG]: #2 plugins/MineReset-master/src/falkirks/minereset/MineReset(59): falkirks\minereset\MineManager->construct(object falkirks\minereset\MineReset, object falkirks\minereset\store\ConfigStore) [10:43:52] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginBase(123): falkirks\minereset\MineReset->onEnable() [10:43:52] [Server thread/DEBUG]: #4 src/pocketmine/plugin/PluginManager(580): pocketmine\plugin\PluginBase->setEnabled(boolean 1) [10:43:52] [Server thread/DEBUG]: #5 src/pocketmine/Server(2002): pocketmine\plugin\PluginManager->enablePlugin(object falkirks\minereset\MineReset) [10:43:52] [Server thread/DEBUG]: #6 src/pocketmine/Server(1988): pocketmine\Server->enablePlugin(object falkirks\minereset\MineReset) [10:43:52] [Server thread/DEBUG]: #7 src/pocketmine/Server(1782): pocketmine\Server->enablePlugins(integer 1) [10:43:52] [Server thread/DEBUG]: #8 src/pocketmine/PocketMine(275): pocketmine\Server->construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[39] /home/rotten/Desktop/Pocketmine Server/, string[47] /home/rotten/Desktop/Pocketmine Server/plugins/) [10:43:52] [Server thread/DEBUG]: #9 src/pocketmine/PocketMine(299): pocketmine\server()

[10:43:52] [Server thread/INFO]: Disabling MineReset v3.3.0 [10:43:52] [Server thread/CRITICAL]: Error: "Call to a member function saveAll() on null" (EXCEPTION) in "plugins/MineReset-master/src/falkirks/minereset/MineReset" at line 89 [10:43:52] [Server thread/DEBUG]: #0 src/pocketmine/plugin/PluginBase(125): falkirks\minereset\MineReset->onDisable() [10:43:52] [Server thread/DEBUG]: #1 src/pocketmine/plugin/PluginManager(666): pocketmine\plugin\PluginBase->setEnabled(boolean ) [10:43:52] [Server thread/DEBUG]: #2 src/pocketmine/plugin/PluginManager(587): pocketmine\plugin\PluginManager->disablePlugin(object falkirks\minereset\MineReset) [10:43:52] [Server thread/DEBUG]: #3 src/pocketmine/Server(2002): pocketmine\plugin\PluginManager->enablePlugin(object falkirks\minereset\MineReset) [10:43:52] [Server thread/DEBUG]: #4 src/pocketmine/Server(1988): pocketmine\Server->enablePlugin(object falkirks\minereset\MineReset) [10:43:52] [Server thread/DEBUG]: #5 src/pocketmine/Server(1782): pocketmine\Server->enablePlugins(integer 1) [10:43:52] [Server thread/DEBUG]: #6 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[39] /home/rotten/Desktop/Pocketmine Server/, string[47] /home/rotten/Desktop/Pocketmine Server/plugins/) [10:43:52] [Server thread/DEBUG]: #7 src/pocketmine/PocketMine(299): pocketmine\server()