menu
#7034532 Declaration of xdolmation\DolAuth\Auth::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 12:20:10 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.19
Operating system: win
System banner: Windows NT 10_0_16_15 6.3 build 9600 (Windows Server 2012 R2 Datacenter Edition) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of xdolmation\DolAuth\Auth::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void
File: plugins/DolAuth/src/xdolmation/DolAuth/Auth
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

class Auth extends PluginBase implements Listener{

private $logindata;
public $authed;
public $data;
public $config;
private $newdata;

public function onEnable(){
$this->getServer()->getPluginManager()->registerEvents($this, $this);
$this->data = new Config($this->getDataFolder() . "data.json", Config::JSON);

}

public function onCommand(CommandSender $sender, Command $cmd, string $label, array $args): bool{
$arguments = "§l(§6AUTHENTICATE§r§l)§r §c/auth (register/login) password";
$username = strtolower($sender->getName());
$adminusage = "§l(§6AUTHENTICATE§r§l)§r ADMIN USAGE: §a/auth admin (seepassword/resetdata/setpassword/seeinfo) (username) (password to set if using setpassword)";
switch($cmd->getName()){

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show