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

Submitted by PocketMine-MP 3.9.2

General information

Version: 3.9.2
Git commit: 7a747d6f
Plugin involvement: Direct
Report date: 2019-09-11 13:00:40 +0000 UTC

System Information

PHP version: 7.2.17
Operating system: linux
System banner: Linux cec4226ef62a 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64

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/MYapi/src/MYapi/Main
Line: #566
Error level: E_COMPILE_ERROR
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
				   break;
}
$warps = $this->warps; if(isset($args[0])) $warp = strtolower($args[0]);

$warplist = (count($warps) > 0 ? implode("§c, ", array_keys($warps)) : "§fНет варпов");

if(!isset($args[0]) or !isset($warps[$warp])){
$sender->sendMessage("§fИспользуйте: §a/warp <название>");
$sender->sendMessage("§fСписок варпов сервера: §a" . $warplist . "§f.");
return;
}

$sender->teleport(new Vector3($warps[$warp]["x"], $warps[$warp]["y"], $warps[$warp]["z"]));
$sender->sendMessage("§fТелепортация на варп §a{$warp}§f.");
break;

/* Статус сервера */
case "info":
$ons = count($this->getServer()->getOnlinePlayers());
$onse = $this->getServer()->getMaxPlayers();

Loaded Plugins

  • Show

Server Settings

  • Show