menu
#7034237 Declaration of ArtinHector\AmniatUI\Main::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void

Submitted by PocketMine-MP 4.4.0

General information

Version: 4.4.0
Git commit: f2299a56
Plugin involvement: Direct
Report date: 2022-06-23 10:42:50 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 seconds

System Information

PHP version: 8.0.19
Operating system: win
System banner: Windows NT WIN-PUD9TJSCPQ8 10.0 build 17763 (Windows Server 2016) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of ArtinHector\AmniatUI\Main::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void
File: plugins/AmniatUI.phar/src/ArtinHector/AmniatUI/Main
Line: #22
Error level: E_COMPILE_ERROR
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use pocketmine\utils\TextFormat as AU;
use jojoe77777\FormAPI\CustomForm;
use pocketmine\level\sound\EndermanTeleportSound;
use pocketmine\level\sound\BlazeShootSound;

class Main extends PluginBase implements Listener
{
public const AT = AU::GRAY . "[ " . AU::DARK_GREEN . "Matrix" . AU::GRAY . " ] ";

public function onEnable()
{
$this->getServer()->getLogger()->alert(self::AT . AU::YELLOW . " Plugin Enable");
$this->getServer()->getPluginManager()->registerEvents($this, $this);

$this->name = new Config($this->getDataFolder() . "name.yml", Config::YAML, []);
$this->password = new Config($this->getDataFolder() . "password.yml", Config::YAML, []);
parent::onEnable();
}

public function join(PlayerJoinEvent $event)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show