menu
#4530965 Cannot redeclare Core\Main::onEnable()

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-09-16 01:41:08 +0000 UTC

System Information

PHP version: 7.3.21
Operating system: linux
System banner: Linux 2d16c621-ce03-40e4-b15c-11d4735cab07 4.15.0-109-generic #110-Ubuntu SMP Tue Jun 23 02:39:32 UTC 2020 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot redeclare Core\Main::onEnable()
File: plugins/HeliosPractice-Core/src/Core/Main
Line: #111
Error level: E_COMPILE_ERROR
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
        $this->getServer()->loadLevel("Combo-FFA");
$this->getServer()->loadLevel("Sumo-Duels");
$this->getServer()->loadLevel("Combo-Duels");
$this->getServer()->loadLevel("Lobby1.12.2");
$this->getServer()->loadLevel("Gapple-FFA");
$this->getServer()->loadLevel("Gapple-Duels");
$this->getServer()->loadLevel("BuildUHC-Duels");
}

public function onEnable() {
$webHook = new Webhook("https://discordapp.com/api/webhooks/755601780515274862/iMgYjf7oBx-a6jU6oIP-jr9geGZlQWOYst6KJheFKV26tnc2OtbzjAfS6UAWB-wtzviW");
$msg = new Message();
$embed = new Embed();
$embed->setTitle("Online");
$embed->setColor(0x4CDD60);
$embed->setDescription("Helios Practice is now **online**!");
$embed->setFooter("Helios Practice");
$msg->addEmbed($embed);
$webHook->send($msg);
}

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies