menu
#3768833 Argument 3 passed to onebone\economyapi\EconomyAPI::reduceMoney() must implement interface onebone\economyapi\currency\Currency or be null, bool given

Submitted by PocketMine-MP 3.11.1

General information

Version: 3.11.1
Git commit: 40a2211a
Plugin involvement: Direct
Report date: 2020-02-14 11:04:57 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: win
System banner: Windows NT DESKTOP-I3SBCUR 10.0 build 18363 (Windows 10) AMD64

Error information

Warning: the EconomyAPI plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 3 passed to onebone\economyapi\EconomyAPI::reduceMoney() must implement interface onebone\economyapi\currency\Currency or be null, bool given
File: plugins/EconomyAPI_v3.0.0-SNAPSHOT-5e278b98.phar/src/onebone/economyapi/EconomyAPI
Line: #580
Error level: TypeError
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
	/**
* @param string|Player $player
* @param float $amount
* @param Currency $currency
* @param Issuer $issuer
* @param bool $force
*
* @return int
*/
public function reduceMoney($player, float $amount, ?Currency $currency = null, ?Issuer $issuer = null, bool $force = false): int {
$holder = $this->findCurrencyHolder($currency, $player);

$ret = $this->canReduceMoney($player, $amount, $force, $issuer, $holder->getCurrency());

if($player instanceof Player) {
$player = $player->getName();
}
$player = strtolower($player);

if($ret === self::RET_VALID) {
#0 plugins/EconomyTax_v2.0.3-5e278b98.phar/src/onebone/economytax/EconomyTax(73): onebone\economyapi\EconomyAPI->reduceMoney(object pocketmine\Player, double 100, boolean 1, string[10] EconomyTax)
#1 plugins/EconomyTax_v2.0.3-5e278b98.phar/src/onebone/economytax/task/PayTask(34): onebone\economytax\EconomyTax->payTax()
#2 src/pocketmine/scheduler/TaskHandler(159): onebone\economytax\task\PayTask->onRun(integer 12001)
#3 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 12001)
#4 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 12001)
#5 src/pocketmine/Server(2567): pocketmine\plugin\PluginManager->tickSchedulers(integer 12001)
#6 src/pocketmine/Server(2343): pocketmine\Server->tick()
#7 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1785): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[46] C:\Users\81703\Documents\PocketMine-MP-stable\, string[54] C:\Users\81703\Documents\PocketMine-MP-stable\plugins\)
#10 src/pocketmine/PocketMine(295): pocketmine\server()
#11 (1): require(string[101] phar://C:/Users/81703/Documents/PocketMine-MP-stable/PocketMine-MP.phar/src/pock)

Loaded Plugins

  • Show

Server Settings

  • Show