ForgeModBlocker Forge Mod 拦截器 | |
---|---|
![]() |
控制你的玩家可以使用哪些mod |
作 者 | Mas |
发布时间 | 2017年8月6日 |
支持核心 | Spigot | 原生版本 |
支持版本 | 1.8,1.9,1.10,1.11,1.12 |
插件详细介绍
🛡️ ForgeModBlocker 是一款可配置的插件,允许您控制 Spigot 服务器上 Forge Mods 的使用,您可以选择允许或禁止玩家使用特定的 Forge 模组。它是同类产品中第一个完全可定制且完全免费的插件。
ForgeModBlocker 运行时不再需要任何插件依赖!
但 ForgeModBlocker 至少需要 Java 8 才能运行。如果您的服务器还在使用 Java 7,请尽快更新。
以下是插件的当前配置文件:
# The action to be performed on players using a disallowed mod
# Valid actions:
# KICK - Kicks the player
# BAN - Bans the player
# NONE - Does nothing
action: KICK
# The kick message to be displayed to players using a disallowed mod
kick_message: '&cYou are using a disallowed mod!'
# The ban message to be displayed to players using a disallowed mod
ban_message: 'You have been banned for using a disallowed mod!'
# Whether or not the action should only be performed if the player doesn't have the "fmb.bypass" permission
# Set this to true if you want to allow certain players to use disallowed mods
bypass_permission: false
# Whether or not players should be able to use Forge at all.
# If set to true, any player using Forge will be affected by the selected action.
# If set to false, only the mods in the "mods" list will be checked.
block_forge: false
# Whether or not to perform the action async.
# If set to true, the action will be performed async.
# If set to false, the action will be performed sync.
# Only set this to true if you know what you are doing.
action_async: false
# The list of mods to be checked for.
# To find a mod's ID, open Forge with the mod installed, click "Mods" on the title screen, find the mod and look at the "Mod ID" field.
# Mod IDs are case sensitive.
mods:
- examplemodid
# The list of mods to be whitelisted.
# This list overrides the blacklist.
# If a mod is in both the whitelist and the blacklist, it will be whitelisted.
whitelist: []
# Should the plugin attempt to download updates automatically?
auto_update: true
如果更新对配置进行了添加,您需要在安装更新时删除您的配置文件。它将被重新生成,并包含新的选项。
要将模组添加到配置文件的模组列表中,您必须找到其模组 ID。您可以通过以下方式找到模组 ID:打开 Forge,点击主屏幕上的“Mods”,找到该模组,并查看“Mod ID”字段:
模组 ID 区分大小写。
还有一些通过充当 Forge 模组来工作的作弊客户端。如果您将这些模组添加到配置中,您可以可靠地封禁他们。
/fmb
:主命令,显示模组版本并列出子命令。fmb.main_command
/fmb reload
:重新加载插件。fmb.reload_command
/mods <player>
:列出玩家加载的模组。fmb.mods_command
fmb.*
:授予所有插件权限。默认情况下,此权限不授予给 OP 玩家。fmb.update_notification
:拥有此权限的玩家将收到可用插件更新的通知。fmb.bypass
:拥有此权限的用户将免受模组白名单/黑名单的限制。默认情况下,此权限不授予给 OP 玩家。/plugins/bStats/config.yml
文件并将“enabled”设置为 false 来禁用它们。除了以上所有功能外,如果您的服务器上安装了 PlaceholderAPI,ForgeModBlocker 还可以连接到 PlaceholderAPI。
占位符在“forgemodblocker”ID 下注册。
可用的占位符:
forge
:玩家是否正在使用 forge - 返回“true”或“false”mods
:玩家正在使用的所有模组 - 例如:FML, mcp, Forge如果您对 ForgeModBlocker 的任何新功能有任何想法,请在“讨论”选项卡或评论中提出建议。
该项目的源代码可以在我的 GitHub 上找到:
https://github.com/Mas281/ForgeModBlocker
任何代码问题/建议都应通过 Issues 或 Pull Requests 提出。
ForgeModBlocker 项目在 Mozilla Public License 2.0 下获得许可。
简单条款:
评论不是抱怨错误的地方,它们是建设性的反馈。鼓励所有建设性和有用的评论。
如果您通过 PM 将错误发送给我或在“讨论”选项卡中发送它们,则可以更快地修复错误。