menu
#4531818 Cannot redeclare ArenaPVP\libs\clans\ClanManager::addClan()

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-09-16 12:12:28 +0000 UTC

System Information

PHP version: 7.3.22
Operating system: linux
System banner: Linux vps-creacion 5.4.0-1021-gcp #21-Ubuntu SMP Fri Jul 10 06:53:47 UTC 2020 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot redeclare ArenaPVP\libs\clans\ClanManager::addClan()
File: plugins/ArenaPvP.phar/src/ArenaPVP/libs/clans/ClanManager
Line: #45
Error level: E_COMPILE_ERROR
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
	
public function addClan(array $data) {
$this->getDataBase()->set($data['name'], array('owner' => $data['owner'], 'members' => $data['members'], 'isPrivate' => $data['isPrivate'], 'slots' => $data['slots'], 'balance' => 1000));
$this->getDataBase()->save();
$clanClass = new Clan($data['name'], $data['owner'], $data['members'], $data['isPrivate'], $data['slots'], 1000);
$this->addClan($clanClass);
ArenaBase::sendSucces("§aThe clans have been loaded! Number of clans: §6" . count($this->getClans()));
}

public function addClan(Clan $clan) {
$this->clans[$clan->getName()] = $clan;
}

/**
* @param string $name
* @return null|Clan
*/
public function getClanByName(string $name):? Clan {
foreach ($this->getClans() as $clan) {
if ($clan->isClan($name)) {

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies