menu
#2580873 Non-static method Mastercoding\ClanWars\utils\BossBar::removeBossBar() should not be called statically

Submitted by PocketMine-MP 3.8.1

General information

Version: 3.8.1
Git commit: 7521160f
Plugin involvement: Direct
Report date: 2019-07-11 19:16:18 +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: Non-static method Mastercoding\ClanWars\utils\BossBar::removeBossBar() should not be called statically
File: plugins/ClanWars/src/Mastercoding/ClanWars/task/ClanWarsTask
Line: #262
Error level: ErrorException
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
                    }
}

$this->animation++;
if ($this->animation >= count(self::ANIMATION)){
$this->animation = 0;
}

if (count($teamAlive) < 2) {
BossBar::removeBossBar();
foreach ($lobby->getArena()->getLevel()->getPlayers() as $player) {
ScoreBoard::rmScoreboard($player, $lobby->getArena()->getName());
if (isset(Main::$players[$player->getName()])) {
$cwPlayer = Main::$players[$player->getName()];

$cwPlayer->setTeam($cwPlayer->getPos());

if (!$cwPlayer->isSpectator()) {
if ($cwPlayer->getPos() === 1) {
$lobby->setWinner(Main::getInstance()->getClanRed());
#0 plugins/ClanWars/src/Mastercoding/ClanWars/task/ClanWarsTask(262): pocketmine\utils\Utils::errorExceptionHandler(integer 8192, string Non-static method Mastercoding\ClanWars\utils\BossBar::removeBossBar() should not be called statically, string /home/dupegames/Cloud/Wrapper/temp/ClanWars-0$d51201d9-6f3c-4818-8a3e-db5db382e1d8/plugins/ClanWars/src/Mastercoding/ClanWars/task/ClanWarsTask.php, integer 262, array Array())
#1 src/pocketmine/scheduler/TaskHandler(159): Mastercoding\ClanWars\task\ClanWarsTask->onRun(integer 6161)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 6161)
#3 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 6161)
#4 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 6161)
#5 src/pocketmine/Server(2335): pocketmine\Server->tick()
#6 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1775): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(258): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/dupegames/Cloud/Wrapper/temp/ClanWars-0$d51201d9-6f3c-4818-8a3e-db5db382e1d8/, string /home/dupegames/Cloud/Wrapper/temp/ClanWars-0$d51201d9-6f3c-4818-8a3e-db5db382e1d8/plugins/)
#9 (1): require(string phar:///home/dupegames/Cloud/Wrapper/temp/ClanWars-0$d51201d9-6f3c-4818-8a3e-db5db382e1d8/pocketmine.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show