Joestarfish / SellWand

A PMMP plugin that add an item which can sell the contents of containers (Chest, Hopper, Furnace, etc.)
MIT License
0 stars 1 forks source link

Crashes on Start #2

Open ParadoxPlays opened 9 months ago

ParadoxPlays commented 9 months ago

Server Version: 1.20.50 (I can join on latest version) Pocketmine Version: 5.10.0 Plugin Version: I downloaded it from poggit so I believe like 1.0.1 or whatever the latest version on there is Economy Plugin Being Used: BedrockEconomy (Latest Version I do believe)

Error: THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: SellWand

Thread: Main Error: Cannot assign cooldogedev\BedrockEconomy\api\type\LegacyAPI to property Joestarfish\SellWand\libs\DaPigGuy\libPiggyEconomy\providers\BedrockEconomyProvider::$api of type cooldogedev\BedrockEconomy\api\version\LegacyBEAPI File: plugins/SellWand/src/libs/DaPigGuy/libPiggyEconomy/providers/BedrockEconomyProvider Line: 27 Type: TypeError Backtrace:

0 plugins/SellWand/src/libs/DaPigGuy/libPiggyEconomy/libPiggyEconomy(59): Joestarfish\SellWand\libs\DaPigGuy\libPiggyEconomy\providers\BedrockEconomyProvider->__construct(array[1])

1 plugins/SellWand/src/Main(46): Joestarfish\SellWand\libs\DaPigGuy\libPiggyEconomy\libPiggyEconomy::getProvider(array[1])

2 pmsrc/src/plugin/PluginBase(119): Joestarfish\SellWand\Main->onEnable()

3 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)

4 pmsrc/src/Server(1398): pocketmine\plugin\PluginManager->enablePlugin(object Joestarfish\SellWand\Main#52092)

5 pmsrc/src/Server(1034): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#45203)

6 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)

7 pmsrc/src/PocketMine(364): pocketmine\server()

8 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Code: [18] private CurrencyManager $currency; [19] [20] public static function checkDependencies(): bool [21] { [22] return Server::getInstance()->getPluginManager()->getPlugin("BedrockEconomy") !== null; [23] } [24] [25] public function __construct() [26] { [27] $this->api = BedrockEconomyAPI::legacy(); [28] $this->currency = BedrockEconomy::getInstance()->getCurrencyManager(); [29] } [30] [31] public function getMonetaryUnit(): string [32] { [33] return $this->currency->getSymbol(); [34] } [35] [36] public function getMoney(Player $player, callable $callback): void [37] {

silentdecaye commented 6 months ago

i have the same setup and i'm getting the same failure.

[Server thread/CRITICAL]: TypeError: "Cannot assign cooldogedev\BedrockEconomy\api\type\LegacyAPI to property Joestarfish\SellWand\libs\DaPigGuy\libPiggyEconomy\providers\BedrockEconomyProvider::$api of type cooldogedev\BedrockEconomy\api\version\LegacyBEAPI" (EXCEPTION) in "plugins/SellWand.phar/src/libs/DaPigGuy/libPiggyEconomy/providers/BedrockEconomyProvider" at line 27 --- Stack trace ---

0 plugins/SellWand.phar/src/libs/DaPigGuy/libPiggyEconomy/libPiggyEconomy(59): Joestarfish\SellWand\libs\DaPigGuy\libPiggyEconomy\providers\BedrockEconomyProvider->__construct(array[1])

1 plugins/SellWand.phar/src/Main(45): Joestarfish\SellWand\libs\DaPigGuy\libPiggyEconomy\libPiggyEconomy::getProvider(array[1])

2 pmsrc/src/plugin/PluginBase(119): Joestarfish\SellWand\Main->onEnable()

3 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)

4 pmsrc/src/Server(1404): pocketmine\plugin\PluginManager->enablePlugin(object Joestarfish\SellWand\Main#45251)

5 pmsrc/src/Server(1035): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#45216)

6 pmsrc/src/PocketMine(355): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#2, string[16] /home/container/, string[24] /home/container/plugins/)

7 pmsrc/src/PocketMine(378): pocketmine\server()

8 /home/container/PocketMine-MP.phar(168): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPfG19sT.tar/src/PocketMine.php)