XPProtection
基于区块的土地保护,消耗经验等级作为代价。 无需货币、无依赖项且无需复杂设置:站在一个区块内,输入 /claim,该土地即归你所有。
专为 Paper 打造。
功能特性
- 区块认领:通过单个命令
/claim 即可认领。
- 经验等级费用:可配置(默认为 4 级)。如果玩家经验等级不足,则不会创建认领记录,也不会扣除任何经验。
- 信任玩家:所有者可以授予或移除其他玩家的访问权限。
- 每个认领拥有 8 个标志位,用于控制 PvP、生物生成、爆炸、火焰、鞘翅飞行以及进入权限。
- 全方位保护:涵盖建造行为、箱子、熔炉、门、按钮、拉杆、物品展示框、盔甲架、桶、船等更多方块与实体。
- 完整的认领可视化:使用粒子效果勾勒所有相连区块的边界。
- 基岩版支持:
/claim chunk 使用假方块显示当前区块的边界,这些方块可通过 Geyser 看到。
- 进出提示:在动作栏中显示,完全可编辑。
- 安全持久化:认领记录和标志位会立即保存,并在重启和关闭服务器后保留。
- 可配置消息:支持 MiniMessage 格式。
- 无依赖项:不需要 Vault、经济插件或数据库。
命令
| 命令 |
描述 |
/claim |
认领你当前所在的区块。 |
/claim info |
显示区块的所有者及 X/Z 坐标。 |
/claim unclaim |
移除当前的认领(仅限所有者或管理员)。 |
/claim allow <player> |
允许玩家在认领范围内建造和交互。 |
/claim unallow <player> |
移除玩家的访问权限。 |
/claim flag <flag> <value> |
更改某个标志位。值为 true 或 false。 |
/claim view |
显示认领的完整轮廓,持续 5 秒。 |
/claim chunk |
使用假方块显示当前区块的边界(专为基岩版设计)。也可用作 /claim bedrock。 |
/claim reload |
重新加载配置文件(仅限管理员)。 |
权限
| 权限节点 |
默认值 |
描述 |
xpprotection.admin |
OP |
管理任何认领,绕过所有保护,并使用 /claim reload。 |
没有用于认领的权限限制:只要玩家拥有足够的经验等级,任何人都可以使用 /claim。
标志位 (Flags)
| 标志位 |
默认值 |
控制内容 |
entry |
true |
当为 false 时,无访问权限的玩家无法进入认领区域。 |
elytra |
true |
当为 false 时,无访问权限的玩家无法在认领区域内使用鞘翅。 |
mob-spawning |
true |
当为 false 时,禁止自然生成、刷怪笼生成或事件生成的所有生物。 |
hostile-mobs |
true |
当为 false 时,禁止敌对生物生成。 |
passive-mobs |
true |
当为 false 时,禁止被动生物生成。 |
pvp |
false |
当为 true 时,玩家可以在认领区域内互相伤害。 |
explosions |
false |
当为 true 时,爆炸可以破坏认领区域内的方块。 |
fire-spread |
false |
当为 true 时,火焰可以蔓延并烧毁方块。 |
认领区块不会关闭生物生成,因此动物农场和村民农场从一开始就可以正常工作。生成蛋、命令和繁殖行为永远不会被阻止。
安装
- 确保你使用的是兼容的 Paper 服务器。
- 从 Versions(版本)选项卡下载
XPProtection.jar。
- 将其放入服务器的
plugins/ 文件夹中。
- 重启服务器(请勿使用
/reload)。
配置
plugins/XPProtection/config.yml:
claim:
# 每个区块所需的经验等级数量
xp-level-cost: 4
messages:
prefix: "<gold>[XPProtection]</gold> "
enter-claim: "<gray>Tierra de <yellow>{owner}</yellow>.</gray>"
leave-claim: "<gray>Saliste de la tierra de <yellow>{owner}</yellow>.</gray>"
# ... 其余的消息
默认消息是用西班牙语编写的。你可以在 config.yml 中翻译或重新样式化任何消息。
如果文件中缺少某条消息,插件将回退到内置文本,且绝不会报错。
编辑文件后,运行 /claim reload。
兼容性
|
|
| 平台 |
Paper |
| Minecraft 版本 |
26.2 (Paper) |
| 依赖项 |
无 |
| 基岩版 |
通过 Geyser/Floodgate 支持(请使用 /claim chunk) |
不支持: Spigot 和 CraftBukkit(插件使用了 Paper API)以及 Folia(尚未适配其任务调度器)。
常见问题
如果我移除认领,我的经验会退还吗?
不会。/claim unclaim 不会退还经验等级。
我可以更改费用吗?
可以,修改 config.yml 中的 claim.xp-level-cost,然后运行 /claim reload。
更新插件后,我的认领数据会怎样?
它们会被保留。数据存储在 plugins/XPProtection/claims.yml 中。
管理员会受到保护的影响吗?
不会。拥有 xpprotection.admin 权限的人可以在任何认领区域内建造、交互和进入。
我如何查看我的领地边界在哪里?
使用 /claim view 查看完整轮廓。
已知限制
- 跨越认领区域与外部边界的活塞和液体目前尚未被阻止。
- 对每个玩家的认领数量没有限制。
- 没有列出所有已认领区块的命令。
支持与错误报告
如果你发现了错误,请使用页面上的 Issues(问题)链接提交 issue,并通过 Discord 服务器 TheCatsGC 联系。
- 你的 Paper 和 XPProtection 版本信息。
- 重现问题的步骤。
- 如果有任何错误出现,请附上服务器日志。
XPProtection
Chunk-based land protection, paid for with XP levels. No currency, no dependencies and no complicated setup: stand in a chunk, type /claim, and the land is yours.
Built for Paper.
Features
- Chunk claims with a single command:
/claim.
- XP level cost that you can configure (4 levels by default). If the player does not have enough levels, no claim is created and nothing is deducted.
- Trusted players: the owner can grant or remove access for other players.
- 8 flags per claim to control PvP, mobs, explosions, fire, Elytra and entry.
- Real world protection: building, chests, furnaces, doors, buttons, levers, item frames, armor stands, buckets, boats and more.
- Full claim visualization with particles: outlines all of your connected chunks.
- Bedrock support:
/claim chunk shows the borders of the current chunk using fake blocks, which are visible through Geyser.
- Enter and leave notice in the action bar, fully editable.
- Safe persistence: claims and flags are saved immediately and survive restarts and shutdowns.
- Configurable messages using MiniMessage formatting.
- No dependencies: it does not need Vault, an economy plugin or a database.
Commands
| Command |
Description |
/claim |
Claims the chunk you are standing in. |
/claim info |
Shows the owner and the X/Z coordinates of the chunk. |
/claim unclaim |
Removes the current claim (owner or administrator). |
/claim allow <player> |
Lets a player build and interact inside the claim. |
/claim unallow <player> |
Removes a player's access. |
/claim flag <flag> <value> |
Changes a flag. The value is true or false. |
/claim view |
Shows the full outline of the claim for 5 seconds. |
/claim chunk |
Shows the borders of the current chunk with fake blocks (designed for Bedrock). Also works as /claim bedrock. |
/claim reload |
Reloads the configuration (administrators only). |
Permissions
| Permission |
Default |
Description |
xpprotection.admin |
OP |
Manage any claim, bypass all protections and use /claim reload. |
There is no permission to claim: any player can use /claim as long as they have enough XP levels.
Flags
| Flag |
Default |
What it controls |
entry |
true |
When false, players without access cannot enter the claim. |
elytra |
true |
When false, players without access cannot use Elytra inside the claim. |
mob-spawning |
true |
When false, no mobs spawn naturally, from spawners or from events. |
hostile-mobs |
true |
When false, hostile mobs do not spawn. |
passive-mobs |
true |
When false, passive mobs do not spawn. |
pvp |
false |
When true, players can damage each other inside the claim. |
explosions |
false |
When true, explosions can damage blocks in the claim. |
fire-spread |
false |
When true, fire can spread and burn blocks. |
Claiming a chunk does not turn off spawning, so animal and villager farms work from the start. Spawn eggs, commands and breeding are never blocked.
Installation
- Make sure you have a compatible Paper.
- Download
XPProtection.jar from the Versions tab.
- Place it in your server's
plugins/ folder.
- Restart the server (do not use
/reload).
Configuration
plugins/XPProtection/config.yml:
claim:
# XP levels that each chunk costs
xp-level-cost: 4
messages:
prefix: "<gold>[XPProtection]</gold> "
enter-claim: "<gray>Tierra de <yellow>{owner}</yellow>.</gray>"
leave-claim: "<gray>Saliste de la tierra de <yellow>{owner}</yellow>.</gray>"
# ... and the rest of the messages
The default messages are written in Spanish. You can translate or restyle any of them in config.yml.
If a message is missing from the file, the plugin falls back to a built-in text and never errors.
After editing the file, run /claim reload.
Compatibility
|
|
| Platform |
Paper |
| Minecraft version |
26.2 (Paper) |
| Dependencies |
None |
| Bedrock |
Supported through Geyser/Floodgate (use /claim chunk) |
Not supported: Spigot and CraftBukkit (the plugin uses the Paper API) and Folia (it is not adapted to its task scheduler).
FAQ
Do I get my XP back if I remove a claim?
No. /claim unclaim does not refund levels.
Can I change the cost?
Yes, with claim.xp-level-cost in config.yml, then /claim reload.
What happens to my claims when I update the plugin?
They are kept. They are stored in plugins/XPProtection/claims.yml.
Are administrators affected by the protections?
No. Anyone with xpprotection.admin can build, interact and enter in any claim.
How can I see where my land ends?
Use /claim view for the full outline.
Known limitations
- Pistons and liquids that cross the border between a claim and the outside are not blocked yet.
- There is no limit on the number of claims per player.
- There is no command to list all of your claims.
Support and bug reports
If you find a bug, open an issue using the Issues link on this page and include:
- Via Discord Server TheCatsGC.
- Your Paper and XPProtection versions.
- The steps to reproduce the problem.
- The server log if any error appears.
评论 0
登录后参与评分
还没有评论,来抢沙发吧