menu
#2907649 Cannot access parent:: when current class scope has no parent

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:29:11 +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: the EggWars_PO plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot access parent:: when current class scope has no parent
File: plugins/EggWars.phar/src/Playek/EW/teams/Cyan
Line: #26
Error level: Error
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
	
public const COLOR = TextFormat::DARK_AQUA;

private $players = []; // Jugadores en el team

public $eggDestroyed = false; //Si su huevo esta destruido
public $isStill_Live = true; //Si el equipo aun esta vivo

public function __construct(Main $main, Arena $arena){
parent::__construct($main, $arena);
$this->main = $main;
$this->arena = $arena;
}

public function getName(): ?String {
return "Cyan";
}

public function getEgg(): Array {
$cfg = $this->main->newConfig("Eggs");
#0 plugins/EggWars.phar/src/Playek/EW/Main(54): Playek\EW\teams\Cyan->__construct(object Playek\EW\Main, object Playek\EW\Arena)
#1 plugins/EggWars.phar/src/Playek/EW/Main(183): Playek\EW\Main->registerTeams(integer 1, object Playek\EW\Arena)
#2 plugins/EggWars.phar/src/Playek/EW/task/SearchArena(34): Playek\EW\Main->anotherGame()
#3 src/pocketmine/scheduler/TaskHandler(159): Playek\EW\task\SearchArena->onRun(integer 1660)
#4 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1660)
#5 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1660)
#6 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 1660)
#7 src/pocketmine/Server(2346): pocketmine\Server->tick()
#8 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1784): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[43] /home/minecraft/multicraft/servers/server1/, string[51] /home/minecraft/multicraft/servers/server1/plugins/)
#11 src/pocketmine/PocketMine(299): pocketmine\server()
#12 (1): require(string[88] phar:///home/minecraft/multicraft/jar/Pocketmine-1.12.phar/src/pocketmine/Pocket)

Loaded Plugins

  • Show

Server Settings

  • Show