menu
#6720212 Declaration of HiroTeam\NetheriteArmor\Main::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): 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 10:09:52 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.16
Operating system: win
System banner: Windows NT DESKTOP-CEOAM85 10.0 build 22000 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of HiroTeam\NetheriteArmor\Main::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void
File: plugins/AddNetherite-HiroTeam_dev-7/src/HiroTeam/NetheriteArmor/Main
Line: #19
Error level: E_COMPILE_ERROR
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

namespace HiroTeam\NetheriteArmor;

use pocketmine\plugin\PluginBase;
use pocketmine\item\Item;
use pocketmine\item\ItemFactory;

class Main extends PluginBase
{
public function onEnable()
{

ItemFactory ::registerItem(new NetheriteBoots(), true);
ItemFactory ::registerItem(new NetheriteChestplate(), true);
ItemFactory ::registerItem(new NetheriteHelmet(), true);
ItemFactory ::registerItem(new NetheriteLeggings(), true);
ItemFactory ::registerItem(new NetheriteSword(), true);
ItemFactory ::registerItem(new NetheritePickaxe(), true);
ItemFactory ::registerItem(new NetheriteShovel(), true);
Itemfactory ::registerItem(new NetheriteAxe(), true);

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show