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)
答案 0 :(得分:3)
创建实例时,您缺少一个布尔值。确保TFM_Admin
类和new
语句中的args匹配。
答案 1 :(得分:-2)
你错过了一个布尔值(isActivated
)。