#7034360 Declaration of ceepkev77\Version::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void
Submitted by PocketMine-MP 4.5.1
General information
Version: | 4.5.1 |
---|---|
Git commit: | d641812c |
Plugin involvement: | Direct |
Report date: | 2022-06-23 11:20:43 +0000 UTC |
Server uptime: | 0 days 0 hours 0 minutes 0 seconds |
System Information
PHP version: | 8.0.19 |
---|---|
Operating system: | linux |
System banner: | Linux 9199 4.15.0-187-generic #198-Ubuntu SMP Tue Jun 14 03:23:51 UTC 2022 x86_64 |
Error information
Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: | Declaration of ceepkev77\Version::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void |
---|---|
File: | plugins/VersionBlocker_v0.0.1.phar/src/ceepkev77/Version |
Line: | #9 |
Error level: | E_COMPILE_ERROR |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
namespace ceepkev77;
use pocketmine\plugin\PluginBase;
use pocketmine\Server;
class Version extends PluginBase {
public function onEnable()
{
Server::getInstance()->getCommandMap()->unregister(Server::getInstance()->getCommandMap()->getCommand("version"));
}
}
Loaded Plugins
-
Show
Server Settings
-
Show
Installed Composer Dependencies
-
Show
Installed PHP Extensions
-
Show