menu
#4531850 Call to a member function getName() on null

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-09-16 12:30:37 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: linux
System banner: Linux 0803f74406ce 4.9.177-xxxx-std-ipv6-64 #721950 SMP Fri May 17 08:31:25 UTC 2019 x86_64

Error information

Warning: the Vasar plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getName() on null
File: plugins/Vasar_v3.phar/src/Ghezin/cp/duels/groups/BotDuelGroup
Line: #152
Error level: Error
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
			if($this->countdownTick===0) $this->initializePlayers(0);
$this->countdownTick++;
if($this->countdownTick % 20 === 0 and $this->countdownTick !== 0){
$second=self::MAX_COUNTDOWN_SEC - Utils::ticksToSeconds($this->countdownTick);

$this->initializePlayers(0);
if($player->getLevel()->getName()!=$duellevel->getName()){
$player->teleport($arena->getPlayerPos());
}
if($bot->getLevel()->getName()!=$duellevel->getName()){
$bot->teleport($arena->getOpponentPos());
}
if($second !== 0){
if(6 > $second){
$this->broadcastSound(0);
$this->initializePlayers(0);
$this->broadcastMessage("§fThe match will start in §b".$second."§f seconds...");
$this->broadcastTitle("§b".$second);
}
}else{
#0 plugins/Vasar_v3.phar/src/Ghezin/cp/tasks/DuelTask(42): Ghezin\cp\duels\groups\BotDuelGroup->update()
#1 src/pocketmine/scheduler/TaskHandler(137): Ghezin\cp\tasks\DuelTask->onRun(integer 2907021)
#2 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 2907021)
#3 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 2907021)
#4 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 2907021)
#5 src/pocketmine/Server(2154): pocketmine\Server->tick()
#6 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1588): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[48] /home/minecraft/multicraft/servers/server178889/, string[56] /home/minecraft/multicraft/servers/server178889/plugins/)
#9 src/pocketmine/PocketMine(304): pocketmine\server()
#10 (11): require(string[108] phar:///home/minecraft/multicraft/servers/server178889/PMMP-Latest-Stable.phar/s)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies