一款与游戏无关的 Fabric 模组,用于在检测到包含 未获 OSI 批准 许可证的模组时阻止游戏启动。如果发现了非开源模组,游戏将会崩溃,并且不合规的模组信息将被输出到日志中。
此模组不依赖 Minecraft,因此它与任何可以通过 Fabric 加载器加载的游戏都兼容。这意味着该模组完全不受版本限制,应该可以在 Fabric 支持的任何版本的 Minecraft 上运行。
本模组旨在服务于那些关心开源、并希望防止意外下载 (1) 许可不当或 (2) 许可不佳的模组的用户。
误报情况
为了尊重用户,此模组永远不会尝试发起任何网络请求来更新许可证列表。因此,许可证列表可能会过时。请向问题追踪器报告此情况,并稍后检查是否有更新版本。
此外,许多模组并未将其许可证名称提供为有效的 SPDX 许可证标识符。这可能会导致那些虽然是开源但命名不当的许可证出现问题。我试图处理此类情况,但效果并不完美。你只需将许可证添加到配置文件中即可修复此问题,但**请将许可证名称的其他拼写方式报告到 GitHub 上的问题追踪器**。这将使未来使用该模组的用户受益。
配置
可以使用配置文件添加额外的许可证,该文件位于 config/absolutely_proprietary.json。还可以添加模组排除项,以白名单形式指定特定模组。
配置键
allowed_license: 允许的许可证列表。使用 @<id> 从内置许可证集中包含许可证。支持的包含集:@osi、@alt、@cc(知识共享 Creative Commons)。
allowed_mods: 白名单中的模组。如果被列入白名单,则跳过许可证检查。使用 @<id> 从内置模组集中包含模组。支持的包含集:(无)。
fallback_to_parent: 如果为 true,将尝试为没有嵌入式许可证的模组回退到其父模组的许可证。
whitelist_builtin: 如果为 true,将对 Java 等内置内容进行白名单处理。在大多数情况下,此项应为 true。
Game-agnostic fabric mod to prevent games from starting if mods with non-osi approved licenses are found. If non-open-source mods are found, the game will crash, and non-compliant mods will be output to logs.
This mod does not depend on minecraft, so it is compatible with any game that can be loaded with fabric loader. Thus, this mod is completely version agnostic, so it should work on any version of minecraft that fabric supports.
This mod is designed for people who care about open source, and want a way to prevent accidental downloads of (1) improperly licensed or (2) poorly licensed mods.
False positives
In order to respect the user, this mod never attempts to make any network requests to update the license list. Thus, the license list may become outdated. Please report this to the issue tracker, and check back later for an updated version.
Additionally, many mods do not provide their license names as valid SPDX license identifiers. This may cause problems for licenses that are open source but improperly named. I attempt to handle such cases, but it's not perfect. You can fix this by simply adding the license to the configuration, but please report alternative spellings of license names to the issue tracker on github. This improves the mod for future users.
Config
Additional licenses can be added with the configuration file, located in config/absolutely_proprietary.json. Mod exclusions can also be added, to whitelist specific mods.
Configuration Keys
allowed_license: List of allowed licenses. Use @<id> to include licenses from builtin license sets. Supported include sets: @osi, @alt, @cc (creative commons).
allowed_mods: Whitelisted mods. If whitelisted, skips license checks. Use @<id> to include mods from builtin mod sets. Supported include sets: (none).
fallback_to_parent: If true, will attempt to fallback licenses for mods without licenses that are embedded in another mod.
whitelist_builtin: If true, builtin things like java will be whitelisted. This should be true for most cases.
评论 0
登录后参与评分
还没有评论,来抢沙发吧