menu
#2824338 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 11:15:58 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: win
System banner: Windows NT DESKTOP-NK1U71L 10.0 build 17134 (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/music/src/music/Main
Line: #28
Error level: E_COMPILE_ERROR
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
class Main extends PluginBase implements Listener {

public function onEnable()
{
$this->getServer()->getPluginManager()->registerEvents($this,$this);
}

public function onCommand(CommandSender $sender, Command $command, string $label, array $args): bool {

if(!$sender instanceof Player) return;

switch($command->getName())
{
case "music":
$this->PlayMusic($sender);
break;
}
return true;
}

Loaded Plugins

  • Show

Server Settings

  • Show