menu
#2822995 A void function must not return a value (did you mean "return;" instead of "return null;"?)

Submitted by PocketMine-MP 3.9.4

General information

Version: 3.9.4
Git commit: 1be6783c
Plugin involvement: Direct
Report date: 2019-09-11 00:57:35 +0000 UTC

System Information

PHP version: 7.2.19
Operating system: win
System banner: Windows NT ERIS 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 void function must not return a value (did you mean "return;" instead of "return null;"?)
File: plugins/ItemStacker/src/Eris11dib/ItemStacker/Main
Line: #69
Error level: E_COMPILE_ERROR
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
        }
return false;
}

public function setFiltered(Player $player): void
{
if (! $this->isFiltered($player)) {
$this->filteredPlayers[$player] = $player->getName();
} else {
return null;
}
}

public function onDisable()
{
file_put_contents($this->getServer()->getDataPath() . 'filteredplayers.txt', json_encode($this->filteredPlayers));
}
}

Loaded Plugins

  • Show

Server Settings

  • Show