menu
#2907613 Cannot redeclare Playek\EW\Main::getArena()

Submitted by PocketMine-MP 3.9.6+dev.1777

General information

Version: 3.9.6+dev.1777
Git commit: 247875e3
Plugin involvement: Direct
Report date: 2019-10-10 02:01:36 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux nchosting 4.4.0-164-generic #192-Ubuntu SMP Fri Sep 13 12:02:50 UTC 2019 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot redeclare Playek\EW\Main::getArena()
File: plugins/EggWars.phar/src/Playek/EW/Main
Line: #188
Error level: E_COMPILE_ERROR
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
			$arena->id = $id;
$this->copymap($this->getDataFolder() . "mapas/".$name, $this->getServer()->getDataPath() . "worlds/".$name."-".$id);
$this->registerTeams($id, $arena);
$this->arenaFree = $arena;
$this->arenas[$id] = $arena;
$this->getScheduler()->scheduleRepeatingTask(new EWGame($arena, $this), 20);
}
}

public function getArena(int $id){
$arena = null;
if(isset($this->arenas[$id])){
$arena = $this->arenas[$id];
}
return $arena;
}

public function copymap($src, $dst){
$dir = opendir($src);
@mkdir($dst);

Loaded Plugins

  • Show

Server Settings

  • Show