menu
#2824347 A void function must not 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 11:19:28 +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 void function must not 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 onRun(int $currentTick) : void{
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 true;
}
return false;
}
}, 201);
}


public function onPlayerMove(PlayerMoveEvent $event) : void{
if(!$event->getFrom()->equals($event->getTo())){
$player = $event->getPlayer();

Loaded Plugins

  • Show

Server Settings

  • Show