You've already forked AstralRinth
forked from didirus/AstralRinth
Add plugin.yml support for bungeecord & waterfall (#438)
This commit is contained in:
@@ -85,7 +85,7 @@ static VALIDATORS: [&dyn Validator; 12] = [
|
|||||||
&LiteLoaderValidator,
|
&LiteLoaderValidator,
|
||||||
&PackValidator,
|
&PackValidator,
|
||||||
&TexturePackValidator,
|
&TexturePackValidator,
|
||||||
&BukkitValidator,
|
&PluginYmlValidator,
|
||||||
&BungeeCordValidator,
|
&BungeeCordValidator,
|
||||||
&VelocityValidator,
|
&VelocityValidator,
|
||||||
&SpongeValidator,
|
&SpongeValidator,
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ use crate::validate::{
|
|||||||
use std::io::Cursor;
|
use std::io::Cursor;
|
||||||
use zip::ZipArchive;
|
use zip::ZipArchive;
|
||||||
|
|
||||||
pub struct BukkitValidator;
|
pub struct PluginYmlValidator;
|
||||||
|
|
||||||
impl super::Validator for BukkitValidator {
|
impl super::Validator for PluginYmlValidator {
|
||||||
fn get_file_extensions(&self) -> &[&str] {
|
fn get_file_extensions(&self) -> &[&str] {
|
||||||
&["zip", "jar"]
|
&["zip", "jar"]
|
||||||
}
|
}
|
||||||
@@ -16,7 +16,7 @@ impl super::Validator for BukkitValidator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn get_supported_loaders(&self) -> &[&str] {
|
fn get_supported_loaders(&self) -> &[&str] {
|
||||||
&["bukkit", "spigot", "paper", "purpur"]
|
&["bukkit", "spigot", "paper", "purpur", "bungeecord", "waterfall"]
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_supported_game_versions(&self) -> SupportedGameVersions {
|
fn get_supported_game_versions(&self) -> SupportedGameVersions {
|
||||||
|
|||||||
Reference in New Issue
Block a user