menu
#2907474 Call to a member function myMoney() on null

Submitted by PocketMine-MP 3.9.5

General information

Version: 3.9.5
Git commit: f0539f48
Plugin involvement: Direct
Report date: 2019-10-10 00:10:47 +0000 UTC

System Information

PHP version: 7.3.9
Operating system: linux
System banner: Linux 7abba5af-bd7f-402a-b073-dbd6c126cc63 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64

Error information

Warning: the SkyWars plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function myMoney() on null
File: plugins/SkyWars.phar/src/SkyWars/Tasks/Game
Line: #122
Error level: Error
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
                            if ($arena->getMaxPlayers() <= count($arena->getPocketPlayers())) {
$arena->setStatus(Arena::FULL);

if ($arena->getTime() > 11) $arena->setTime(11);
}

foreach ($pocketPlayers as $player) {
$player->setXpLevel($arena->getTime());

$player->sendTip($floatRight . Color::BOLD . $name . Color::RESET . "\n" . $floatRight . Color::BOLD . Color::BLUE . "Arena§7: " . Color::RESET . Color::RED . $arena->getName() . Color::RESET . "\n" . $floatRight . Color::BOLD . Color::GREEN . "Players§7: §b" . count($pocketPlayers) . "§7/§b" . $arena->getMaxPlayers() . Color::RESET . "\n" . $floatRight . Color::BOLD . Color::GREEN . "Status§7: " . Color::RESET . $arena->getStatusColor() . Color::RESET . "\n" . $floatRight . Color::BOLD . Color::AQUA . "OP Votes§7: " . count($arena->getChestVotes('op')) . Color::RESET . "\n" . $floatRight . Color::BOLD . Color::GOLD . "Normal Votes§7: " . count($arena->getChestVotes('normal')) . Color::RESET . "\n" . $floatRight . Color::BOLD . Color::YELLOW . "Time:" . Color::RESET . "\n" . $floatRight . Color::BLUE . " " . $time . "\n" . $floatRight . Color::BOLD . Color::GOLD . Color::RESET . "\n" . $floatRight . Color::BOLD . Color::RED . "Coins§7: " . Color::RESET . number_format($economy->myMoney($player->getName())) . Color::RESET . "\n" . $floatRight . Color::BOLD . Color::WHITE . strtolower($mainConfig->get('serverIp')) . Color::RESET . "\n" . $float);

if ($arena->getTime() <= 10) {
if ($arena->getStatus() != Arena::FULL) $arena->setStatus(Arena::STARTING);

$playerArena = self::getMain()->getPlayer($player->getName());

if ($arena->getTime() == 10) {
if ($playerArena instanceof mainPlayer) {
$playerArena->setArenaValues();
}
#0 src/pocketmine/scheduler/TaskHandler(159): SkyWars\Tasks\Game->onRun(integer 142133)
#1 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 142133)
#2 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 142133)
#3 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 142133)
#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(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#8 src/pocketmine/PocketMine(299): pocketmine\server()
#9 (1): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show