功能
领地系统
- 使用
/claim 保护当前区块
- 通过
config.yml 或权限 (newclaims.claims.<n>) 配置每位玩家的领地数量上限
- 集成 Vault 的领地创建费用(可选,自动检测)
- 支持多世界,在
config.yml 中可设置白名单
- 使用
/claim visualize 通过粒子效果可视化区块边界
防护功能
- 破坏和放置方块
- 交互箱子、门、拉杆、熔炉等
- 玩家之间的 PvP(可配置)
- TNT 和苦力怕爆炸
- 火焰蔓延
- 生物破坏(末影人、恶魂等)
- 作物踩踏
- 活塞将方块推入/推出领地
- 液体流动(可选)
信任系统
在你的领地内授予细粒度的权限:
- 完全访问 (Full) — 建造、破坏和交互
- 建造 (Build) — 仅允许破坏和放置方块
- 交互 (Interact) — 仅允许交互(箱子、门、拉杆)
封禁系统
将特定玩家从你的领地中封禁。被封禁的玩家在被封禁的瞬间会被立即传送离开。
开发者 API
提供自定义事件以与其他插件集成:
ClaimCreateEvent(可取消)
ClaimDeleteEvent
ClaimEnterEvent(可取消)
通过插件实例暴露的 ClaimAPI 进行编程访问。
命令
| 命令 |
描述 |
/claim |
保护当前区块 |
/claim list |
列出你的领地 |
/claim info |
查看当前区块领地的信息 |
/claim visualize |
显示带有粒子效果的领地边界 |
/claim trust <player> [build|interact] |
添加对某玩家的信任 |
/claim untrust <player> |
移除信任 |
/claim trustedlist |
列出拥有访问权限的玩家 |
/claim ban <player> |
将该玩家从领地中封禁 |
/claim unban <player> |
解除封禁 |
/claim setname <name> |
为领地设置自定义名称 |
/unclaim |
移除当前区块的领地 |
/unclaim all |
移除所有领地 |
/claimadmin list <player> |
列出某玩家的领地 |
/claimadmin delete <player> [all] |
删除某玩家的领地(全部) |
/claimadmin bypass |
切换绕过模式 |
/claimadmin info |
查看当前区块领地的信息 |
/claimadmin reload |
重新加载配置 |
/claimadmin stats |
服务器范围的统计信息 |
权限
| 权限 |
描述 |
默认值 |
newclaims.use |
基本命令的使用权 |
所有人 |
newclaims.claim |
创建领地 |
所有人 |
newclaims.unclaim |
移除领地 |
所有人 |
newclaims.trust |
管理信任关系 |
所有人 |
newclaims.visualize |
可视化边界 |
所有人 |
newclaims.claims.<n> |
N 个领地的数量限制 |
— |
newclaims.claims.unlimited |
无限领地数量 |
op |
newclaims.admin |
管理员命令 |
op |
newclaims.bypass |
绕过防护 |
op |
newclaims.* |
完全访问权限 |
op |
配置
所有选项均位于 config.yml 中。无需重启服务器 — 使用 /claimadmin reload 即可生效。
general:
max-claims-default: 5
enabled-worlds: [world, world_nether, world_the_end]
particle-visualize-duration: 10
auto-save-interval: 300
economy:
claim-cost-enabled: true
claim-cost: 100.0
protection:
protect-explosions: true
protect-fire: true
protect-mob-griefing: true
pvp-in-claims: false
protect-crop-trampling: true
所有消息均可在 messages.yml 中进行编辑,支持颜色代码(&a, &c 等)和动态占位符。
存储
数据异步保存至 plugins/NewClaims/claims.json,采用原子写入方式(崩溃时无损坏风险)。无需外部数据库。
依赖项
许可证
MIT 许可证 — 可免费使用、修改和分发。
Features
Claim System
- Protect the current chunk with
/claim
- Per-player claim limit configurable via
config.yml or permission (newclaims.claims.<n>)
- Claim cost integrated with Vault (optional, auto-detected)
- Multi-world support with a whitelist in
config.yml
- Visualize chunk borders with particles using
/claim visualize
Protections
- Breaking and placing blocks
- Interacting with chests, doors, levers, furnaces, etc.
- PvP between players (configurable)
- TNT and Creeper explosions
- Fire spreading
- Mob griefing (Endermen, Ghasts, etc.)
- Crop trampling
- Pistons pushing blocks into/out of claims
- Liquid flow (optional)
Trust System
Grant granular permissions inside your claim:
- Full — build, break, and interact
- Build — break and place blocks only
- Interact — interact only (chests, doors, levers)
Ban System
Ban specific players from your claim. Banned players are teleported out immediately upon being banned.
Developer API
Custom events for integration with other plugins:
ClaimCreateEvent (cancellable)
ClaimDeleteEvent
ClaimEnterEvent (cancellable)
Programmatic access via ClaimAPI exposed by the plugin instance.
Commands
| Command |
Description |
/claim |
Protect the current chunk |
/claim list |
List your claims |
/claim info |
Information about the current chunk's claim |
/claim visualize |
Show claim borders with particles |
/claim trust <player> [build|interact] |
Add trust to a player |
/claim untrust <player> |
Remove trust |
/claim trustedlist |
List players with access |
/claim ban <player> |
Ban a player from the claim |
/claim unban <player> |
Unban a player |
/claim setname <name> |
Set a custom name for the claim |
/unclaim |
Remove the claim from the current chunk |
/unclaim all |
Remove all your claims |
/claimadmin list <player> |
List a player's claims |
/claimadmin delete <player> [all] |
Delete a player's claim(s) |
/claimadmin bypass |
Toggle bypass mode |
/claimadmin info |
Info about the current chunk's claim |
/claimadmin reload |
Reload configurations |
/claimadmin stats |
Server-wide statistics |
Permissions
| Permission |
Description |
Default |
newclaims.use |
Access to basic commands |
everyone |
newclaims.claim |
Create claims |
everyone |
newclaims.unclaim |
Remove claims |
everyone |
newclaims.trust |
Manage trust |
everyone |
newclaims.visualize |
Visualize borders |
everyone |
newclaims.claims.<n> |
Limit of N claims |
— |
newclaims.claims.unlimited |
Unlimited claims |
op |
newclaims.admin |
Admin commands |
op |
newclaims.bypass |
Bypass protections |
op |
newclaims.* |
Full access |
op |
Configuration
All options are in config.yml. No restart required — use /claimadmin reload.
general:
max-claims-default: 5
enabled-worlds: [world, world_nether, world_the_end]
particle-visualize-duration: 10
auto-save-interval: 300
economy:
claim-cost-enabled: true
claim-cost: 100.0
protection:
protect-explosions: true
protect-fire: true
protect-mob-griefing: true
pvp-in-claims: false
protect-crop-trampling: true
All messages are editable in messages.yml with support for color codes (&a, &c, etc.) and dynamic placeholders.
Storage
Data is saved to plugins/NewClaims/claims.json asynchronously with atomic writes (no risk of corruption on crashes). No external database required.
Dependencies
License
MIT License — free to use, modify, and distribute.
评论 0
登录后参与评分
还没有评论,来抢沙发吧