menu
#2824622 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:07:36 +0000 UTC

System Information

PHP version: 7.2.17
Operating system: linux
System banner: Linux 8e3a47321f42 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: #725
Error level: E_COMPILE_ERROR
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
						$expget = explode(",", $gets);
$i++;
$homes .= "§e\n- " . $expget[0];
if($expget[0] == $home){
unset($get[$i-1]);
$config->set($name, implode(";", $get));
$config->save();
$sender->sendMessage("§8(§aТелепорт§8)§e × §fТочка дома§b $home §fудалена!");
if($config->get($name) == ""){ $config->remove($name); $config->save(); }
return;
}
}
$sender->sendMessage("§8(§aТелепорт§8)§e × §fУ вас нет точки дома с названием§a $home!");
$sender->sendMessage("§8(§aТелепорт§8)§e × §fВаши точки дома:§c" . $homes); return;
}else{
$sender->sendMessage("§8(§aТелепорт§8)§e × §fУ вас нет точек дома! Установите их при помощи§a /sethome <название>");
}
break;

case "home":

Loaded Plugins

  • Show

Server Settings

  • Show