menu
#4583364 Call to a member function getAllMoney() on null

Submitted by PocketMine-MP 3.15.2

General information

Version: 3.15.2
Git commit: d7a66ad7
Plugin involvement: Direct
Report date: 2020-10-18 00:32:08 +0000 UTC

System Information

PHP version: 7.3.23
Operating system: linux
System banner: Linux ant517725 4.15.0-118-generic #119-Ubuntu SMP Tue Sep 8 12:30:01 UTC 2020 x86_64

Error information

Warning: the GlobalChat plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getAllMoney() on null
File: plugins/GlobalChat_v2.phar/src/GC/Main
Line: #102
Error level: Error
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112

class MagnataTask extends Task{

public function __construct(Main $main){
$this->main = $main;
}

public function onRun(Int $ticks) : Void{

$all = Server::getInstance()->getPluginManager()->getPlugin('EconomyAPI')->getAllMoney();

arsort($all);

$top = array_keys($all);

if(isset($top[0])){
Main::$magnata = strtolower($top[0]);
}else{
Main::$magnata = '';
}
#0 src/pocketmine/scheduler/TaskHandler(137): GC\MagnataTask->onRun(integer 1)
#1 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 1)
#2 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1)
#3 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 1)
#4 src/pocketmine/Server(2154): pocketmine\Server->tick()
#5 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1588): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[45] /home/minecraft/multicraft/servers/server423/, string[53] /home/minecraft/multicraft/servers/server423/plugins/)
#8 src/pocketmine/PocketMine(304): pocketmine\server()
#9 (11): require(string[77] phar:///home/minecraft/multicraft/jar/1.16.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies