menu
#3073465 Call to undefined method onebone\economyapi\EconomyAPI::getMoney()

Submitted by PocketMine-MP 3.9.7

General information

Version: 3.9.7
Git commit: 0c91d568
Plugin involvement: Direct
Report date: 2019-11-07 03:47:11 +0000 UTC

System Information

PHP version: 7.3.11
Operating system: linux
System banner: Linux micvi 2.6.32-042stab136.1 #1 SMP Wed Feb 27 09:04:24 MSK 2019 x86_64

Error information

Warning: the Levels plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method onebone\economyapi\EconomyAPI::getMoney()
File: plugins/Levels.phar/src/VaKKuum/Levels/SendBarTask
Line: #20
Error level: Error
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
		$this->plugin = $plugin;
}

public function onRun($tick){
foreach($this->plugin->getServer()->getOnlinePlayers() as $player){
$level = $this->plugin->getPlayerLevel($player->getName());
$msg = " §eВремя (".date("e")."): §a".date("H:i");
$msg = $msg."\n §eУровень: §a".$level;
if($this->plugin->economy != null){
$msg = $msg."\n §eБаланс: §a".$this->plugin->economy->getMoney($player->getName());
}
$msg = $msg."\n §eОнлайн: §a".count($this->plugin->getServer()->getOnlinePlayers())."§e/§a".$this->plugin->getServer()->getMaxPlayers();
$player->sendTip($msg);
}
}
}
?>
#0 src/pocketmine/scheduler/TaskHandler(159): VaKKuum\Levels\SendBarTask->onRun(integer 9481)
#1 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 9481)
#2 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 9481)
#3 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 9481)
#4 src/pocketmine/Server(2346): pocketmine\Server->tick()
#5 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1784): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(278): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[11] /root/mcpe/, string[19] /root/mcpe/plugins/)
#8 src/pocketmine/PocketMine(300): pocketmine\server()
#9 (1): require(string[66] phar:///root/mcpe/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show