menu
#3768732 Call to a member function addBan() on null

Submitted by PocketMine-MP 3.11.3

General information

Version: 3.11.3
Git commit: 0d5704b1
Plugin involvement: Direct
Report date: 2020-02-14 10:46:44 +0000 UTC

System Information

PHP version: 7.3.13
Operating system: linux
System banner: Linux f353f23e-740c-4c11-a373-03893c41788a 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64

Error information

Warning: the AntiCheat plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function addBan() on null
File: plugins/AntiCheat_dev-12.phar/src/AntiCheat/Task/CheckPlayerTask
Line: #29
Error level: Error
20
21
22
23
24
25
26
27
28
29
30
31
32
        parent::__construct($plugin);
$this->banapi = $this->owner->getServer()->getPluginManager()->getPlugin("BanAPI");
}

public function onRun(int $currentTick)
{
foreach ($this->owner->getServer()->getOnlinePlayers() as $player) {
if ($player->isOp()) return;
if (!$player->isFlying()) return;
$this->banapi->addBan($player->getName(), "Flying(飛行)", "AntiCheat", true);
}
}
}
#0 src/pocketmine/scheduler/TaskHandler(159): AntiCheat\Task\CheckPlayerTask->onRun(integer 873654)
#1 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 873654)
#2 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 873654)
#3 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 873654)
#4 src/pocketmine/Server(2346): pocketmine\Server->tick()
#5 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1785): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(268): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#8 src/pocketmine/PocketMine(291): pocketmine\server()
#9 (1): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show