feat: 添加 anti-feature 功能

This commit is contained in:
2025-04-26 14:13:37 +08:00
parent 81d81b8a03
commit a537906a17
4 changed files with 24 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022-2023. Gardel <sunxinao@hotmail.com> and contributors
* Copyright (C) 2022-2025. Gardel <sunxinao@hotmail.com> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
@@ -33,10 +33,11 @@ type MetaInfo struct {
Homepage string `json:"homepage,omitempty"`
Register string `json:"register,omitempty"`
} `json:"links"`
FeatureNonEmailLogin bool `json:"feature.non_email_login,omitempty"`
FeatureLegacySkinApi bool `json:"feature.legacy_skin_api,omitempty"`
FeatureNoMojangNamespace bool `json:"feature.no_mojang_namespace,omitempty"`
FeatureEnableProfileKey bool `json:"feature.enable_profile_key,omitempty"`
FeatureNonEmailLogin bool `json:"feature.non_email_login,omitempty"`
FeatureLegacySkinApi bool `json:"feature.legacy_skin_api,omitempty"`
FeatureNoMojangNamespace bool `json:"feature.no_mojang_namespace,omitempty"`
FeatureEnableProfileKey bool `json:"feature.enable_profile_key,omitempty"`
FeatureEnableMojangAntiFeatures bool `json:"feature.enable_mojang_anti_features,omitempty"`
}
type ServerMeta struct {