Minecraft bukkit编码错误,构造函数...不适用

时间:2014-12-16 22:41:08

标签: java minecraft bukkit

final TFM_Admin superadmin = new TFM_Admin(
    constructor TFM_Admin.TFM_Admin(UUID,ConfigurationSection) is not applicable
      (actual and formal argument lists differ in length)
    constructor TFM_Admin.TFM_Admin(UUID,String,Date,String,boolean,boolean,boolean,boolean) is not applicable
      (actual and formal argument lists differ in length)

这是我在下面尝试时出现的错误;我不确定这意味着什么。我正在使用NetBeans为Minecraft开发插件。

final TFM_Admin superadmin = new TFM_Admin(
            uuid,
            player.getName(),
            new Date(),
            "",
            false,
            false,
            true);
    superadmin.addIp(ip);

TFM_Admin中的这个布尔语句是public TFM_Admin(UUID uuid, String lastLoginName, Date lastLogin, String loginMessage, boolean isSeniorAdmin, boolean isTelnetAdmin, boolean isBestMcPlayers, boolean isActivated)

2 个答案:

答案 0 :(得分:3)

创建实例时,您缺少一个布尔值。确保TFM_Admin类和new语句中的args匹配。

答案 1 :(得分:-2)

你错过了一个布尔值(isActivated)。