#6718068 Declaration of Test\Main::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void
Submitted by PocketMine-MP 4.3.0
General information
Version: | 4.3.0 |
---|---|
Git commit: | e4ce467c |
Plugin involvement: | Direct |
Report date: | 2022-05-14 06:19:03 +0000 UTC |
Server uptime: | 0 days 0 hours 0 minutes 0 seconds |
System Information
PHP version: | 8.0.17 |
---|---|
Operating system: | win |
System banner: | Windows NT DESKTOP-NL25GDP 10.0 build 19044 (Windows 10) AMD64 |
Error information
Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: | Declaration of Test\Main::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void |
---|---|
File: | plugins/LearningPM4/src/Test/Main |
Line: | #12 |
Error level: | E_COMPILE_ERROR |
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace Test;
use pocketmine\Player\player;
use pocketmine\Server;
use pocketmine\plugin\PluginBase;
use pocketmine\event\Listener;
class Main extends PluginBase implements Listener
{
public function onEnable()
{
$this->getLogger()->info("Plugin Enabled By JuanantonioVYT");
}
public function onDisable()
{
$this->getLogger()->info("Plugin Disabled By JuanantonioVYT");
}
}
Loaded Plugins
-
Show
Server Settings
-
Show
Installed Composer Dependencies
-
Show
Installed PHP Extensions
-
Show