
LandClaimPlugin
基于区块的领土保护插件,适用于 Paper 和 Folia 1.21.6+。
创建领地档案,保护建筑及现代实体,使用原生 Paper 对话框管理设置,集成玩家定位栏,并在网页地图或手持雷达地图上渲染领地范围。
文档 | 安装 | 命令 | 配置
功能特性
核心领地系统
- 领地档案。 为每位玩家提供单个领地档案,或启用多档案模式,让玩家管理独立的基地并通过图形界面切换活动档案。
- 区块与半径领地。 使用
/claim 认领单个 16x16 的区块,或使用 /claim radius <1-5> 批量认领最大半径为 5 个区块的正方形区域。
- 自动认领与取消认领。 通过
/claim auto 和 /unclaim auto 切换行走时的自动认领/取消认领功能,支持可选的连通区块和对角相邻强制判定。
- 手持领地地图。 将实时 128x128 像素的雷达渲染到手持的
FILLED_MAP(填充地图)或物品展示框中,显示领地颜色、联盟关系及玩家朝向。
- 边界可视化。 在 64 格距离剔除的
display_entities(显示实体)、particles(粒子效果)或关闭之间切换。对于基岩版客户端会自动回退到粒子效果。
- 安全脱困。
/claim unstuck 运行异步搜索,将被困玩家传送至最近的野外安全方块。
权限与社会功能
- 四级优先级链。 按照
所有者 > 角色 > 受信任者 > 访客 的顺序评估第一个匹配的层级。
- 自定义角色与 39 项标志位。 配置内置的
Member(成员)和 CoOwner(共同所有者)角色,或添加覆盖方块、容器、工作台、动物、载具、物品及管理菜单的自定义角色。
- 信任、成员、盟友与黑名单。 通过交互式玩家头像选择器邀请成员和受信任的建筑师,建立跨领地联盟,或封禁捣乱者使其在重启后也无法跨越领地边界。
- 公开与私有传送点。 创建命名的领地传送点,通过
/claim publicwarps 发布基地,并通过消歧义菜单处理重复的传送点名称。
保护与开关设置
- 按领地开关。 控制领地 PvP(
/claim pvp <on/off> [seconds])、TNT 爆炸、怪物生成、定位栏隐私/着色、边界以及进入/离开提示音,均在 /claim menu settings 中设置。
- 1.21.6–1.21.11+ 世界安全。 阻止活塞跨越领地边界、苦力怕、风弹触发方块、快乐恶魂骑乘/鞍具更改、铜傀儡跨边界分拣(
1.21.9+)、告示牌编辑、载具盗窃、物品拾取以及带命名空间前缀的命令。
- 野外保护。 可选的
wildernessProtection.enabled 模式会禁止在领地外的建造和交互标志位,除非进一步锁定,否则允许玩家自由战斗或旅行。
- 战斗标记绕过与自动衰减。 防止被战斗标记的玩家躲在领地 PvP 保护之后,并可选择对长期不活跃玩家的土地进行取消认领,VIP/工作人员享有豁免权。
支持的集成
- 网页地图。 BlueMap、Dynmap、Squaremap 和 Pl3xMap 可渲染带有所有者元数据的彩色领地多边形。
- 战斗标记插件。 DeluxeCombat、CombatLogX、PvPManager 和 EternalCombat 会阻止战斗逃跑传送点,并在标记期间禁用 PvP 庇护所。
- WorldGuard。 3D 体积区域交集检查、可配置的区块缓冲区以及自定义的
allow-land-claims 状态标志位。
- Geyser 和 Floodgate。 基于反射的基岩版 CustomForm 和 ModalForm 对话框,用于重命名、颜色设置、放弃、取消所有认领和封禁,无硬性依赖。
- PlaceholderAPI 及插件扩展。 暴露
landclaim 和 claimplugin 占位符,以及 LandClaimAPI 接口和 Bukkit 生命周期事件,供如 LandClaimPlugin-Eco-Addon 等插件扩展使用。
安装
- 从 GitHub Releases 或 Modrinth 下载发布版 JAR 文件。
- 将
LandClaimPlugin.jar 放入服务器的 plugins/ 文件夹。
- 重启服务器(需要 Java 25+ 上的 Paper 或 Folia 1.21.6+)。
- 编辑
plugins/LandClaimPlugin/config.yml、plugins/LandClaimPlugin/locales/messages_en-US.yml 以及 plugins/LandClaimPlugin/menus/ 下的菜单文件,然后运行 /claim admin reload。
从 3.4.0 升级时,会在迁移 YAML 布局并生成更新的 4.0.0 菜单默认值之前,自动将现有文件备份到 config.yml.bk、locales/<message>.yml.bk 和 menus/<menu>.yml.bk。
命令
所有子命令均使用 /claim(别名 /c)或 /unclaim。
| 命令 |
描述 |
/claim |
声明你当前所在的区块 |
/claim radius <1-5> |
以你的位置为中心,声明一个方形区域的区块 |
/claim profiles |
打开活动配置文件选择器 GUI |
/claim create <name> |
创建一个新的声明配置文件 |
/claim auto |
切换行走时的自动声明模式 |
/claim map |
获取手中持有的领土地图(别名 /claim minimap) |
/claim menu |
打开主要的声明管理 GUI |
/claim menu <tab> |
跳转到 settings(设置)、members(成员)、roles(角色)、trusted(受信任者)、visitors(访客)、allies(盟友)、map(地图)或 warps(传送点) |
/claim info |
检查你当前所在区块的声明信息 |
/claim visible |
切换声明边界可视化显示 |
/claim toggle <mode> |
切换模式(display_entities、particles、off) |
/claim pvp <on/off> [time] |
切换声明内的 PvP 状态,可选持续时间(秒) |
/claim rename <name> |
重命名你的活动配置文件 |
/claim color <color> |
通过名称或十六进制代码设置声明颜色 |
/claim ban <player> |
禁止某玩家进入或与你的声明进行交互 |
/claim unstuck |
传送到最近的野外安全方块 |
/claim abandon |
删除你的活动声明配置文件及其所有区块 |
/unclaim |
取消声明当前区块 |
/unclaim radius <1-5> |
取消声明你半径范围内的区块 |
/unclaim all [confirm] |
取消声明活动配置文件中的所有区块 |
有关成员、信任、盟友、传送点和管理员命令(add/set/remove/reset chunk、衰减控制以及 /claim reload)的完整参考,请参阅 Commands Reference。
权限
| 权限节点 |
描述 |
默认值 |
landclaim.* |
授予所有 LandClaimPlugin 节点权限 |
false |
landclaim.claim |
声明土地 |
true |
landclaim.minimap |
获取并使用手中的领土地图 |
true |
landclaim.auto |
切换自动声明模式 |
true |
landclaim.admin |
管理员命令及完全绕过声明/野外的限制 |
op |
landclaim.decay.exempt |
豁免玩家的声明免受自动衰减 |
op |
landclaim.update.notify |
加入时接收更新通知 |
op |
landclaim.limit.<n> |
覆盖最大可声明区块数(例如 landclaim.limit.50) |
false |
landclaim.warps.limit.<n> |
覆盖最大声明传送点数(例如 landclaim.warps.limit.10) |
false |
landclaim.createrole.<n> |
覆盖最大自定义角色数 |
false |
披露
- AI 辅助。 本项目的部分功能使用 AI 编码和文档工具,但这些内容均经过维护者的直接审查、测试并由其负责架构设计。
- 外部网络调用。 启动时会查询公共 Modrinth v2 API (
api.modrinth.com) 以检查版本,除非在配置中设置了 updateChecker.enabled: false。匿名指标数据会通过 bStats 上报,除非在 plugins/bStats/config.yml 中禁用。SQLite 在本地运行;MySQL 和 Redis 仅在配置启用时连接。

LandClaimPlugin
Chunk-based territory protection for Paper and Folia 1.21.6+.
Create claim profiles, protect builds and modern entities, manage settings with native Paper Dialogs, integrate with the Player Locator Bar, and render territories on your web map or held radar map.
Documentation | Installation | Commands | Configuration
Features
Core claiming
- Claim profiles. Give each player a single claim profile or enable Multi-Profile mode so players manage separate bases and switch active profiles through a GUI.
- Chunk and radius claiming. Claim single 16x16 chunks with
/claim or bulk squares up to 5 chunks out with /claim radius <1-5>.
- Auto-claim and auto-unclaim. Toggle walking claim/unclaim with
/claim auto and /unclaim auto, with optional connected-chunk and diagonal-adjacency enforcement.
- Held territory map. Render a live 128x128 pixel radar onto a held
FILLED_MAP or item frame showing claim colors, alliances, and player heading.
- Boundary visualization. Switch between 64-block range-culled
display_entities, particles, or off. Automatically falls back to particles for Bedrock clients.
- Safe unstuck.
/claim unstuck runs an async search to teleport trapped players to the nearest safe wilderness block.
Permissions and social
- Four-tier priority chain. Evaluates
Owner > Role > Trusted > Visitor on the first matching tier.
- Custom roles and 39 flags. Configure built-in
Member and CoOwner roles or add custom roles covering blocks, containers, workstations, animals, vehicles, items, and management menus.
- Trust, members, allies, and bans. Invite members and trusted builders via interactive player-head selectors, form inter-claim alliances, or ban troublemakers so they are turned back at chunk borders across restarts.
- Public and private warps. Create named claim warps, publish bases to
/claim publicwarps, and handle duplicate warp names through a disambiguation menu.
Protection and toggles
- Per-claim toggles. Control claim PvP (
/claim pvp <on/off> [seconds]), TNT explosions, mob spawning, Locator Bar privacy/tinting, borders, and enter/leave titles in /claim menu settings.
- 1.21.6–1.21.11+ world safety. Block pistons crossing claim borders, creepers, Wind Charge block triggers, Happy Ghast mounting/harness changes, Copper Golem cross-border sorting (
1.21.9+), sign editing, vehicle theft, item pickups, and namespace-prefixed commands.
- Wilderness protection. Optional
wildernessProtection.enabled mode denies build and interaction flags outside claims while letting players fight mobs or travel freely unless locked down further.
- Combat tag bypass and auto-decay. Prevents combat-tagged players from hiding behind claim PvP protection and optionally unclaims land from long-inactive players with VIP/staff exemptions.
Supported integrations
- Web maps. BlueMap, Dynmap, Squaremap, and Pl3xMap render colored claim polygons with owner metadata.
- Combat taggers. DeluxeCombat, CombatLogX, PvPManager, and EternalCombat block combat-escape warps and disable PvP sanctuary while tagged.
- WorldGuard. 3D volumetric region intersection checks, configurable chunk buffers, and the custom
allow-land-claims state flag.
- Geyser and Floodgate. Reflection-based Bedrock CustomForm and ModalForm dialogs for renames, colors, abandons, unclaim-all, and bans with zero hard dependency.
- PlaceholderAPI and addons. Exposes
landclaim and claimplugin placeholders plus the LandClaimAPI interface and Bukkit lifecycle events used by addons like LandClaimPlugin-Eco-Addon.
Installation
- Download the release JAR from GitHub Releases or Modrinth.
- Place
LandClaimPlugin.jar into your server plugins/ folder.
- Restart your server (requires Paper or Folia 1.21.6+ on Java 25+).
- Edit
plugins/LandClaimPlugin/config.yml, plugins/LandClaimPlugin/locales/messages_en-US.yml, and menus under plugins/LandClaimPlugin/menus/, then run /claim admin reload.
Upgrading from 3.4.0 automatically backs up existing files to config.yml.bk, locales/<message>.yml.bk, and menus/<menu>.yml.bk before migrating YAML layouts and generating refreshed 4.0.0 menu defaults.
Commands
All subcommands use /claim (alias /c) or /unclaim.
| Command |
Description |
/claim |
Claim the chunk you are standing in |
/claim radius <1-5> |
Claim a square of chunks centered on your position |
/claim profiles |
Open the active profile selector GUI |
/claim create <name> |
Create a new claim profile |
/claim auto |
Toggle auto-claim as you walk |
/claim map |
Receive the held Territory Map (alias /claim minimap) |
/claim menu |
Open the main claim management GUI |
/claim menu <tab> |
Jump to settings, members, roles, trusted, visitors, allies, map, or warps |
/claim info |
Inspect the claim at your current chunk |
/claim visible |
Toggle claim boundary visualization |
/claim toggle <mode> |
Switch mode (display_entities, particles, off) |
/claim pvp <on/off> [time] |
Toggle claim PvP with optional duration in seconds |
/claim rename <name> |
Rename your active profile |
/claim color <color> |
Set claim color by name or hex code |
/claim ban <player> |
Ban a player from entering or interacting with your claim |
/claim unstuck |
Teleport to the nearest safe wilderness block |
/claim abandon |
Delete your active claim profile and all its chunks |
/unclaim |
Unclaim the current chunk |
/unclaim radius <1-5> |
Unclaim your chunks within a radius |
/unclaim all [confirm] |
Unclaim every chunk in your active profile |
See the full Commands Reference for member, trust, ally, warp, and admin commands (add/set/remove/reset chunk, decay controls, and /claim reload).
Permissions
| Permission |
Description |
Default |
landclaim.* |
Grants all LandClaimPlugin nodes |
false |
landclaim.claim |
Claim land |
true |
landclaim.minimap |
Obtain and use the held Territory Map |
true |
landclaim.auto |
Toggle auto-claim mode |
true |
landclaim.admin |
Admin commands and full claim/wilderness bypass |
op |
landclaim.decay.exempt |
Exempt player claims from automatic decay |
op |
landclaim.update.notify |
Receive update alerts on join |
op |
landclaim.limit.<n> |
Override max claimed chunks (for example landclaim.limit.50) |
false |
landclaim.warps.limit.<n> |
Override max claim warps (for example landclaim.warps.limit.10) |
false |
landclaim.createrole.<n> |
Override max custom roles |
false |
Disclosures
- AI assistance. Parts of this project use AI coding and documentation tools under direct maintainer review, testing, and architectural ownership.
- External network calls. Startup version checking queries the public Modrinth v2 API (
api.modrinth.com) unless updateChecker.enabled: false. Anonymous metrics report via bStats unless disabled in plugins/bStats/config.yml. SQLite runs locally; MySQL and Redis connect only when configured.
评论 0
登录后参与评分
还没有评论,来抢沙发吧