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

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-07-12 04:32:22 +0000 UTC

System Information

PHP version: 7.2.2
Operating system: win
System banner: Windows NT UHUVV16TSDJ7IAR 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) 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/#HologramCoundown/src/Tungst_HLC/Main
Line: #32
Error level: E_COMPILE_ERROR
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
		$this->getServer()->getPluginManager()->registerEvents($a,$this);
}

public function onCommand(CommandSender $sender, Command $command, String $label, array $args) : bool {
switch (strtolower($command->getName())) {
case 'cd':
if ($sender->isOp()) {
if (empty($args[0])) {
$sender->sendMessage("┬že/cd <name> to create hologram");
return;
}
$name = $args[1];
if (isset($this->main->getConfig()->getAll()["location"][$name])) {
$sender->sendMessage("Already has this name");
return;
}
$contents =
[
"name" => $name,
"x" => $sender->x,

Loaded Plugins

  • Show

Server Settings

  • Show