
简介
一款简单、高效且轻量的插件,可在授予相应权限之前阻止玩家与方块进行交互。该插件会阻止所有类型的方块交互,甚至包括桶的使用和画作的交互。它还会向被拒绝建造权限的玩家发送一条可自定义的消息。在你声称这已经存在之前,请先看看这个插件与其他同类插件相比有多么轻量。这是为那些需要尽可能轻量的防建造插件的服务器管理员准备的。
它的优势是什么?
- 作为一名服务器管理员,我一直在寻找一款能够在客人晋升到下一个等级之前只阻止他们建造的插件。我找到的唯一一款具有此功能的插件包含太多我不想要或不需要的选项,迫使我不得不自己开发一款。相比之下,我之前使用的插件文件大小是 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
评论 0
登录后参与评分
还没有评论,来抢沙发吧