功能特性
- 领地认领 — 玩家使用认领工具选择两个角落,将选区转化为受保护的领地。领地在所选区域范围内保护整个世界的高度。
- 领地方块 — 每位玩家初始拥有可配置的领地方块数量。认领领地会消耗基于所认领面积的方块,取消认领则可退还部分方块。
- 领地经济 — 安装 Vault 后,玩家可以购买额外的领地方块或出售不再需要的方块。两者的价格均可配置,且该经济系统完全可选。
- 领地限制 — 服务器可以限制玩家拥有的领地数量以及每个玩家可以保护的总土地面积。可以通过权限赋予特定等级更高的限制,并可使指定玩家拥有无限限制。
- 领地命名与传送 — 领地可以命名,在领地列表中显示稳定的标识符和编号,并且可以通过传送命令瞬间访问。
- 信任系统 — 领地所有者可以信任其他玩家以允许其建造和交互。信任管理支持离线玩家,信任列表会显示当前所有被信任的玩家。
- 细粒度标志(Flags) — 每个领地都有自己的一套标志,控制战斗、爆炸、火焰、生物、建造、破坏与放置方块、容器、交互、实体、液体、农业、物品处理、进入传送以及自定义消息。
- 进出通知 — 领地可以显示自定义的问候语和告别语。消息可以出现在聊天栏、热键栏上方、作为屏幕标题显示,并可播放音效。
- 边界可视化 — 所有者和访客可以在可配置的时间内看到领地的粒子轮廓。
- 活动日志与回滚 — 领地内的近期更改会被记录,以便所有者和管理员审查活动并撤销近期的恶意破坏行为。
- 调整大小工具 — 现有领地可以使用专用工具调整大小。扩大需要足够的领地方块,缩小则尊重配置的退还百分比。
- 自动备份 — 领地数据、玩家数据和领地活动会按照可配置的时间间隔保存到带时间戳的备份文件中,也可以禁用此功能。
- 管理员工具 — 管理员可以绕过保护、强制移除领地、转移所有权、检查或编辑任何领地、管理任何领地上的信任关系,并列出服务器上的所有领地。
命令
所有命令均可使用 /claim、/griefprotection 或 /gp 执行。
/claim — 给予你认领工具。左击一个方块以设置第一个角,右击以设置第二个角。
/claim create — 根据当前选区创建领地。领地必须在允许的尺寸范围内,不得与其他领地重叠,且必须符合你的可用方块数量和限制。
/claim resize — 站在自己的领地内时,给予你调整大小工具。设置两个新角,领地会自动更新。
/claim unclaim [refund] — 移除你所站立的领地。添加 refund 参数可根据配置的退还百分比返还领地方块。
/claim buy <amount> — 按配置的价格购买领地方块。需要安装 Vault。
/claim sell <amount> — 按配置的售价出售领地方块。需要安装 Vault。
/claim trust <player> — 信任你所站立领地中的某位玩家。支持对离线玩家操作。
/claim untrust <player> — 移除你所站立领地中某位玩家的信任状态。支持对离线玩家操作。
/claim trustlist — 列出你所站立领地中所有被信任的玩家。
/claim name <name> — 为你所站立的领地命名。使用 clear 可移除名称。
/claim list — 列出你的所有领地及其编号、名称、标识符、位置和大小,以及你可用的领地方块数量。
/claim tp <number|name|id> — 传送到你的某个领地。使用领地列表中的编号、名称或标识符。
/claim info — 显示你所站立领地的详细信息,包括名称、标识符、所有者、大小、被信任玩家以及所有标志。
/claim flag <flag> <value> — 更改你所站立领地的某个标志。布尔值接受 true 或 false;消息类标志接受任意文本或 clear。
/claim visualize — 在你站立领地内显示粒子轮廓,持续时间为配置时长。
/claim logs [amount] — 显示你所站立领地中最近记录的活动。
/claim rollback <minutes> — 将你站立领地中的方块恢复到近期其他玩家更改之前的状态。
/claim admin — 显示管理员命令列表。
/claim admin bypass — 切换是否对你忽略保护。
/claim admin unclaim — 强制移除你所站立的领地,即使你不是所有者。
/claim admin list — 列出服务器上的所有领地及其所有者和大小。
/claim admin info <name|id> — 显示任何领地的完整详细信息。
/claim admin delete <name|id> — 删除任何领地。
/claim admin transfer <name|id> <player> — 将任何领地的所有权转移给另一位玩家。
/claim admin trust <name|id> <player> 和 /claim admin untrust <name|id> <player> — 管理任何领地上的信任关系。
/claim admin flag <name|id> <flag> <value> — 更改任何领地的某个标志。
/claim reload — 重新加载配置和存储的数据。仅限管理员。
/claim help — 显示命令列表。
领地标志(Flags)
标志通过 /claim flag <name> <value> 在每个领地上单独设置。布尔型标志接受 true 或 false,每个标志的默认值显示在括号中。
战斗与灾害
PVP (false) — 允许在领地内进行玩家对战。
EXPLOSIONS (false) — 允许爆炸破坏领地内的方块。
EXPLOSION_DAMAGE (false) — 允许爆炸伤害领地内的玩家和实体。
LIGHTNING_DAMAGE (false) — 允许闪电破坏方块并在领地内引发火灾。
FIRE_SPREAD (false) — 允许火焰蔓延、岩浆点燃方块,以及不受信任的玩家使用打火石。
生物与自然
MOB_SPAWNING (false) — 允许敌对生物在领地内自然生成。
ANIMAL_SPAWNING (true) — 允许被动动物在领地内自然生成。
HOSTILE_MOB_GRIEFING (false) — 允许苦力怕和末影人等敌对生物改变方块。
LEAF_DECAY (true) — 允许树叶自然腐烂。
CROP_TRAMPLE (false) — 允许玩家和生物践踏耕地。
CROP_GROWTH (true) — 允许作物和植物生长。
SNOW_ICE (true) — 允许积雪和冰形成及融化。
建造
BUILD (true) — 允许受信任的玩家进行建造、破坏和交互。拥有者始终被允许。
BLOCK_PLACE (false) — 允许不受信任的玩家放置方块。
BLOCK_BREAK (false) — 允许不受信任的玩家破坏方块。
PISTON_MOVEMENT (false) — 允许活塞将方块推或拉过领地边界。
交互
INTERACT (false) — 允许不受信任的玩家使用拉杆、按钮、门、陷阱门、闸门和其他可交互的方块。
CONTAINER_ACCESS (false) — 允许不受信任的玩家打开箱子、 barrels(桶)、熔炉、漏斗、潜影盒等容器。
VEHICLE_PLACE (false) — 允许不受信任的玩家放置船和矿车。
BUCKET_USE (false) — 允许不受信任的玩家使用桶。
LIQUID_FLOW (false) — 允许液体从外部流入领地。
ENTITY_INTERACT (false) — 允许不受信任的玩家使用物品展示框和盔甲架,并与动物和载具交互。
ANIMAL_DAMAGE (false) — 允许不受信任的玩家伤害动物和宠物。
VILLAGER_TRADE (false) — 允许不受信任的玩家与村民交易。
物品与移动
ITEM_PICKUP (true) — 允许在领地内拾取物品。
ITEM_DROP (true) — 允许在领地内丢弃物品。
ENDER_PEARL_TELEPORT (false) — 允许不受信任的玩家通过末影珍珠进入领地。
CHORUS_FRUIT_TELEPORT (false) — 允许不受信任的玩家通过紫颂果进入领地。
消息
ENTRY_MESSAGE (empty) — 玩家进入领地时显示的自定义消息。支持颜色代码。
EXIT_MESSAGE (empty) — 玩家离开领地时显示的自定义消息。支持颜色代码。
配置
所有设置均位于配置文件中,并全局应用于服务器。
- starting-claim-blocks — 每位玩家首次加入时获得的领地方块数量。默认值:1000。
- price-per-block — 购买一个领地方块的费用。默认值:1.0。
- sell-price-per-block — 出售一个领地方块所获得的金钱。默认值:0.5。
- refund-percentage — 在使用退款功能取消领地的所有权或缩小领地范围时,返还的方块比例,取值范围为 0.0 到 1.0。默认值:0.5。
- min-claim-size — 允许的最小领地面积(以方块为单位)。默认值:100。
- max-claim-size — 允许的最大领地面积(以方块为单位)。默认值:10000。
- max-claims-per-player — 单个玩家最多可以拥有的领地数量,设为 0 表示无限制。默认值:0。
- max-total-claim-area — 单个玩家可以保护的最大总面积,设为 0 表示无限制。默认值:0。
- visualize-duration — 边界可视化效果持续的时间(秒)。默认值:30。
- visualize-interval — 刷新边界可视化的频率(刻)。默认值:10。
- backup-interval — 自动备份之间的间隔时间(秒)。设为 0 以完全禁用备份。默认值:3600。
- backup-path — 存储带时间戳的备份文件的位置。默认值:plugins/GriefProtection999/backups。
- grid-cell-size — 用于快速查找领地的内部地图单元格大小。较低的值会使用更多内存,但在繁忙的服务器上能加快查询速度。默认值:16。
- audit-log-size — 为日志和回滚命令保留的最新活动记录数量。默认值:5000。
- audit-retention-minutes — 活动记录的保留时长(分钟),设为 0 表示直到达到大小限制为止。默认值:1440。
- entry-exit-messages — 是否在聊天栏中显示进出领地的消息。默认值:true。
- entry-exit-action-bar — 是否在快捷栏上方显示进出领地的消息。默认值:true。
- entry-exit-titles — 是否将进出领地的消息作为屏幕标题显示。默认值:false。
- entry-exit-sound — 是否在进入或离开领地时播放声音。默认值:true。
权限
- griefprotection999.admin — 可绕过限制、使用领地管理工具以及重载配置。默认权限:操作员(operators)。
- griefprotection999.use — 创建领地和使用领地工具。默认权限:所有人。
- griefprotection999.buy — 购买领地方块。默认权限:所有人。
- griefprotection999.sell — 出售领地方块。默认权限:所有人。
- griefprotection999.trust — 管理受信任玩家。默认权限:所有人。
- griefprotection999.resize — 调整领地大小。默认权限:所有人。
- griefprotection999.flag — 更改领地标志。默认权限:所有人。
- griefprotection999.visualize — 可视化领地边界。默认权限:所有人。
- griefprotection999.teleport — 传送至自己的领地。默认权限:所有人。
- griefprotection999.rollback — 回滚最近的更改。默认权限:所有人。
- griefprotection999.limits.unlimited — 忽略领地数量和面积限制。默认权限:无任何人。
- griefprotection999.maxclaims.<number> — 可选的按等级覆盖的最大领地数量。
- griefprotection999.maxarea.<number> — 可选的按等级覆盖的最大总领地面积。
更新日志
当前发布版本为 1.0.4。查看更新日志以获取完整的添加和修复历史记录。
Features
- Land Claiming — Players select two corners with a claim tool and turn the selection into a protected claim. Claims protect the full height of the world within the selected area.
- Claim Blocks — Every player starts with a configurable number of claim blocks. Claiming land spends blocks based on the area claimed, and unclaiming can refund a portion of them.
- Claim Economy — With Vault installed, players can buy additional claim blocks or sell blocks they no longer need. Prices for both are configurable, and the economy is entirely optional.
- Claim Limits — Servers can cap how many claims a player may own and how much land in total each player may protect. Individual ranks can be given higher limits through permissions, and selected players can be made unlimited.
- Claim Naming and Teleporting — Claims can be given names, appear with a stable identifier and number in the claim list, and can be visited instantly with a teleport command.
- Trust System — Claim owners can trust other players so they can build and interact. Trust can be managed for players who are offline, and a trust list shows everyone currently trusted.
- Fine-Grained Flags — Each claim has its own set of flags controlling combat, explosions, fire, mobs, building, block breaking and placing, containers, interactions, entities, liquids, farming, item handling, teleporting in, and custom messages.
- Entry and Exit Notifications — Claims can display a custom greeting and farewell. Messages can appear in chat, above the hotbar, as on-screen titles, and can play a sound.
- Boundary Visualization — Owners and visitors can see a particle outline of a claim for a configurable amount of time.
- Activity Log and Rollback — Recent changes inside a claim are recorded so owners and admins can review activity and undo recent grief.
- Resize Tool — Existing claims can be resized with a dedicated tool. Growth requires enough claim blocks and shrinking respects the configured refund percentage.
- Automatic Backups — Claim data, player data, and claim activity are saved to timestamped backup files on a configurable schedule, which can also be disabled.
- Admin Tools — Admins can bypass protection, force-remove claims, transfer ownership, inspect or edit any claim, manage trust on any claim, and list every claim on the server.
Commands
All commands can be used as /claim or /griefprotection or /gp.
/claim — Gives you the claim tool. Left-click a block to set the first corner and right-click to set the second.
/claim create — Creates a claim from your current selection. The claim must be within the allowed size range, must not overlap another claim, and must fit within your available blocks and limits.
/claim resize — While standing inside your own claim, gives you a resize tool. Set two new corners and the claim updates automatically.
/claim unclaim [refund] — Removes the claim you are standing in. Add refund to return claim blocks based on the configured refund percentage.
/claim buy <amount> — Buys claim blocks at the configured price. Requires Vault.
/claim sell <amount> — Sells claim blocks at the configured sell price. Requires Vault.
/claim trust <player> — Trusts a player in the claim you are standing in. Works with offline players.
/claim untrust <player> — Removes a player's trust from the claim you are standing in. Works with offline players.
/claim trustlist — Lists every player trusted in the claim you are standing in.
/claim name <name> — Names the claim you are standing in. Use clear to remove the name.
/claim list — Lists all of your claims with their number, name, identifier, location, and size, plus your available claim blocks.
/claim tp <number|name|id> — Teleports you to one of your claims. Use the number from your claim list, its name, or its identifier.
/claim info — Shows details about the claim you are standing in, including its name, identifier, owner, size, trusted players, and every flag.
/claim flag <flag> <value> — Changes a flag on the claim you are standing in. Booleans accept true or false; message flags accept any text or clear.
/claim visualize — Shows a particle outline of the claim you are standing in for the configured duration.
/claim logs [amount] — Shows recent recorded activity in the claim you are standing in.
/claim rollback <minutes> — Restores blocks in the claim you are standing in to how they were before the recent changes made by other players.
/claim admin — Shows the admin command list.
/claim admin bypass — Toggles whether protection is ignored for you.
/claim admin unclaim — Force-removes the claim you are standing in, even if you do not own it.
/claim admin list — Lists every claim on the server with its owner and size.
/claim admin info <name|id> — Shows full details for any claim.
/claim admin delete <name|id> — Deletes any claim.
/claim admin transfer <name|id> <player> — Transfers ownership of any claim to another player.
/claim admin trust <name|id> <player> and /claim admin untrust <name|id> <player> — Manages trust on any claim.
/claim admin flag <name|id> <flag> <value> — Changes a flag on any claim.
/claim reload — Reloads the configuration and stored data. Admin only.
/claim help — Shows the command list.
Claim Flags
Flags are set per claim with /claim flag <name> <value>. Boolean flags accept true or false, and the default for each flag is shown in parentheses.
Combat and disasters
PVP (false) — Allows player-versus-player combat inside the claim.
EXPLOSIONS (false) — Allows explosions to destroy blocks inside the claim.
EXPLOSION_DAMAGE (false) — Allows explosions to harm players and entities inside the claim.
LIGHTNING_DAMAGE (false) — Allows lightning to damage blocks and start fires inside the claim.
FIRE_SPREAD (false) — Allows fire to spread, lava to ignite blocks, and flint and steel to be used by untrusted players.
Mobs and nature
MOB_SPAWNING (false) — Allows hostile mobs to spawn naturally inside the claim.
ANIMAL_SPAWNING (true) — Allows passive animals to spawn naturally inside the claim.
HOSTILE_MOB_GRIEFING (false) — Allows hostile mobs such as creepers and endermen to alter blocks.
LEAF_DECAY (true) — Allows leaves to decay naturally.
CROP_TRAMPLE (false) — Allows players and mobs to trample farmland.
CROP_GROWTH (true) — Allows crops and plants to grow.
SNOW_ICE (true) — Allows snow and ice to form and melt.
Building
BUILD (true) — Allows trusted players to build, break, and interact. The owner is always allowed.
BLOCK_PLACE (false) — Allows untrusted players to place blocks.
BLOCK_BREAK (false) — Allows untrusted players to break blocks.
PISTON_MOVEMENT (false) — Allows pistons to push or pull blocks across claim borders.
Interaction
INTERACT (false) — Allows untrusted players to use levers, buttons, doors, trapdoors, gates, and other interactive blocks.
CONTAINER_ACCESS (false) — Allows untrusted players to open chests, barrels, furnaces, hoppers, shulker boxes, and similar containers.
VEHICLE_PLACE (false) — Allows untrusted players to place boats and minecarts.
BUCKET_USE (false) — Allows untrusted players to use buckets.
LIQUID_FLOW (false) — Allows liquids to flow into the claim from outside.
ENTITY_INTERACT (false) — Allows untrusted players to use item frames and armor stands, and to interact with animals and vehicles.
ANIMAL_DAMAGE (false) — Allows untrusted players to harm animals and pets.
VILLAGER_TRADE (false) — Allows untrusted players to trade with villagers.
Items and movement
ITEM_PICKUP (true) — Allows items to be picked up inside the claim.
ITEM_DROP (true) — Allows items to be dropped inside the claim.
ENDER_PEARL_TELEPORT (false) — Allows untrusted players to enter the claim with an ender pearl.
CHORUS_FRUIT_TELEPORT (false) — Allows untrusted players to enter the claim with a chorus fruit.
Messages
ENTRY_MESSAGE (empty) — A custom message shown to players entering the claim. Supports color codes.
EXIT_MESSAGE (empty) — A custom message shown to players leaving the claim. Supports color codes.
Configuration
All settings live in the configuration file and apply server-wide.
- starting-claim-blocks — How many claim blocks each player receives the first time they join. Default: 1000.
- price-per-block — The cost of one claim block when buying. Default: 1.0.
- sell-price-per-block — The money received per claim block when selling. Default: 0.5.
- refund-percentage — The share of blocks returned when unclaiming with a refund or when shrinking a claim, from 0.0 to 1.0. Default: 0.5.
- min-claim-size — The smallest allowed claim area in blocks. Default: 100.
- max-claim-size — The largest allowed claim area in blocks. Default: 10000.
- max-claims-per-player — The maximum number of claims one player may own, or 0 for unlimited. Default: 0.
- max-total-claim-area — The maximum combined area one player may protect, or 0 for unlimited. Default: 0.
- visualize-duration — How many seconds a boundary visualization lasts. Default: 30.
- visualize-interval — How often, in ticks, the boundary visualization is refreshed. Default: 10.
- backup-interval — How many seconds between automatic backups. Set it to 0 to disable backups entirely. Default: 3600.
- backup-path — Where timestamped backup files are stored. Default: plugins/GriefProtection999/backups.
- grid-cell-size — The size of the internal map cells used to find claims quickly. Lower values use more memory but speed up lookups on busy servers. Default: 16.
- audit-log-size — How many recent activity records are kept for the log and rollback commands. Default: 5000.
- audit-retention-minutes — How long activity records are kept, in minutes, or 0 to keep them until the size limit is reached. Default: 1440.
- entry-exit-messages — Whether entry and exit messages appear in chat. Default: true.
- entry-exit-action-bar — Whether entry and exit messages appear above the hotbar. Default: true.
- entry-exit-titles — Whether entry and exit messages appear as an on-screen title. Default: false.
- entry-exit-sound — Whether a sound plays when entering or leaving a claim. Default: true.
Permissions
- griefprotection999.admin — Access to bypass, claim management tools, and reload. Default: operators.
- griefprotection999.use — Claiming land and using the claim tool. Default: everyone.
- griefprotection999.buy — Buying claim blocks. Default: everyone.
- griefprotection999.sell — Selling claim blocks. Default: everyone.
- griefprotection999.trust — Managing trusted players. Default: everyone.
- griefprotection999.resize — Resizing claims. Default: everyone.
- griefprotection999.flag — Changing claim flags. Default: everyone.
- griefprotection999.visualize — Visualizing claim boundaries. Default: everyone.
- griefprotection999.teleport — Teleporting to your claims. Default: everyone.
- griefprotection999.rollback — Rolling back recent changes. Default: everyone.
- griefprotection999.limits.unlimited — Ignores claim count and area limits. Default: nobody.
- griefprotection999.maxclaims.<number> — Optional per-rank override for the maximum number of claims.
- griefprotection999.maxarea.<number> — Optional per-rank override for the maximum total claim area.
Changelog
The current release is version 1.0.4. See the changelog for the full history of additions and fixes.
评论 0
登录后参与评分
还没有评论,来抢沙发吧