diff --git a/src/validate/plugin.rs b/src/validate/plugin.rs index a533c9d88..8f783126f 100644 --- a/src/validate/plugin.rs +++ b/src/validate/plugin.rs @@ -19,8 +19,6 @@ impl super::Validator for PluginYmlValidator { "spigot", "paper", "purpur", - "bungeecord", - "waterfall", ] } @@ -68,11 +66,14 @@ impl super::Validator for BungeeCordValidator { &self, archive: &mut ZipArchive>, ) -> Result { - if archive.by_name("bungee.yml").is_err() { + if !archive + .file_names() + .any(|name| name == "plugin.yml" || name == "bungee.yml") + { return Ok(ValidationResult::Warning( - "No bungee.yml present for plugin file.", + "No plugin.yml or bungee.yml present for plugin file.", )); - } + }; Ok(ValidationResult::Pass) }