TerritoryPvP 是一款 Paper 插件,用于在侧重 PvP 的服务器上实现基于区块(chunk)的领地控制。玩家拥有轴对齐的完整柱状区域(16×16 × 世界高度);配置文件中强制执行重叠领地检测、出生点保护环以及最小/最大领地尺寸限制。
领地获取与成长 —— 首次加入服务器时,系统可自动放置初始领地;领地的扩张或缩小可通过击杀事件实现(击杀者扩大领地,被击杀者缩小领地,具体数值可在配置中调整),并可选地通过金锄和领地点数进行扩张。领地数据可选择持久化存储至 Postgres/JDBC(例如 Supabase),或仅保留在内存中。
世界规则 —— 游戏机制仅应用于配置中的游戏世界(若白名单为空,则适用于所有世界)。没有领地的新玩家会在世界边界内随机生成,并通过多次重试以确保生成在不安全的列之外(如岩浆、水源、危险物或含水方块)。
在被控制的柱状区块内 —— 外来者通常无法破坏、放置或与方块交互;如果任何一方站在任何被控制的列中,PvP 将被取消(仅限野外战斗)。除非引燃的 TNT 归属于该领地的所有者,否则爆炸会移除外来领地上的方块;火蔓延以及使用末影珍珠/紫颂果进入他人领地列的行为可通过配置进行阻止。
公平性与用户体验 —— 可选的领地装备等级体系会根据领地占地面积上限限制金苹果的使用及盔甲/武器附魔等级,并提供 /claim tier 和 /claim chunks 命令,同时在 /claim info 中显示战斗能力提示。/claim boundary 命令会在玩家视线高度显示实时轮廓线,并在外部区块角落显示垂直标记。
战斗标记 —— 在游戏世界的实际玩家对战伤害发生后(野外命中有效;安全区内的受击不会触发标记),双方都会获得一个计时器(默认 45 秒):处于标记状态期间,他们不能进入自己的领地。可选的战斗断线记录功能:如果在标记状态下断开连接,将受到致命伤害,并将攻击判定为在线对手的正常击杀,以影响领地/点数逻辑。
管理员操作 —— /tpvp reload 命令用于重新加载游戏玩法和配置缓存(不包括数据库连接池)。管理员命令支持扩展/缩小领地、管理点数、查看区块信息、传送至玩家领地等功能。
总体而言,这是一款“占领与征服”风格的循环玩法:在野外战斗,守住自己拥有的区块,同时通过配置驱动的限制,确保大型帝国的发展和战斗逃脱保持在可控范围内。
(本插件由 Cursor, Composer 2 AI 制作与开发)
TerritoryPvP is a Paper plugin for chunk-based territory control on a PvP-focused server. Players own axis-aligned rectangles of full chunk columns (16×16 × world height); overlapping claims, a spawn-shield ring around world spawn, and min/max claim sizes are enforced in config.
Claiming & progression — Starting claims can be placed automatically on first join; territory can grow or shrink via kills (killer expands, victim shrinks, configurable) and optionally via golden hoe + territory points. Claims can be persisted with Postgres/JDBC (e.g. Supabase) or kept in memory only.
World rules — Gameplay applies only to configured game worlds (or all worlds if the allowlist is empty). New players without a claim can get a random spawn inside the world border, with extra rolls to avoid unsafe columns (lava, water, hazards, waterlogged blocks).
Inside claimed chunk columns — Foreigners generally can’t break, place, or interact with blocks; PvP is cancelled if either side is standing in any claim column (wilderness-only fights). Explosions remove blocks from foreign claims unless primed TNT is attributed to that claim’s owner; fire spread and ender pearls / chorus into someone else’s column can be blocked via config.
Fairness & UX — Optional territory gear tiers cap golden apples and armor/weapon enchant levels by claim footprint size, with /claim tier and /claim chunks plus combat-cap hints on /claim info. /claim boundary shows a live outline at eye height and vertical markers on outer chunk corners.
Combat tag — After actual player-vs-player damage in game worlds (wilderness hits; cancelled safe-zone hits don’t tag), both fighters get a timer (default 45 s): they can’t enter their own claim while tagged. Optional combat logging: disconnect while tagged applies lethal damage and credits the online opponent like a normal kill for territory/points logic.
Ops — /tpvp reload reloads gameplay/config caches (not the DB pool). Admin commands handle expand/shrink, points, chunk info, teleport to a player’s claim, etc.
Overall it’s a “Claim & Conquer” style loop: fight in the open, hold ground in chunks you own, with config-driven limits so large empires and combat escapes stay manageable.
(This plugin was Produced and Developed by Cursor, Composer 2 AI)
评论 0
登录后参与评分
还没有评论,来抢沙发吧