
简介
一款简单、高效且轻量的插件,可在授予相应权限之前阻止玩家与方块进行交互。该插件会阻止所有类型的方块交互,甚至包括桶的使用和画作的交互。它还会向被拒绝建造权限的玩家发送一条可自定义的消息。在你声称这已经存在之前,请先看看这个插件与其他同类插件相比有多么轻量。这是为那些需要尽可能轻量的防建造插件的服务器管理员准备的。
它的优势是什么?
- 作为一名服务器管理员,我一直在寻找一款能够在客人晋升到下一个等级之前只阻止他们建造的插件。我找到的唯一一款具有此功能的插件包含太多我不想要或不需要的选项,迫使我不得不自己开发一款。相比之下,我之前使用的插件文件大小是 AntiBuild 的 400 倍。当然,它能做更多事情,但我不需要那些其他功能。
主要功能
- 阻止破坏方块
- 无需将大量方块加入黑名单,即可允许玩家放置特定方块
- 阻止放置方块
- 无需将大量方块加入黑名单,即可允许玩家破坏特定方块
- 阻止使用打火石
- 阻止使用熔岩桶和水桶
- 阻止与画作的所有交互
- 阻止与物品框的所有交互
- 阻止打开箱子、熔炉、铁砧、信标、酿造台、工作台、发射器、附魔台、末影箱和工作台。
- 支持方块黑名单
- 通过命令锁定/解锁世界中的建造权限
- 易于使用
- 检查效率极高
- 极其轻量
单个方块的权限
AntiBuild 允许你赋予玩家仅能放置或破坏特定方块的权限。当你只想让玩家能够放置/破坏少数几个方块时,这非常有用。一个示例用法是冒险地图,其中只允许玩家破坏石头、原木、煤矿石、钻石矿石和铁矿石。你只需要为玩家分配权限节点 antibuild.break.[ID],并将 [ID] 替换为你希望他们能够破坏的方块的 ID。如果你希望他们只能放置某些方块,你可以给予他们 antibuild.place.[ID] 权限,并将 [ID] 替换为你希望他们能够放置的方块的 ID。
黑名单
AntiBuild 内置了根据 Item ID 对方块进行黑名单管理的功能。这是一个完全可选的功能,默认情况下处于禁用状态。要启用它,请打开 config.yml 并将 Blacklist-On 的值从 false 更改为 true。启用后,列在 Blacklisted-Blocks 下的任何方块 ID 都将无法放置或破坏。如果玩家拥有 antibuild.blacklist 权限,他们将能够完全绕过黑名单检查。如果玩家拥有 antibuild.blacklist.[Item ID] 权限(例如:antibuild.blacklist.7),他们将能够仅针对该 Item ID 绕过检查。
世界锁定
AntiBuild 还内置了锁定世界的功能,这些世界通常是允许玩家在其中建造的。这对于冒险地图、特殊活动、团体建造或其他任何你需要暂时锁定世界的原因都非常方便。
你可以通过输入 /antibuild lock [world name] 在游戏中锁定一个世界。完成此操作后,只有拥有 antibuild.lock.bypass 权限的人才能建造。其他人将被拒绝建造权限。要解锁一个世界,你可以输入 /antibuild unlock [world name],这将允许所有原本可以建造的人进行建造。要查看当前锁定了哪些世界,你可以输入 /antibuilt list,这将显示当前锁定的世界。
命令
所有命令都可以在游戏中使用正确的权限执行,也可以从控制台执行。
| /antibuild reload | 重新加载配置。需要权限:antibuild.reload |
| /antibuild lock [world] | 锁定提供的世界。需要权限 antibuild.lock |
| /antibuild unlock [world] | 解锁提供的世界。需要权限 antibuild.lock |
| /antibuild list | 显示当前锁定的世界。需要权限 antibuild.lock |
权限
普通权限
| 节点 | 用途 |
|---|---|
| antibuild.bypass | 允许绕过 AntiBuild 检查。这是主要的权限节点,将允许/拒绝玩家进行交互。如果你不需要任何其他功能,只是想允许玩家建造/交互,请给予他们此权限。 |
| antibuild.break | 允许破坏方块 |
| antibuild.break.[ID] | 允许破坏提供 ID 的方块 |
| antibuild.break.[ID].[metadata] | 允许破坏具有特定元数据的提供 ID 的方块 |
| antibuild.place | 允许放置方块 |
| antibuild.place.[ID] | 允许放置提供 ID 的方块 |
| antibuild.place.[ID].[metadata] | 允许放置具有特定元数据的提供 ID 的方块 |
| antibuild.fire | 允许使用打火石 |
| antibuild.bucket | 允许使用所有桶 |
| antibuild.bucket.lava | 允许使用岩浆桶(填充和倾倒) |
| antibuild.bucket.water | 允许使用水桶(填充和倾倒) |
| antibuild.painting | 允许与画作和物品展示框交互(破坏/放置) |
| antibuild.interact | 允许与所有库存类方块交互。 |
| antibuild.anvil | 允许与铁砧交互 |
| antibuild.beacon | 允许与信标交互 |
| antibuild.brewing | 允许与酿造台交互 |
| antibuild.chest | 允许与箱子交互(包括储物矿车) |
| antibuild.dispenser | 允许与发射器交互 |
| antibuild.enchanting | 允许与附魔台交互 |
| antibuild.enderchest | 允许与末影箱交互 |
| antibuild.furnace | 允许与熔炉交互 |
| antibuild.hopper | 允许与漏斗交互 |
| antibuild.workbench | 允许与工作台交互 |
| antibuild.pickupitems | 允许玩家拾取地上的物品 |
| antibuild.dropitems | 允许玩家从背包中丢弃物品 |
| antibuild.blacklist.break | 允许绕过黑名单中的方块以进行破坏 |
| antibuild.blacklist.break.[ID] | 允许绕过指定 Item ID 的黑名单方块。 示例:antibuild.blacklist.break.7 |
| antibuild.blacklist.place | 允许绕过黑名单中的方块以进行放置 |
| antibuild.blacklist.place.[ID] | 允许绕过指定 Item ID 的黑名单方块。 示例:antibuild.blacklist.place.7 |
管理员权限
| 节点 | 用途 |
|---|---|
| antibuild.lock | 允许用户访问锁定/解锁/列出命令 |
| antibuild.lock.bypass | 允许绕过已锁定的世界 |
| antibuild.lock.bypass.[world name] | 允许绕过指定名称的已锁定世界 |
| antibuild.reload | 允许访问重载命令 |
配置
首次运行 AntiBuild 时,插件会生成默认的 config.yml 和 lockedWorlds.yml。请勿修改 lockedWorlds.yml(请使用游戏内命令来锁定世界)。config.yml 中有多个选项,您可能不需要更改任何一项。有关这些选项的信息,请参阅 config.yml 文件中的注释。下一个选项是是否启用黑名单功能。如果您已经有其他插件用于屏蔽方块(或者您只是不想使用此功能),请将其设置为 false,这样它将不会执行任何操作。如果将 Blacklist-On 设置为 true,现在您可以开始输入想要屏蔽的方块的 Item ID。这里仅支持 Item ID,因为相比于使用名称,仅通过 ID 检查方块破坏/放置事件可以节省大量时间。
查看默认配置 此处。
安装
- 将 AntiBuild 放入您的插件文件夹中
- 启动服务器以生成默认的 config.yml
- 使用默认设置或根据您的喜好自定义设置,然后重启或重载插件。
即将推出的功能
- 欢迎提出建议,但请注意本插件将保持轻量级。
如果您有建议,请在此处创建工单:
需要帮助或只是想聊聊? 在 EsperNet 上找到我,加入 #MutinyDev 或 #MutinyCraft

About
Simple, efficient, and lightweight plugin that will prevent interaction with blocks until the proper permission is granted. This plugins stops all types of block interaction and it even stops bucket use and painting interaction. It also sends a customizable message to the player who is denied building rights. Before you say this already exists just look at how lightweight this plugin is compared to some of the others. This is for server owners who need a building prevention plugin that is as lightweight as possible.
What is the advantage of this?
- As a server owner myself I have been looking for a long time to find a plugin that just stops my guests from building until they are promoted to the next rank. The only thing I found for this had so many other options that I did not want or need that it forced me to make my own. For comparison the plugin I was previously using was 400 times larger in file size than AntiBuild. Sure, it did a lot more, but I didn't want any of that other stuff.
Main Features
- Prevents breaking of blocks
- Only allow player to place certain blocks without having to blacklist a bunch of blocks
- Prevents placing of blocks
- Only allow player to break certain blocks without having to blacklist a bunch of blocks
- Prevents the use of flint and steel
- Prevents the use of lava and water buckets
- Prevents all interaction with paintings
- Prevents all interaction with item frames
- Prevents opening chests, furnaces, anvils, beacons, brewing stands, crafting tables, dispensers, enchanting tables, ender chests, and workbenches.
- Blacklist blocks
- Lock/unlock building in worlds with a command
- Simple to use
- Very efficient checks
- Extremely lightweight
Per-Block Permissions
AntiBuild allows you to give permissions to players that only allow them to place or break certain blocks. This is very handy when you only want a player to be able to place/break a few blocks. An example use would be an adventure map where a player is only allowed to break stone, log, coal ore, diamond ore, and iron ore. All you need to do is assign the player the permission node antibuild.break.[ID] and replace the [ID] with the block ID of the block you want them to be able to break. If you want them to be able to place only certain blocks you can give them antibuild.place.[ID] and replace [ID] with the block id of the block you want them to be able to place.
Blacklist
AntiBuild has a built in feature for blacklisting blocks by their Item ID. This is a 100% optional feature and it is disabled by default. To enable it open the config.yml and change the Blacklist-On value from false to true. Once it is enabled any block ID that is listed under Blacklisted-Blocks will be blocked from placing or breaking. If a player has the permission antibuild.blacklist they will be able to bypass the blacklist check completely. If a player has the permission antibuild.blacklist.[Item ID] (example: antibuild.blacklist.7) they will be able to bypass the check for that item ID only.
World Locking
AntiBuild also has a built in feature for locking worlds that you would normally allow players to build in. This is handy for adventure maps, special events, group builds, or any other reason you can think of to temporarily lock a world.
You can lock a world in game by typing /antibuild lock [world name]. Once this is done only people with antibuild.lock.bypass permission will be able to build. All others will be denied building rights. To unlock a world you would type /antibuild unlock [world name] and this will allow everyone to build that would normally have had access to build. To check and see what worlds are currently locked you can type /antibuilt list and this will display the currently locked worlds.
Commands
All commands will work from in game with the proper permission and from the console.
| /antibuild reload | Reload the config. Requires permission: antibuild.reload |
| /antibuild lock [world] | Lock the provided world. Requires permission antibuild.lock |
| /antibuild unlock [world] | Unlock the provided world. Requires permission antibuild.lock |
| /antibuild list | Display currently locked worlds. Requires permission antibuild.lock |
Permissions
Normal Permissions
| Node | Usage |
|---|---|
| antibuild.bypass | Allows the bypass of AntiBuild checks. This is the main permission node that will allow/deny players from interacting. If you don't need any of the other features and just want to allow a player to build/interact give them this permission. |
| antibuild.break | Allows the breaking of blocks |
| antibuild.break.[ID] | Allows the breaking of block with the provided block ID |
| antibuild.break.[ID].[metadata] | Allows the breaking of block with the provided block ID with specific metadata |
| antibuild.place | Allows the placing of blocks |
| antibuild.place.[ID] | Allows the placing of block with the provided block ID |
| antibuild.place.[ID].[metadata] | Allows the placing of block with the provided block ID with specific metadata |
| antibuild.fire | Allows the use of flint and steel |
| antibuild.bucket | Allows the use of all buckets |
| antibuild.bucket.lava | Allows the use of lava buckets ( fill and pour) |
| antibuild.bucket.water | Allows the use of water buckets ( fill and pour) |
| antibuild.painting | Allows interaction with paintings and item frames (break/place) |
| antibuild.interact | Allows interaction with all inventory type blocks. |
| antibuild.anvil | Allows interaction with anvils |
| antibuild.beacon | Allows interaction with beacons |
| antibuild.brewing | Allows interaction with brewing stands |
| antibuild.chest | Allows interaction with chests (including storage minecarts) |
| antibuild.dispenser | Allows interaction with dispensers |
| antibuild.enchanting | Allows interaction with enchanting tables |
| antibuild.enderchest | Allows interaction with ender chests |
| antibuild.furnace | Allows the interaction with furnaces |
| antibuild.hopper | Allows the interaction with hoppers |
| antibuild.workbench | Allows the interaction with crafting benches |
| antibuild.pickupitems | Allows the player to pickup items on the ground |
| antibuild.dropitems | Allows the player to drop items from their inventory |
| antibuild.blacklist.break | Allows the bypass of blacklisted blocks for breaking |
| antibuild.blacklist.break.[ID] | Allows the bypass of blacklisted block with entered Item ID. Example: antibuild.blacklist.break.7 |
| antibuild.blacklist.place | Allows the bypass of blacklisted blocks for placing |
| antibuild.blacklist.place.[ID] | Allows the bypass of blacklisted block with entered Item ID. Example: antibuild.blacklist.place.7 |
Admin Permissions
| Node | Usage |
|---|---|
| antibuild.lock | Allows user access to the lock/unlock/list commands |
| antibuild.lock.bypass | Allows the bypass of locked worlds |
| antibuild.lock.bypass.[world name] | Allows the bypass of locked world with specified name |
| antibuild.reload | Allows access to the reload command |
Configuration
When you first run AntiBuild the plugin will generate a default config.yml and a lockedWorlds.yml. Do not touch the lockedWorlds.yml (lock worlds with in game commands). There are several options in the config.yml. You may not need to change any of them. See the comments in the config.yml file for information on them. The next option is whether or not you want the blacklist to be enabled. If you already have a plugin that blacklists blocks (or you just don't want to use it) leave it set to false and it will not do anything. If you set Blacklist-On to true you can now start to enter item IDs of the blocks you wish to block. This only supports item IDs because it saves a decent amount of time when checking block break/place events with just he ID instead of the name.
See the default config here.
Installation
- Put AntiBuild in your plugin folder
- Start server to generate default config.yml
- Use with the default settings or customize it to your liking and restart or reload the plugin.
Upcoming Features
- Feel free to make a request, but keep in mind this plugin will stay lightweight.
If you have a request please create a ticket here:
Need help or just want to chat? Find me on EsperNet on #MutinyDev or #MutinyCraft
下载 AntiBuild
下载 AntiBuild
下载 AntiBuild
下载 AntiBuild
下载 AntiBuild
下载 AntiBuild
下载 AntiBuild
下载 AntiBuild
下载 AntiBuild
下载 AntiBuild
v2.9.2
- 更改了黑名单的工作方式。现在你可以分别指定破坏和放置时的黑名单项目。查看新的 config.yml 以了解新格式和新权限节点。如果你想使用黑名单,你需要将其修改为符合新格式。
v2.9
- 修复了在某些情况下个别黑名单权限不起作用的问题。
v2.8
- 添加了允许特定元数据的权限,用于块放置和破坏权限。例如,如果你希望玩家只能放置和破坏白色羊毛,只需给他们赋予 antibuild.place.35.0 和 antibuild.break.35.0 权限节点即可。通用权限节点格式为 antibuild.place.[ID].[metadata] 和 antibuild.break.[ID].[metadata]
v2.7
- 添加了绕过所有物品栏交互检查的权限:antibuild.interact
- 添加了仅针对特定世界进行锁定的绕过权限:antibuild.lock.bypass.[worldname]
v2.6
- 修复了黑名单不允许在拥有个别权限时放置方块的问题
- 添加了水桶(熔岩和水)的独立权限。(antibuild.bucket.water、antibuild.bucket.lava)
- 添加了不向被拒绝权限的玩家发送消息的功能。只需在配置中用 '' 替换消息即可实现。
- 基于 1.5.2 编译
v2.5
- 修复了黑名单未能阻止你能够放置的生物实体(如船、矿车等)的问题。
v2.4
- 添加了拾取物品的检查。
- 添加了丢弃物品的检查。
- 在配置文件中增加了更多消息,以便服务器管理员进一步自定义选项。
请查看主页以获取权限节点信息。如果你想使用新消息,请将配置选项添加到你的 config 文件中。请查看默认配置文件以了解可以添加哪些选项。在此查看默认配置。
v2.3
- 更新适配 1.5
- 添加了漏斗检查及权限 antibuild.hopper
- 添加了基于物品 ID 的单个方块的破坏和放置权限(具体用法请参阅配置文件)。
如果你想使用单块权限(默认禁用),请生成一个新的配置文件;或者你也可以直接在现有配置文件中添加相关配置项。在此查看默认配置。
v2.2
- 更新适配 1.4.7 R1.0
- 改进了箱子检查,使其更加高效。
v2.1
- 更新适配 1.4.6 r0.3
- 添加了铁砧的检查。
- 添加了信标的检查。
- 添加了酿造台的检查。
- 添加了工作台的检查。
- 添加了发射器的检查。
- 添加了附魔台的检查。
- 添加了末影箱的检查。
- 添加了熔炉的检查。
- 为每个新增检查添加了独立的权限。
注意:所有这些检查都可以通过一个权限节点统一管理!使用 antibuild.bypass(与以往一样)来绕过所有这些检查,或者你可以使用独立的权限。
v2.0
- 更新适配 1.4.5 R1.0
- 在配置文件中添加了黑名单选项(默认禁用)
- 添加了在游戏内重新加载插件的命令。
- 添加了锁定世界的命令。
- 添加了解锁世界的命令。
- 添加了列出当前已锁定世界的命令。
- 为重载命令添加了权限节点。
- 为锁定/解锁/列出命令添加了权限节点。
- 添加了完全绕过黑名单的权限节点。
- 添加了通过物品 ID 绕过黑名单中方块的权限节点。
注意:由于此版本变更较多,请删除 plugins 目录下的整个 AntiBuild 文件夹。这将使 AntiBuild 创建包含更新后 config.yml 的新文件夹。如果你想使用黑名单,请在配置中启用它,并在列表中仅输入物品 ID。
v1.5
- 更新适配 1.4.2
- 添加了物品画框的检查(权限节点与画作相同)
v1.4
- 添加了箱子访问检查
- 添加了箱子访问权限节点 antibuild.chest
注意:使用 antibuild.bypass 节点将允许绕过所有检查,包括新添加的箱子访问检查。
v1.3
- 更新适配 1.3.2
- 添加了破坏、放置、点火、画作和水桶的权限节点。
注意:你不必使用新的权限节点!你可以继续使用 antibuild.bypass 以保持与之前版本完全一致。
v1.2
- 更新适配 1.3.1。
- 修复了由非玩家实体破坏画作引起的罕见错误。
v1.1
- 更改了处理 config.yml 中颜色代码的方式
v1.0
- 首次发布
无
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧