箱子锁 | 方块保护 | WorldGuard 插件 | 出色的插件!| 完全可自定义!

该插件允许你在配置文件中禁止对任何方块的交互。这个插件是 LWC、Lockette(已弃用)等的绝佳替代品!MachineGuard 支持所有方块以及模组中的方块,例如 IC/BC/RP 的机器。此外,该插件还允许你防止与世界其他区域的方块进行交互,而不仅仅是在 WorldGuard 区域内。
在 WorldGuard 区域中自动保护的方块只有成员/所有者才能访问。但是如果你允许通过告示牌进行保护,玩家可以制作“公共”告示牌(任何人都可以访问)和“私有”告示牌(仅用于在告示牌上指定的玩家,最多三个)。
配置文件(适用于 2.1+):
# 2.0 使用 ID 而不是名称,就像 1.3
enable-uuid-check: false
force-write-players: false
additional-protect: false
block-all: false
only-no-owners: false
msg: '&cYou don''t have access to touch this!'
msg-sign: '&cThis block is already protected!'
msg-locked: '&aThis block protected successfully!'
msg-unlock: '&aThis block is no longer protected!'
sign-block: false
block-list: [DISPENSER, NOTE_BLOCK, BED_BLOCK, CHEST, FURNACE, BURNING_FURNACE, WOODEN_DOOR, LEVER, STONE_BUTTON, JUKEBOX, DIODE_BLOCK_OFF, DIODE_BLOCK_ON, TRAP_DOOR, FENCE_GATE, BREWING_STAND, ENDER_PORTAL_FRAME, FLOWER_POT, ANVIL, HOPPER, DROPPER]
blocked-sign-list: [DISPENSER, NOTE_BLOCK, BED_BLOCK, CHEST, FURNACE, BURNING_FURNACE, WOODEN_DOOR, LEVER, STONE_BUTTON, JUKEBOX, TRAP_DOOR, FENCE_GATE, BREWING_STAND, HOPPER, DROPPER]
旧版配置文件(适用于 1.1-1.3):
deny-ic-interaction: false
ic-list: []
deny-bc-interaction: false
bc-list: []
deny-rp-interaction: false
rp-list: []
custom-list: [23, 25, 26, 54, 61, 62, 63, 64, 68, 77, 84, 93, 94, 96, 107, 117, 120, 140, 145]
deny-lever: true
block-all: false
msg: '&cYou don''t have access to open that'
sign-private: false
sign-list: [23, 25, 26, 54, 61, 62, 63, 64, 68, 77, 84, 96, 107, 117]
- enable-uuid-check: UUID 支持(如果 server.properties 中设置了 "online-mode=false",请保持为 false! 仅在官方服务器(即 "online-mode=true")且拥有 Mojang 授权的情况下启用!开发者更清楚此选项在其插件中的工作原理)
- force-write-players: 如果 true - 即使玩家从未游玩过,也会将其名字写入告示牌;如果 false - 不存在的玩家会在告示牌上标记为 "-",且不会被添加到告示牌保护中
- additional-protect: 在客户端侧经过 2 tick(即 1/10 秒)后关闭方块 GUI
- block-all: 防止在世界任何地方进行交互(不仅限于 WG 区域内部)。适用于冒险服务器(例如 MineZ),用于防止玩家将物品藏在发射器中(以便随后拾取),并防止触碰活板门,因为活板门常在建筑中被使用)
- only-no-owners: 仅对没有所有者的区域启用保护。当需要使区块仅在出生点受到保护时非常有用
- sign-block: 如果你希望允许通过墙上的告示牌来保护方块
- block-list: 要保护的方块列表
- blocked-sign-list: 可以通过告示牌进行保护的方块列表
- msg on Russian: '&cЯ не разрешал тебе сюда лазить!'
- msg-sign on Russian: '&cЭтот блок уже защищён'
- msg-locked on Russian: '&aБлок теперь защищён'
- msg-unlock on Russian: '&aЭтот блок больше не защищён'
- [已弃用] ic-list: IndustrialCraft 模组中要保护的方块的 ID
- [已弃用] bc-list: BuildCraft 模组中要保护的方块的 ID
- [已弃用] rp-list: RedPower 模组中要保护的方块的 ID
- [已弃用] custom-list: 其他要保护的方块的 ID
- [已弃用] deny-lever: 你是否想要保护拉杆?
命令:
- /mgr - 重载插件配置
- /mgid - 获取准星指向的目标方块的名称或 ID,以及手中方块/物品的名称或 ID(在斜杠 "/" 之后)。使用方法: 1. 将你想要添加的方块拿在手中 2. 将其放置在地面上,并保持准星不要离开它 3. 输入命令 /mgid 4. 如果你获得不同的名称或 ID(准星指向的 / 手中的)- 将第一个添加到配置中 5. 如果你获得两个不同的元数据(name_or_ID:meta)- 将第二个添加到配置中 PS:通常只需在配置中指定名称或 ID,无需:meta-data。
# 示例:
- WOOL:0 # 仅白色羊毛受保护
- WOOL:14 # 仅红色羊毛受保护
- WOOL # 所有类型的羊毛均受保护
- CHEST # 所有朝向的箱子均受保护
权限:
- machineguard.bypass.build - 无需告示牌即可访问所有受保护方块(即使你不是成员/所有者)
- machineguard.bypass.build.ID - 无需告示牌即可访问特定方块(例如,仅 VIP 可访问末影箱)
- machineguard.bypass.sign - 带有告示牌即可访问所有受保护方块(即使你的昵称不在告示牌上)
- machineguard.infdis - 允许你创建 [Dispenser] 告示牌
- machineguard.cmdblock - 允许访问命令方块
- machineguard.admin - 既能重载插件配置,也能使用 /mgid 命令(版本 2.2+)
- [已弃用] machineguard.reload - 能够重载插件配置(版本 1.2-2.1)
如何保护:
- 按住 Shift(潜行)或在方块的任意五个方向之一悬挂告示牌(方块必须在配置文件中指定)
- 在第一行写上 "[Public]" 或 "[Private]"(不含引号),并在接下来的所有行中写上授予访问权限的玩家名字
- 如果成功,告示牌的第一行将变为深青色
- 如果要仅让区域成员/所有者访问,而其他人无法访问,只需不悬挂告示牌即可
- [Public] - 任何人都可以与方块交互(公共保护)
- [Private] - 只有告示牌上指定的玩家才能与方块交互(每行一个,不区分大小写)
- [Dispenser] - 发射器将无限掉落物品(不从发射器库存中移除物品)
Chest lock | Block protection | WorldGuard addon | Awesome plugin! | Fully customizable!

This plugin simply allows you to deny any interaction with blocks in config. This addon is great replacement for LWC, Lockette (which abandoned!) and much more! MachineGuard support any block as well as blocks from mods, such as IC/BC/RP machines. In addition, this plugin allows you to prevent interaction with the blocks around the world, not only inside WorldGuard regions.
Blocks automatically protected in WorldGuard regions and only members/owners can access to it. But if you allow protection by sign, players be able to make "public" signs (any player can access to it) and "private" signs (only for players which specified on the sign, maximum is three).
Configuration (for 2.1+):
# 2.0 just uses IDs instead of names like 1.3
enable-uuid-check: false
force-write-players: false
additional-protect: false
block-all: false
only-no-owners: false
msg: '&cYou don''t have access to touch this!'
msg-sign: '&cThis block is already protected!'
msg-locked: '&aThis block protected successfully!'
msg-unlock: '&aThis block is no longer protected!'
sign-block: false
block-list: [DISPENSER, NOTE_BLOCK, BED_BLOCK, CHEST, FURNACE, BURNING_FURNACE, WOODEN_DOOR, LEVER, STONE_BUTTON, JUKEBOX, DIODE_BLOCK_OFF, DIODE_BLOCK_ON, TRAP_DOOR, FENCE_GATE, BREWING_STAND, ENDER_PORTAL_FRAME, FLOWER_POT, ANVIL, HOPPER, DROPPER]
blocked-sign-list: [DISPENSER, NOTE_BLOCK, BED_BLOCK, CHEST, FURNACE, BURNING_FURNACE, WOODEN_DOOR, LEVER, STONE_BUTTON, JUKEBOX, TRAP_DOOR, FENCE_GATE, BREWING_STAND, HOPPER, DROPPER]
Old configuration (for 1.1-1.3):
deny-ic-interaction: false
ic-list: []
deny-bc-interaction: false
bc-list: []
deny-rp-interaction: false
rp-list: []
custom-list: [23, 25, 26, 54, 61, 62, 63, 64, 68, 77, 84, 93, 94, 96, 107, 117, 120, 140, 145]
deny-lever: true
block-all: false
msg: '&cYou don''t have access to open that'
sign-private: false
sign-list: [23, 25, 26, 54, 61, 62, 63, 64, 68, 77, 84, 96, 107, 117]
- enable-uuid-check: UUID support (if you have "online-mode=false" in server.properties, leave it false! Enable only on official servers (with "online-mode=true") with Mojang authorization! The developer knows better how this option works in his plugin)
- force-write-players: if true - writing player on sign even if he never played before; if false - not existing players will mark on sign as "-" and will not be added to sign protection
- additional-protect: closes GUI of block on player client side after 2 ticks - 1/10 of second
- block-all: prevent interactions all over the world (not only inside WG regions). Useful for Adventure servers (for example, MineZ) for prevent players hide things in the dispencers (then to pick up) and prevent touching trapdoors, because it often used in buildings)
- only-no-owners: enabling protect only in regions which has no owners, it useful when needed to make blocks will be protected only on spawn
- sign-block: if you want allow protect blocks by wall sign
- block-list: blocks to protect
- blocked-sign-list: blocks that can be protected by sign
- msg on Russian: '&cЯ не разрешал тебе сюда лазить!'
- msg-sign on Russian: '&cЭтот блок уже защищён'
- msg-locked on Russian: '&aБлок теперь защищён'
- msg-unlock on Russian: '&aЭтот блок больше не защищён'
- [Obsolete] ic-list: ID's of blocks from IndustrialCraft mod to protect
- [Obsolete] bc-list: ID's of blocks from BuildCraft
- [Obsolete] rp-list: ID's of blocks from RedPower
- [Obsolete] custom-list: other ID's of blocks to protect
- [Obsolete] deny-lever: do you want to protect levers?
Commands:
- /mgr - reload plugin configuration
- /mgid - get name or ID of target block (at crosshair) and (after slash "/") of block/item in hand. How to use it: 1. Get block what you want to add in hand 2. Place it on ground and don't move crosshair from it 3. Type command /mgid 4. If you get different names or IDs (at crosshair / in hand) - add first to config 5. If you get two different meta-datas (name_or_ID:meta) - add second to config PS: often enough specify in the config only namr or ID without :meta-data.
# Examples:
- WOOL:0 # Only white wool will protected
- WOOL:14 # Only red wool will protected
- WOOL # Wool of all kinds will protected
- CHEST # Chests of all directions will protected
Permissions:
- machineguard.bypass.build - access to all protected blocks without sign (even if you are not member/owner)
- machineguard.bypass.build.ID - access to certain blocks without sign (for example, access to Ender chest only for VIP)
- machineguard.bypass.sign - access to all protected blocks with sign (even if your nickname is not on the sign)
- machineguard.infdis - allows you to create [Dispenser] signs
- machineguard.cmdblock - allows access to command blocks
- machineguard.admin - ability both for reload plugin configuration and use /mgid command (version 2.2+)
- [Obsolete] machineguard.reload - ability for reload plugin configuration (versions 1.2-2.1)
How to protect:
- Hang the sign on side of the block (or near) while holding Shift (sneaking) or on any of the five directions, the block must be specified in the config file
- Write "[Public]" or "[Private]" on the first line (without quotes) and players to give access on all the next lines
- If successful, first line of sign will colored in dark aqua
- To give access only to the members/owners, composed in region and no one else, just don't hang a sign
- [Public] - everybody can interact with block (public protection)
- [Private] - only players that specified on the sign, can interact with block (one per line, not case-sensitive)
- [Dispenser] - dispensers will drop items infinitely (without removing from dispenser inventory)
评论 0
登录后参与评分
还没有评论,来抢沙发吧