menu
#7862279 Cannot override final method pocketmine\plugin\PluginBase::getName()

Submitted by PocketMine-MP 4.10.1

General information

Version: 4.10.1
Git commit: a39938e6
Plugin involvement: Direct
Report date: 2022-11-24 12:59:21 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.24
JIT status: Disabled
Operating system: win
System banner: Windows NT NOTEBOOKZERO 10.0 build 22000 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot override final method pocketmine\plugin\PluginBase::getName()
File: plugins/Alias/src/Alias
Line: #106
Error level: E_COMPILE_ERROR
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
        $playersData = $this->config->get("playerData");
foreach($playersData as $value){
if($value['name'] != $name){
continue;
}
return $value['Alias'];
}
}

public function getName($Alias)
{
$playersData = $this->config->get("playerData");
foreach($playersData as $value){
if($value['Alias'] != $Alias){
continue;
}
return $value['name'];
}
}
}

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show