menu
#2387470 Call to a member function sendTip() on null

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-05-15 18:03:21 +0000 UTC

System Information

PHP version: 7.2.8
Operating system: linux
System banner: Linux 4819d4a1f2f3 4.9.144-xxxx-std-ipv6-64 #494761 SMP Mon Dec 10 14:02:48 UTC 2018 x86_64

Error information

Warning: the Kohi1v1 plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function sendTip() on null
File: plugins/Kohi1v1/src/SavionLegends/Kohi1v1/tasks/KohiTask
Line: #120
Error level: Error
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
                    return;
}

$player->sendTip(TextFormat::YELLOW."Waiting for more players....[".count($match->getPlayers())."/2] Starting in: ".gmdate("i:s",$this->tempTime));
}
}elseif($match->getStatus() === GameClass::STARTED){
$match->setTime(($match->getTime()-1));
foreach($match->getPlayers() as $name){
$player = $this->getServer()->getPlayer($name);
$player->sendTip(TextFormat::YELLOW."Match time: ".gmdate("i:s", $match->getTime()));
}
}elseif($match->getStatus() === GameClass::PREPARING){
$this->tempTime--;

if(count($match->getPlayers()) === 2){
$match->start();
}

if($this->tempTime === 0){
$match->start();
#0 src/pocketmine/scheduler/TaskHandler(159): SavionLegends\Kohi1v1\tasks\KohiTask->onRun(integer 8940)
#1 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 8940)
#2 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 8940)
#3 src/pocketmine/Server(2558): pocketmine\plugin\PluginManager->tickSchedulers(integer 8940)
#4 src/pocketmine/Server(2334): pocketmine\Server->tick()
#5 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1774): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/minecraft/multicraft/servers/server55421/, string /home/minecraft/multicraft/servers/server55421/plugins/)
#8 (1): require(string phar:///home/minecraft/multicraft/servers/server55421/PMMP-Latest-Stable.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show