menu
#4218628 Declaration of battlekits\command\BattleKitCommand::getPlugin() must be compatible with pocketmine\command\PluginIdentifiableCommand::getPlugin(): pocketmine\plugin\Plugin

Submitted by PocketMine-MP 3.12.2

General information

Version: 3.12.2
Git commit: 9b6b3f50
Plugin involvement: Direct
Report date: 2020-05-22 20:41:37 +0000 UTC

System Information

PHP version: 7.3.16
Operating system: linux
System banner: Linux 8399bc5e-6230-4f1b-893f-fd9762b5c7e3 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1 (2020-01-20) x86_64

Error information

Warning: the BattleKits plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of battlekits\command\BattleKitCommand::getPlugin() must be compatible with pocketmine\command\PluginIdentifiableCommand::getPlugin(): pocketmine\plugin\Plugin
File: plugins/BattleKits_dev-4.phar/src/battlekits/command/BattleKitCommand
Line: #10
Error level: E_COMPILE_ERROR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
namespace battlekits\command;

use battlekits\BattleKits;
use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\command\PluginIdentifiableCommand;
use pocketmine\Player;

class BattleKitCommand extends Command implements PluginIdentifiableCommand{
private $main;
public function __construct(BattleKits $main){
parent::__construct("battlekits", "Get your kits.", "/kit [name]", ["bk", "kit"]);
$this->main = $main;
}
public function execute(CommandSender $sender, $label, array $args){
if(isset($args[0])){
if($sender instanceof Player){
$this->getPlugin()->getKitPaymentController()->grantKit($args[0], $sender);
}

Loaded Plugins

  • Show

Server Settings

  • Show