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

Submitted by PocketMine-MP 3.11.2

General information

Version: 3.11.2
Git commit: a37d7401
Plugin involvement: Direct
Report date: 2020-02-12 20:55:21 +0000 UTC

System Information

PHP version: 7.3.9
Operating system: linux
System banner: Linux gs87665 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 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/DP-jail(src)/src/dpley4/dpley4
Line: #109
Error level: E_COMPILE_ERROR
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
						 return false;
}
if(isset($args[0])){
if(isset($args[1])){
if(!is_numeric($args[1])){
$s->sendMessage("§7[§c☼§7] §fВремя должно быть числом в минутах");
return false;
}
if($args[1]>1000){
$s->sendMessage("§7[§c☼§7] §fПосадить игрока можно максимум на §c1000 минут§f!"); return;
}
$vrem = ($args[1]*60);
if(isset($args[2])){
$reason="";
for($i=2;$i<count($args);$i++){
$reason.=$args[$i];
$reason.=" ";
}
$reason=substr($reason,0,strlen($reason)-1);
$time = $args[1];

Loaded Plugins

  • Show

Server Settings

  • Show