menu
#7304171 Cannot override final method CortexPE\Commando\BaseCommand::execute()

Submitted by PocketMine-MP 4.6.1

General information

Version: 4.6.1
Git commit: b20e0453
Plugin involvement: Direct
Report date: 2022-08-05 22:30:16 +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 chillgames 5.10.0-16-amd64 #1 SMP Debian 5.10.127-2 (2022-07-23) x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot override final method CortexPE\Commando\BaseCommand::execute()
File: plugins/PvPBox/src/Coffee/PvPBox/commands/admin/Events
Line: #31
Error level: E_COMPILE_ERROR
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
    
public function __construct(Plugin $plugin, string $name, string $description = "", array $aliases = [])
{
parent::__construct($plugin, $name, $description, $aliases);
$this->setPermission("admin.events");
$this->setPermissionMessage(Manager::ALERT . "Vous n'avez pas la permission d'utiliser cette commande.");
$this->setUsage(Manager::ALERT . "Veuillez faire /events warchest|warden|nexus|viphunt.");
}

public function execute(CommandSender $sender, string $commandLabel, array $args)
{
if (!$this->testPermission($sender)) {
return;
}
if (!isset($args[0])) {
$sender->sendMessage($this->getUsage());
return;
}
switch (strtolower($args[0])) {
case "warchests":

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show