menu
#7034178 Call to a member function sendMessage() on string

Submitted by PocketMine-MP 4.5.1

General information

Version: 4.5.1
Git commit: d641812c
Plugin involvement: Direct
Report date: 2022-06-23 10:24:18 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 38 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux dee53fb4-e42d-460c-aff0-60e873771eb2 5.13.0-1025-azure #29~20.04.1-Ubuntu SMP Thu May 19 14:50:45 UTC 2022 x86_64

Error information

Warning: the PocketVote plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function sendMessage() on string
File: plugins/PocketVote-PocketMine_dev-60.phar/src/ProjectInfinity/PocketVote/task/guru/GetLinksTask
Line: #28
Error level: Error
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
        $this->player = $player;
}

public function onRun(): void {
parent::onRun();
}

public function onCompletion(): void {
if($this->player === 'CONSOLE') {
$this->player->sendMessage(TextFormat::RED.'Console cannot manage links.');
return;
}
$server = Server::getInstance();
$player = $server->getPlayerExact($this->player);

# Player is offline.
if($player === null) return;

if(!$this->hasResult()) {
$player->sendMessage(TextFormat::RED.'Got no response when retrieving links from MCPE.Guru');
#0 pmsrc/src/scheduler/AsyncPool(268): ProjectInfinity\PocketVote\task\guru\GetLinksTask->onCompletion()
#1 pmsrc/src/scheduler/AsyncPool(140): pocketmine\scheduler\AsyncPool->collectTasksFromWorker(int 0)
#2 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\scheduler\AsyncPool->pocketmine\scheduler\{closure}()
#3 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#4 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1655979858.993)
#5 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#6 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#7 pmsrc/src/PocketMine(327): pocketmine\server()
#8 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show