JoinMessages 类型必须实现继承的抽象方法 CommandExecutor.onCommand(CommandSender, Command, String, String[])

The type JoinMessages must implement the inherited abstract method CommandExecutor.onCommand(CommandSender, Command, String, String[])

所以我现在正在尝试制作一个 Minecraft 插件,并且我已经制作了我的代码,其中大部分都是完美的,但是由于某种原因,我从 Eclipse 收到了一次错误消息(标题)写了。

代码在这里找到:https://paste.helpch.at/ucadukekew.java

我的 Main.java 文件也有错误。 "Cannot instantiate the type JoinMessages" 旁边的代码:

this.getCommand("joinmessages").setExecutor(new JoinMessages(this));

有人能帮我解决这个问题吗?如果您有任何问题,请随时告诉我

你用错了Command。您正在使用 com.mojang.brigadier.Command(因为您的 import),但您应该使用 org.bukkit.command.Command.