
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.
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
/claimor bulk squares up to 5 chunks out with/claim radius <1-5>. - Auto-claim and auto-unclaim. Toggle walking claim/unclaim with
/claim autoand/unclaim auto, with optional connected-chunk and diagonal-adjacency enforcement. - Held territory map. Render a live 128x128 pixel radar onto a held
FILLED_MAPor item frame showing claim colors, alliances, and player heading. - Boundary visualization. Switch between 64-block range-culled
display_entities,particles, oroff. Automatically falls back to particles for Bedrock clients. - Safe unstuck.
/claim unstuckruns an async search to teleport trapped players to the nearest safe wilderness block.
Permissions and social
- Four-tier priority chain. Evaluates
Owner > Role > Trusted > Visitoron the first matching tier. - Custom roles and 39 flags. Configure built-in
MemberandCoOwnerroles 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.enabledmode 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-claimsstate 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
landclaimandclaimpluginplaceholders plus theLandClaimAPIinterface and Bukkit lifecycle events used by addons like LandClaimPlugin-Eco-Addon.
Installation
- Download the release JAR from GitHub Releases or Modrinth.
- Place
LandClaimPlugin.jarinto your serverplugins/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 underplugins/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) unlessupdateChecker.enabled: false. Anonymous metrics report via bStats unless disabled inplugins/bStats/config.yml. SQLite runs locally; MySQL and Redis connect only when configured.
下载 LandClaimPlugin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LandClaimPlugin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LandClaimPlugin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LandClaimPlugin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LandClaimPlugin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LandClaimPlugin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LandClaimPlugin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LandClaimPlugin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LandClaimPlugin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LandClaimPlugin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
[4.0.0] - 2026-11-28
Added
- Paper & Folia 1.21.6+ 平台升级 (
paper-plugin.yml& Bootstrapper):- 用原生的
paper-plugin.yml(api-version: "1.21.6",folia-supported: true,has-open-classloader: true)和通过 Paper 的LifecycleEvents.COMMANDSBrigadier API 注册/claim与/unclaim的LandClaimBootstrap,替换了旧的 Bukkitplugin.yml和阴影包裹的 Cloud(org.incendo.cloud)。 - 添加了
EconomyBridge服务接口(ServicesManager),包含getNextClaimCostFormatted和isClaimLocked钩子;更新ClaimPluginExpansion以原生读取费用;强制执行经济解占锁定,并清晰区分ADMIN_UNCLAIM/SYSTEM删除原因。
- 用原生的
- 原生 Paper
Dialog屏幕 (ClaimDialogs):- 为领地设置、领土标题、重命名与所有者别名、角色设置、单行文本提示以及确认操作(包括
/claim abandon、/unclaim all、封禁、踢出、转移和出售当前配置文件)添加了原生1.21.6+PaperDialogUI,同时通过 Geyser 表单正确路由 Bedrock 客户端。
- 为领地设置、领土标题、重命名与所有者别名、角色设置、单行文本提示以及确认操作(包括
- Minecraft 1.21.6+ 玩家定位栏集成 (
LocatorBarManager):- 添加了
locator_bar_private领地设置(locatorBar配置部分),通过Attribute.WAYPOINT_TRANWAY_TRANSMIT_RANGE临时隐身修饰符隐藏隐私开启领地上的玩家,并通过LivingEntity#setWaypointColor提供可选的领地六边形航点颜色着色。
- 添加了
- 1.21.6–1.21.11+ 游戏玩法与反破坏保护:
- 保护了
HappyGhast骑乘与挽具装备、EntityMountEvent检查、PlayerShearEntityEvent、PlayerOpenSignEvent(MODIFY_SIGNS)、风弹ExplosionResult.TRIGGER_BLOCK门控、TNTPrimed和AreaEffectCloud发射者归属,以及带命名空间前缀的阻止命令(/essentials:sethome)。 - 在
BlockPermissionResolver中添加了零快照Block.getState(false)检查和DECORATED_POT、CHISELED_BOOKSHELF、JUKEBOX、CRAFTER、RESPAWN_ANCHOR、LODESTONE、VAULT、TRIAL_SPAWNER及CREAKING_HEART映射。 - 添加了运行时保护的
CopperGolemProtectionListener(ItemTransportingEntityValidateTargetEvent),并在 Paper1.21.9+上对wooden_shelves、copper_chests和copper_golem_statues进行运行时标签检查,同时在1.21.6+上保持干净编译。
- 保护了
- 身份缓存与数据库列 (
PlayerLookup):- 在
lc_players中添加了PlayerLookup以及last_known_name和last_seen_at列,消除了跨 Tab 补全、GUI、传送点、Web 地图钩子和不活跃衰减检查中的同步Bukkit.getOfflinePlayers()磁盘扫描。
- 在
- 按领地 TNT 与生物生成开关:
- 在
/claim menu settings中添加了按领地的tnt_enabled(false)和mob_spawning_enabled(true)开关(自然生成、刷怪笼生成、试炼刷怪笼生成、巡逻队生成、袭击生成、传送门生成、陷阱生成和增援生成)。
- 在
- 自动
.bk升级备份与可配置的标题计时:- 从
3.4.0升级时,在将扁平键迁移到分组 YAML 部分之前,会自动创建config.yml.bk、locales/<message>.yml.bk和menus/<menu>.yml.bk(configVersion: "4.0.0"),并暴露可配置的display.titleFadeInMs、titleStayMs和titleFadeOutMs。
- 从
Changed
- 直接 Paper / Folia 区域调度器: 重写
FoliaScheduler,不再围绕GlobalRegionScheduler、RegionScheduler、EntityScheduler和AsyncScheduler使用反射,并将RedisManager中阻塞的Thread.sleep重连循环替换为异步计划重试。 - 现代
DataComponentTypesGUI 与小地图: 将GuiHelper和MinimapManager从旧的ItemMeta、SkullMeta和MapMeta迁移至DataComponentTypes(CUSTOM_NAME、LORE、ENCHANTMENT_GLINT_OVERRIDE、TOOLTIP_DISPLAY、通过ResolvableProfile的PROFILE以及MAP_ID),包含缓存的物品原型、无工具提示的边框填充物、ClaimCommand.teleportWarpSafely异步区块预加载、ClaimManager中 O(1) 的profileByIdMap查找,以及TerritoryMapRenderer中缓存的Color解码。 - 分组
config.yml与调色板刷新: 使用最小调色板(#00E262、#E20000、#E2B700、#A0A0A0、#FFFFFF、#1F1F1F)组织PluginConfig和MessagesConfig,渲染为 Adventure Components。
Fixed
- Display Entity 泄漏、区块加载与半透明地形 X 光: 在
VisualizationManager中用不透明的*_CONCRETE角线框和 4 块水平轨道替换了染色玻璃片,使水、冰、玻璃和传送门保持可见;裁剪了 64 格内已加载区块内的生成;并按区域取消了过时任务。 - 多配置文件、活塞、传送点、角色重命名与监听器: 修复了
PermissionResolver盟友检查、动作条所有权、RenameClaimGUI重置名称、跨边界活塞、UnstuckCommand冷却时间、PaginatedGui过时槽位点击、重命名时的角色映射重新键控、SQLProfileDao.getAllProfiles()完整行数据填充,以及CoOwnerV2 默认标志。
Removed
- 移除了 Bukkit
plugin.yml、阴影包裹的 Cloud 命令框架依赖、旧的AnvilInputGUI和ConfirmationGUI、旧的LandClaimPlugin-Economy反射回退机制、未使用的反射调度器代码以及死掉的旧辅助函数。
[3.4.0] - 2026-10-06
新增
- 可配置的领地块购买上限:
- 在
config.yml中添加了maxBonusClaimBlocks(玩家可持有的额外/已购买区块硬上限;0= 无限制)。 - 在
config.yml中添加了maxTotalClaimLimit(包含基础上限和额外块在内的总领地许可硬上限;0= 无限制)。
- 在
- 管理员区块许可管理命令:
- 添加了
/claim admin set chunk <player> <amount>:直接设置玩家的额外区块许可。支持0或正值、Minecraft 选择器(@p、@s、@r、@a)、反向参数顺序以及自我授予。 - 添加了
/claim admin remove chunk <player> <amount>:从玩家的许可中扣除额外区块,下限为 0,防止玩家拥有负数的额外区块。 - 添加了
/claim admin reset chunk [player]:将额外区块许可重置为 0(游戏内玩家默认为自身)。
- 添加了
- 开发者 API (
LandClaimAPI):- 在
LandClaimAPI接口及插件委托中添加了setBonusBlocks(UUID playerId, int amount),允许插件直接设置额外许可。
- 在
修复
- 经济购买限制执行:
- 修复了当
LandClaimPlugin-Economy中的limitPurchases.enabled设置为false时,/claim buy claim、/claim buy role、/claim buy member和/claim buy warp仍会执行的问题。 - 在
/claim buy claim中添加了边界检查,在向玩家收费前强制执行maxBonusClaimBlocks和maxTotalClaimLimit。
- 修复了当
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
使床在所有维度中爆炸的模组
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧