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

Submitted by PocketMine-MP 3.8.3

General information

Version: 3.8.3
Git commit: 63e58677
Plugin involvement: Direct
Report date: 2019-06-12 02:22:53 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux fhost 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 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/worldfix/src/WorldFixer/WorldFixer
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
    public $selectors = [];

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

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

if(!$sender instanceof Player){
return;
}

if(strtolower($cmd->getName()) == "wf"){
if(!isset($args[0])){
$sender->sendMessage(TextFormat::RED."Use /wf help for help");
return;
}
switch(strtolower($args[0])){
case "fixcolor":
if(!$sender->hasPermission("wf.command.fixcolor") && !$sender->isOp()){

Loaded Plugins

  • Show

Server Settings

  • Show