Fatal error: Class com\MCBE\MCommand contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (pocketmine\command\PluginIdentifiableCommand::getPlugin) in /storage/emulated/0/PocketMine-MP/plugins/PVPHUD-7Wdev/src/com/MCBE/MCommand.php on line 20 PHP: <?phpnamespace com\MCBE;//pmmp libs!use pocketmine\command\PluginIdentifiableCommand;use pocketmine\command\Command;use pocketmine\command\CommandSender;use pocketmine\command\utils\CommandException;use pocketmine\event\player\PlayerCommandPreprocessEvent;use pocketmine\event\server\ServerCommandEvent;use pocketmine\plugin\Plugin;use pocketmine\utils\TextFormat as C;use pocketmine\Player;use pocketmine\event\player\PlayerQuitEvent as Disconnect;//mine libs!use com\MCBE\Main;use com\MCBE\MTask;class MCommand extends Command implements PluginIdentifiableCommand { private $command; public function __construct(Main $plugin) { $cmd = Main::$cfg->get('cmd'); parent::__construct($cmd, "displays pvp hud!", "/" . $cmd, []); $this->setPermission("pvphud.command"); $this->command = $plugin; } public function execute(CommandSender $sender, string $commandLabel, array $args) { if($sender instanceof Player) { $task = new MTask($this, $sender); $this->command->getServer()->getScheduler()->scheduleRepeatingTask(task, 40); } else { //nothing ... } } public function onDisconnect(Disconnect $e) { $e->getPlayer()->cancelMTask(); }}?>
You have to add this function: PHP: public function getPlugin() : Plugin{ return $this->plugin;} As seen by the error above: Hope this helped
In your case, the property that references your plugin is command (which is a hella confusing name, I recommend going with plugin instead)