menu
#2580815 Call to a member function getClanWarManager() on boolean

Submitted by PocketMine-MP 3.8.1

General information

Version: 3.8.1
Git commit: 7521160f
Plugin involvement: Direct
Report date: 2019-07-11 18:43:24 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux node2 4.15.18-15-pve #1 SMP PVE 4.15.18-40 (Tue, 21 May 2019 17:43:20 +0200) x86_64

Error information

Warning: the ClanWars plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getClanWarManager() on boolean
File: plugins/ClanWars/src/Mastercoding/ClanWars/task/ClanWarsTask
Line: #141
Error level: Error
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
                                            $player->getCursorInventory()->clearAll();
$player->getArmorInventory()->clearAll();

$pos = $lobby->getArena()->getSpawns()[Main::$players[$player->getName()]->getPos()];
$player->teleport($lobby->getArena()->getLevel()->getSafeSpawn());
$player->teleport($pos);
$player->setViewDistance(8);

$clan = \Mastercoding\Clan\Main::$players[$player->getName()];
$clan->getClan()->getClanWarManager()->setIngame(true);
}
} else {
$player->getInventory()->clearAll();
$player->getCursorInventory()->clearAll();
$player->getArmorInventory()->clearAll();
$player->setGamemode(3);

$player->teleport($lobby->getArena()->getLevel()->getSafeSpawn());
$player->setViewDistance(8);
}
#0 src/pocketmine/scheduler/TaskHandler(159): Mastercoding\ClanWars\task\ClanWarsTask->onRun(integer 2461)
#1 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 2461)
#2 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 2461)
#3 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 2461)
#4 src/pocketmine/Server(2335): pocketmine\Server->tick()
#5 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1775): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(258): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/dupegames/Cloud/Wrapper/temp/ClanWars-0$d6ae154a-a661-412b-9ed9-e7eacd3db7ac/, string /home/dupegames/Cloud/Wrapper/temp/ClanWars-0$d6ae154a-a661-412b-9ed9-e7eacd3db7ac/plugins/)
#8 (1): require(string phar:///home/dupegames/Cloud/Wrapper/temp/ClanWars-0$d6ae154a-a661-412b-9ed9-e7eacd3db7ac/pocketmine.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show