menu
#9648776 A void function must not return a value

Submitted by PocketMine-MP 5.8.2

General information

Version: 5.8.2
Git commit: c3c81b09
Plugin involvement: Direct
Report date: 2023-11-21 00:54:45 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 seconds

System Information

PHP version: 8.1.25
JIT status: Not available
Operating system: linux
System banner: Linux 459d5983-0ab5-4e98-9330-50161bb25f70 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: A void function must not return a value
File: plugins/DbcSkins/src/evilldark200/skins/SkinLoader
Line: #28
Type: E_COMPILE_ERROR
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

public function onEnable(): void
{
self::$instance = $this;
if($player->getRace() == "SayajinG"){
$this->saveResource("sayajin.png", false);
$path = glob($this->getDataFolder() . "sayajin.png");

$this->skin = new Skin("skin." . basename($path), $this->getSkinFromPathImage($img), "", "geometry.sayajin");
return new Skin("geometry.sayajin", $skinbytes, '', $gid, file_get_contents($gpath));
@imagedestroy($img);
}

TypeConverter::getInstance()->setSkinAdapter(new SkinAdapterPersona());
}

public static function getInstance(): SkinLoader
{
return self::$instance;
}

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show