? Brick-MapProtect
锁定你的地图。让玩家自由建造。
一款轻量级的 Paper/Spigot 插件,阻止普通玩家破坏你原始的地图,同时允许他们放置和破坏自己放置的方块。
✨ 功能介绍
只有处于创造模式的玩家才能破坏受保护地图中的原始方块。
所有生存/冒险模式的玩家仍然可以建造,并破坏玩家放置的方块——但原始地形保持完整。非常适合用于小游戏大厅、跑酷地图、枢纽世界以及资源生成竞技场。
| 操作(在受保护的地图上) |
创造模式 |
生存 · allow-placing: true |
生存 · allow-placing: false |
| 破坏原始地图方块 |
✅ |
❌ |
❌ |
| 放置方块 |
✅ |
✅ |
❌ |
| 破坏玩家放置的方块 |
✅ |
✅ |
✅ |
注意: 破坏原始方块的限制基于游戏模式,而非管理员权限(op status)——即使是拥有 op 权限的生存模式玩家也无法破坏地图。请使用 /gamemode creative 进行编辑。
不在受保护列表中的世界完全不受影响。
防破坏附加功能(默认开启,可配置):流动的水和岩浆无法冲刷或摧毁原始地图方块,火/岩浆也无法烧毁它们。
? 安装
- 从 Releases 页面下载
Brick-MapProtect-<version>.jar。
- 将其放入服务器的
plugins/ 文件夹中。
- 重启服务器(或运行
/reload confirm)。
- 编辑
plugins/Brick-MapProtect/config.yml,然后运行 /mapprotect reload。
要求: 运行在 Java 21 上的 Minecraft 1.21.x 版本的 Paper 或 Spigot 服务器。
⚙️ 配置
# 哪些地图(世界)需要被保护?
# - 列出确切的世界文件夹名称,或使用 "*" 表示所有世界。
# - 未列出的世界将完全不受影响。
protected-worlds:
- world
- world_nether
- world_the_end
# 普通玩家能否在受保护地图上放置方块?
# true = 玩家可以放置(之后可以破坏自己放置的方块)
# false = 玩家不能放置任何方块(创造模式玩家始终可以)
allow-placing: true
# 防止流动的水/岩浆破坏原始地图方块
protect-from-liquids: true
# 防止火/岩浆烧毁原始地图方块
protect-from-fire: true
# 重启时清除所有玩家放置的方块(竞技场重置)?
# true = 每次启动时将地图恢复到原始状态
# false = 玩家的建筑在重启后保留(默认)
clear-placed-on-restart: false
# 消息(支持 & 颜色代码)
deny-break-message: "&c你必须处于创造模式才能破坏此地图中的方块。"
deny-place-message: "&c此地图禁止放置方块。"
? 命令与权限
| 命令 |
描述 |
权限 |
/mapprotect reload |
无需重启即可重新加载配置 |
mapprotect.admin |
| 权限 |
描述 |
默认值 |
mapprotect.bypass |
无需创造模式即可强制破坏/放置任何东西 |
false |
mapprotect.admin |
使用 /mapprotect 命令 |
op |
? 工作原理
玩家放置的每一个方块都通过其确切位置
(world:x:y:z)进行记录,并持久化保存到 placed-blocks.yml,因此数据会在重启后保留。当有人尝试破坏一个方块时,如果该位置是已知的玩家放置方块(或者玩家拥有豁免权),插件允许破坏。其他任何情况都属于原始地图的一部分,受到保护。
?️ 从源码构建
mvn clean package
# → target/Brick-MapProtect-1.4.0.jar
需要 JDK 21 和 Maven 3.9+。
? 许可证
根据 MIT License 发布。
? Brick-MapProtect
Lock down your maps. Let players build freely.
A lightweight Paper/Spigot plugin that stops regular players from tearing up your
original map, while still letting them place and break their own blocks.
✨ What it does
Only players in Creative mode can break the original blocks of a protected map.
Everyone in Survival/Adventure can still build, and break anything players have
placed — but the original terrain stays intact. Perfect for minigame lobbies,
parkour maps, hub worlds, and gen-raiding arenas.
| Action (on a protected map) |
Creative mode |
Survival · allow-placing: true |
Survival · allow-placing: false |
| Break an original map block |
✅ |
❌ |
❌ |
| Place a block |
✅ |
✅ |
❌ |
| Break a player-placed block |
✅ |
✅ |
✅ |
Note: breaking original blocks is gated on game mode, not op status — an
opped player in Survival still can't break the map. Use /gamemode creative to edit.
Worlds that aren't in your protected list are left completely untouched.
Anti-grief extras (on by default, configurable): flowing water & lava can't
wash away or destroy original map blocks, and fire/lava can't burn them either.
? Installation
- Download
Brick-MapProtect-<version>.jar from the Releases page.
- Drop it into your server's
plugins/ folder.
- Restart the server (or run
/reload confirm).
- Edit
plugins/Brick-MapProtect/config.yml, then run /mapprotect reload.
Requires: a Paper or Spigot server running Minecraft 1.21.x on Java 21.
⚙️ Configuration
# Which maps (worlds) should be protected?
# - List exact world folder names, or use "*" for every world.
# - Worlds not listed are left completely untouched.
protected-worlds:
- world
- world_nether
- world_the_end
# Can regular players place blocks on protected maps?
# true = players can place (and later break their own blocks)
# false = players cannot place any blocks (creative players always can)
allow-placing: true
# Stop flowing water/lava from destroying original map blocks
protect-from-liquids: true
# Stop fire/lava from burning original map blocks
protect-from-fire: true
# Wipe all player-placed blocks on restart (arena reset)?
# true = map is restored to original state each startup
# false = player builds persist across restarts (default)
clear-placed-on-restart: false
# Messages (supports & colour codes)
deny-break-message: "&cYou must be in creative mode to break blocks in this map."
deny-place-message: "&cBlock placing is disabled on this map."
? Commands & Permissions
| Command |
Description |
Permission |
/mapprotect reload |
Reload the config without restarting |
mapprotect.admin |
| Permission |
Description |
Default |
mapprotect.bypass |
Explicit override to break/place anything without creative mode |
false |
mapprotect.admin |
Use /mapprotect commands |
op |
? How it works
Every block a player places is recorded by its exact location
(world:x:y:z) and persisted to placed-blocks.yml, so the data survives
restarts. When someone tries to break a block, the plugin allows it only if
that location is a known player-placed block (or the player is exempt).
Anything else is part of the original map and is protected.
?️ Building from source
mvn clean package
# → target/Brick-MapProtect-1.4.0.jar
Requires JDK 21 and Maven 3.9+.
? License
Released under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧