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

Submitted by PocketMine-MP 3.9.6

General information

Version: 3.9.6
Git commit: d1b70bd4
Plugin involvement: Direct
Report date: 2019-11-06 13:52:34 +0000 UTC

System Information

PHP version: 7.3.8
Operating system: win
System banner: Windows NT DESKTOP-5BCAOBU 10.0 build 17763 (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/twitterhelp/src/nick/nick
Line: #34
Error level: E_COMPILE_ERROR
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

public function onCommand(CommandSender $sender, Command $command, string $label, array $args): bool
{
$player = $sender->getPlayer();
switch ($command->getName()) {
case"tutorial";
if (!file_exists($this->getDataFolder() . $player->getName() . "yml")) {
$config = new Config($this->getDataFolder() . $sender->getName() . ".yml", Config::YAML);
$sender->sendMessage("Eingelösst");
return;
break;
} else {
$sender->sendMessage("Command bereits verwendet");
}
return true;
}
}
}


Loaded Plugins

  • Show

Server Settings

  • Show