menu
#6717470 Declaration of DrelezTM\TheHiveLobbyCore\Main::onLoad() must be compatible with pocketmine\plugin\PluginBase::onLoad(): void

Submitted by PocketMine-MP 4.3.1

General information

Version: 4.3.1
Git commit: f7dce4af
Plugin involvement: Direct
Report date: 2022-05-14 05:13:55 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.18
Operating system: linux
System banner: Linux 25ae4ed2-8b23-45b7-8412-7960c3b50dde 5.13.0-1022-azure #26~20.04.1-Ubuntu SMP Thu Apr 7 19:42:45 UTC 2022 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of DrelezTM\TheHiveLobbyCore\Main::onLoad() must be compatible with pocketmine\plugin\PluginBase::onLoad(): void
File: plugins/CNCore/src/DrelezTM/TheHiveLobbyCore/Main
Line: #34
Error level: E_COMPILE_ERROR
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
    
public function onEnable(){
$this->getServer()->getLogger()->info("§f[§aEnabled§f] TheHiveLobbyCore");
$this->getServer()->getPluginManager()->registerEvents($this,$this);
@mkdir($this->getDataFolder());
$this->saveResource("config.yml");
$this->cfg = new Config($this->getDataFolder() . "config.yml", Config::YAML);
}

public function onLoad(){
$this->getServer()->getLogger()->info("§f[§eLoading§f] TheHiveLobbyCore");
}

public function onDisable(){
$this->getServer()->getLogger()->info("§f[§cDisable§f] TheHiveLobbyCore");
}

public function onJoin(PlayerJoinEvent $event){
$player = $event->getPlayer();
$player->getInventory()->clearAll();

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show