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

Submitted by PocketMine-MP 3.9.4

General information

Version: 3.9.4
Git commit: 1be6783c
Plugin involvement: Direct
Report date: 2019-09-11 08:09:24 +0000 UTC

System Information

PHP version: 7.3.8
Operating system: win
System banner: Windows NT DESKTOP-IMFMMV3 10.0 build 18362 (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/Api/src/Richen/Api/Api
Line: #504
Error level: E_COMPILE_ERROR
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
                    if (preg_match('@[A-zA-Za-z]@u', implode(" ", $args))) {
return $sender->sendMessage("§cВНИМАНИЕ! §6" . Groups::getFakeName($sender->getName()) . "§8: §e" . implode(" ", $args));
// return $p->sendMessage("§8* §6В чате запрещены английские буквы.");
}

$this->getServer()->broadcastMessage("§cВНИМАНИЕ! §6" . Groups::getFakeName($sender->getName()) . "§8: §e" . implode(" ", $args));
break;

case "top":
if (!$sender Instanceof Player) return;

if ($groupLVL < 1) {
$groupsPlug->sendGroupMessage($sender, 1, 'top');
return true;
}
$sender->teleport(new Position($sender->getX(), 300, $sender->getZ()));
$sender->sendMessage("§eТелепортация..");
break;

case "vanish":

Loaded Plugins

  • Show

Server Settings

  • Show