LegendOfMCPE / EssentialsPE

Port of Bukkit Essentials for @PocketMine Servers (Moved to @poggit-orphanage)
GNU General Public License v3.0
99 stars 21 forks source link

Broken #415

Closed TwistedAsylumMC closed 7 years ago

TwistedAsylumMC commented 7 years ago

Error: Declaration of EssentialsPE\Commands\AFK::execute(pocketmine\command\CommandSender $sender, string $alias, array $args): bool must be compatible with pocketmine\command\Command::execute(pocketmine\command\CommandSender $sender, $commandLabel, array $args) File: /EssentialsPE.phar/src/EssentialsPE/Commands/AFK Line: 10 Type: E_COMPILE_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN : EssentialsPE v2.0.0

Code: [1] <?php [2] namespace EssentialsPE\Commands; [3] [4] use EssentialsPE\BaseFiles\BaseAPI; [5] use EssentialsPE\BaseFiles\BaseCommand; [6] use pocketmine\command\CommandSender; [7] use pocketmine\Player; [8] use pocketmine\utils\TextFormat; [9] [10] class AFK extends BaseCommand{ [11] / [12] @param BaseAPI $api [13] / [14] public function construct(BaseAPI $api){ [15] parent::construct($api, "afk", "Toggle the \"Away From the Keyboard\" status", "[player]", true, ["away"]); [16] $this->setPermission("essentials.afk.use"); [17] } [18] [19] / [20] * @param CommandSender $sender

Sandertv commented 7 years ago

Without providing the information requested in the issue template, we cannot help resolve your issue.