menu
#7304353 A void function must not return a value

Submitted by PocketMine-MP 4.6.0

General information

Version: 4.6.0
Git commit: 3ccd288a
Plugin involvement: Direct
Report date: 2022-08-05 23:28:26 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.15
Operating system: linux
System banner: Linux kareem 5.4.0-109-generic #123-Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022 x86_64

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
File: plugins/BC_CosmeticsManager/src/bcrealm/cmngr/Main
Line: #26
Error level: E_COMPILE_ERROR
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class Main extends PluginBase {

public static self $instance;

public function onEnable(): void {
self::$instance = $this;

$bal = BedrockEconomyAPI::legacy()->getPlayerBalance(
"itsNyroHD", ClosureContext::create(function (?int $balance): void {
return $balance;
},
));



$this->getLogger()->info($bal);


$this->getServer()->getPluginManager()->registerEvents(new PMListener(), $this);
}

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show