menu
#2824741 A function with return type must return a value

Submitted by PocketMine-MP 3.9.4

General information

Version: 3.9.4
Git commit: 1be6783c
Plugin involvement: Direct
Report date: 2019-09-11 13:55:42 +0000 UTC

System Information

PHP version: 7.3.8
Operating system: win
System banner: Windows NT KORARITCOM 10.0 build 17763 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: A function with return type must return a value
File: plugins/MspawnDis10/src/MSpawns/MSpawns
Line: #263
Error level: E_COMPILE_ERROR
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
		public function teleportToSpawn(int $currentTick,Player $player, Level $level = null) : bool {
if($level){
$lvl = $level;
}else{
$lvl = $player->getLevel();
}
if($this->spawnExists($lvl)){
$spawn = $this->getSpawn($lvl);
$player->teleport(new Position($spawn["X"], $spawn["Y"], $spawn["Z"], ($level == null) ? null : $lvl), $spawn["Yaw"], $spawn["Pitch"]);
return;
}
return;
}
}, 201);
}


/**
* Check if force spawn is enabled in config
*

Loaded Plugins

  • Show

Server Settings

  • Show