Castel
Castel 是一款适用于 Minecraft 服务器(Paper/Spigot)的小游戏插件。其核心概念是:一座布满箱子、 barrel(木桶)和其他容器的城堡,玩家在此进行近身搏斗,成为最后的幸存者,或根据所选模式通过其他目标获胜。每次打开容器都可能带来优势、陷阱,或两者兼具。游戏玩法围绕在专用城堡环境(城墙、走廊、房间)中的剑斗展开。
该插件允许在同一服务器上同时管理多个独立的竞技场,每个竞技场拥有自己的区域、容器和设置。所有配置均可在游戏中通过命令和图形用户界面(GUI)完成,无需手动编辑配置文件。
本插件不需要外部数据库。所有配置数据(竞技场、箱子、统计数据)均保存在本地服务器文件中。这意味着插件可以在没有外部网络连接或中央数据库的情况下运行,但数据不会在不同服务器之间共享。
游戏运行机制
玩家加入竞技场并在队列中等待。当玩家数量达到一定要求后,管理员启动游戏。系统会保存世界状态(逐块快照),填充箱子内容,传送所有玩家,显示倒计时,随后战斗开始。根据模式不同,胜利条件包括消灭所有对手、占领特定区域,或防守/击杀指定目标。游戏结束后,世界将精确恢复到之前的状态,即使期间发生了爆炸。
游戏模式
每个竞技场同一时间只能激活一种模式,这直接决定了胜利条件。可通过命令 /castel arena mode <lastman|koth|siege> 或在“设置”GUI 的“游戏模式”选项中进行更改。
LASTMAN(默认模式): 经典格式,最后存活的玩家或队伍获胜。无需额外设置;它是所有其他修饰效果的基础层。
KOTH(King of the Castle / 城堡之王): 玩家并非通过消灭所有人来获胜,而是通过比对手更长时间地占据指定区域来获胜。每在捕获区(即“高地”)内停留一秒,占据该区域的玩家或队伍就会获得积分。如果多名队友同时站在区内,积分会叠加。战斗主要用于将对手推出该区域。
要设置 KOTH,请先使用 WorldEdit 选择目标区域(//pos1 和 //pos2),然后运行 /castel arena sethill。之后,使用 /castel arena mode koth 切换竞技场模式。
关键设置包括:
/castel arena kothpoints <n> 设置每秒钟每位占据者获得的积分(默认值:1)。
/castel arena kothlimit <points> 设置立即获胜所需的分数(默认值:100;设置为 0 以禁用)。
/castel arena kothtime <seconds> 设置比赛的最大时长;如果时间耗尽,分数高者获胜(默认值:300 秒)。
重要提示:即使在 KOTH 模式下,如果只剩一名玩家或一支队伍存活,淘汰机制将优先于分数或计时器,实现即时获胜。
SIEGE(攻防战): 激活 SIEGE 模式会将玩家强制分为两队(红队和蓝队)。存在两种变体,通过 /castel arena siegemode <single|dual> 切换:
“单领主”变体(默认)是非对称的:红队防守,蓝队进攻。比赛开始时,随机一名红队玩家成为领主,获得额外生命值(+4 颗心)以及从远处可见的永久发光轮廓。蓝队没有领主;他们的唯一目标是击杀红队领主。一旦领主死亡,蓝队立即获胜。红队通过消灭所有攻击者或让领主存活至时间结束来获胜。
队伍人数可分别通过 /castel arena siegedefenders <n>(默认值:2)和 /castel arena siegeattackers <n>(默认值:4)进行调整。
“双领主”变体是对称的:每队保护各自的领主,享有相同的增益效果。第一支队伍的领主率先死亡的队伍输掉比赛。如果时间耗尽且双方领主均存活,则比赛平局。此变体依赖标准的队伍大小设置,而非单独的进攻方/防守方数值。
共享设置:/castel arena siegetime <seconds> 设置最大持续时间(默认值:600 秒)。应使用 /castel arena setspawn <team>(使用 RED 或 BLUE)配置团队特定的出生点,通常将防守方放置在城堡内,进攻方放置在城堡外。
竞技场设置
管理员一次只能操作一个竞技场,称为“当前活跃竞技场”:
/castel arena create <name> 创建新竞技场并选中它。
/castel arena select <name> 切换当前活跃竞技场。
/castel arena list 显示所有竞技场的摘要统计信息(箱子、区域、出生点、玩家上限、比赛状态)。
/castel arena delete <name> 永久删除一个竞技场。
/castel arena finish 退出编辑模式。
/castel arena info 显示当前活跃竞技场的所有设置。
/castel arena stats 显示累计的竞技场统计数据。
要定义可游玩边界:使用 //pos1 和 //pos2 创建一个覆盖整个区域(包括墙壁)的 WorldEdit 选择区域(确保两个点的高度不同),然后运行 /castel setregion。
箱子和战利品
一旦设置了区域,/castel scan 会自动检测区域内的所有箱子、陷阱箱、barrel(木桶)、铜箱和末影箱。重新扫描较小的房间不会擦除在其他位置配置的箱子。双层箱作为单个单元进行追踪,共享存储空间。铜箱会自动上蜡以防止进一步氧化。在编辑过程中,每个被追踪的容器上方会出现一个浮动的数字标签。
运行 /castel gui 打开容器管理菜单以配置单个箱子:
- 循环切换容器类型(Barrel、Chest、Trapped Chest、Copper Chest、Ender Chest)。
- 通过拖放编辑器自定义战利品表,匹配容器尺寸(单箱为 27 格,双箱为 54 格)。
- 可选的开箱奖励和惩罚。
- “触发后消失”设置,使箱子在被激活后变为空气。
- 一个选项可将箱子从追踪列表中移除。
宝箱还具备力量等级设置:低、中(默认)或高。这会按比例缩放效果持续时间(低为 0.6 倍,中为 1.0 倍,高为 1.5 倍),并在适用时调整药水效果放大器等级。
/castel fill 会用其精确配置的战利品填充所有被追踪的容器。/castel empty 会一次性清空所有被追踪的容器。
若要编辑单个容器而无需进行完整扫描:/castel addchest [type] 会追踪目标容器(最远 6 个方块距离),而 /castel removechest 则停止对其追踪。
随机战利品洗牌:位于设置菜单中。启用后,每次执行 /castel fill 都会在相同类型的容器之间随机交换预定义的战利品表。默认禁用。
末影箱:原版末影箱提供独立的玩家库存。Castel 会拦截对已追踪末影箱的右键点击操作,从而在服务器内存中打开一个共享的 27 格虚拟容器。其库存不会在服务器重启后保留。
游戏内自动补货:通过 /castel arena refill on|off 和 /castel arena refilldelay <seconds>(默认:45 秒)配置。完全清空的容器会在设定的延迟后自动补充战利品,并在聊天栏中通知剩余的玩家。
开启特效:增益与陷阱
每个容器可以持有增益、陷阱或两者兼有,可在宝箱编辑器中进行配置。效果在每局游戏中首次开启时触发一次,并在竞技场填充或补货时重置。
增益:
- SPEED(速度):赋予速度效果。
- STRENGTH(力量):赋予力量效果。
- REGENERATION(再生):赋予再生效果。
- INVISIBILITY(隐身):赋予临时隐身效果。
- STEAL(窃取):赋予盗贼手套(在设定半径内右键点击对手以清空其库存;对队友无效)。
- HEARTS(生命之心):赋予额外的吸收之心。
- RESURRECTION(复活):赋予一次性的死亡预防增益,类似于不死图腾。
- FURY(狂怒):结合急迫和抗性,提供即时的攻防能力。
- CRITICAL(暴击):确保下一次攻击造成暴击(伤害 +50%)。
- KNOCKBACK_BOOST(击退增强):增加后续攻击的击退力度。
- SECOND_WIND(第二春):立即恢复缺失的生命值。
- DASH(冲刺):将玩家向前猛冲。
- FEATHER_FALL(轻落):赋予临时缓慢下落效果。
- ENDER_PEARL(末影珍珠):给予一颗或两颗末影珍珠。
- SHIELD_CHARGE(盾牌充能):赋予一个即时使用的盾牌,无冷却时间。
- NIGHT_VISION(夜视):赋予临时夜视效果。
- SATURATION(饱和):完全恢复饥饿值。
- DECOY(诱饵):生成一个盔甲架诱饵以分散追击者的注意力。
- BERSERK(狂暴):赋予力量和速度,但受到的伤害增加 25%。
- VAMPIRIC(吸血鬼):在接下来的 1 到 3 次攻击中,恢复相当于造成伤害一半的生命值。
陷阱:
- EXPLOSION(爆炸):触发局部爆炸,造成伤害但不破坏方块。
- EXPLOSION_TOTALE(完全爆炸):触发摧毁周围方块的爆炸(重置时会重建)。
- POISON(中毒):施加中毒效果。
- DARKNESS(黑暗):施加黑暗效果。
- WEAKNESS(虚弱):施加虚弱效果。
- MARKER(标记):在设定时间内向剩余对手暴露玩家的坐标/发光状态。
- CONFUSION(混乱):施加反胃效果。
- FEU(火焰):使玩家燃烧数秒。
- SWAP(交换):将玩家传送至竞技场中的随机重生点。
- FRAGILE(脆弱):结合虚弱和霉运。
- DISARM(缴械):强制玩家丢弃手中的武器。
- BLEED(流血):随时间推移造成多次伤害 tick,且不显示药水状态图标。
- ROOT(禁锢):以极慢的速度禁锢玩家。
- LAUNCH(发射):将玩家抛向空中(抵消坠落伤害)。
- MAGNET(磁力):将附近的玩家拉向该容器。
- BLINDNESS(失明):施加完全失明效果。
- DEAF_SOUND(震耳欲聋):播放响亮且令人迷失方向的声音,不产生状态效果。
- FAKE_ITEM(假物品):将快捷栏中的一个物品替换为不可使用的诱饵物品,持续数秒。
- CURSE_LOOT(诅咒战利品):将玩家部分库存的物品掉落至地面。
未实现: SILENCE_ALERT(移除玩家脚步声音频和粒子效果)。
效果设置:
- 窃取半径 (STEAL):
/castel arena stealradius <blocks>。
- 标记持续时间 (MARKER):
/castel arena markerseconds <seconds>。
- 吸收之心数量 (HEARTS):
/castel arena heartsamount <n>。
队伍
通过 GUI 或命令配置。玩家会被分配到最多 10 个不同队伍中的一种颜色。队伍颜色会显示在玩家名称上方以及标签列表中。友军伤害被永久屏蔽。
/castel join <arena> [team]:加入竞技场或请求特定队伍。
/castel arena teams on|off:切换队伍机制。
/castel arena teamcount <n>:设置队伍数量(2 到 10)。
/castel arena teamsize <n>:设置每队玩家人数。
/castel arena teamprefix on|off:在用户名前添加队伍名称前缀(默认关闭)。
当修改队伍大小或数量时,竞技场容量限制会自动更新。
起始职业
管理员通过 /castel arena classes on 启用。启用后,队列中的玩家使用 /castel class <chevalier|eclaireur|pillard> 选择原型:
- Chevalier(骑士):拥有 12 颗心而非 10 颗,但会受到减速 debuff。
- Eclaireur(侦察兵):获得速度增益,但初始只有 7 颗心。
- Pillard(掠夺者):初始库存中包含一把石剑和额外食物。
宝藏模式(皇冠争夺)
通过 /castel arena treasure on 切换,并使用 /castel arena treasuredelay <seconds> 计时(默认:90 秒)。一旦延迟结束,系统会随机选择一个被追踪的容器来放置皇冠。
首位打开容器的玩家将皇冠直接收入库存。持有期间,携带者获得永久的力量和再生增益,但会被发出可见于墙外的发光轮廓所标记。如果被击杀,皇冠会掉落在地上,可被其他人拾取。
可选凋灵 Boss
通过凋灵菜单或命令配置。有三种激活触发器:“时间”(固定延迟)、“幸存者”(玩家数量阈值)或“开始”(立即生成,此时 PvP 禁用;击杀 Boss 后立即启用 PvP)。
- 出生点:
/castel arena setwitherspawn(使用管理员当前位置)。
- 警告计时器:
/castel arena witherwarn <seconds>(动作栏倒计时,默认:10 秒)。
- 额外掉落:
/castel arena witherdrop on|off 保证掉落一把无法损坏的下界合金剑(锋利 V,火焰附加 II,耐久 III)。
- 清理机制:如果战斗在凋灵被击杀前结束,凋灵会消失;如果缩小的边界穿过它,它会自动被向内推。
缩小边界
通过 Paper API 使用基于每个玩家的虚拟世界边界,以竞技场区域为中心。伤害由插件直接施加(默认:区域外每秒 2 点伤害)。
/castel arena shrink on|off:切换边界机制。
/castel arena shrinkdamage <points>:设置越界伤害值每秒(设为 0 可禁用)。
/castel arena shrinkdelay <seconds>:边界开始收缩前的等待时间(默认:60 秒)。
/castel arena shrinkduration <seconds>:收缩持续时间(默认:60 秒)。
/castel arena shrinksize <blocks>:最终边界直径(默认:10 格)。
/castel arena shrinkwarning <seconds>:标题警报的警告时长(默认:15 秒)。
/castel arena shrinkdoors on|off:当完全关闭时,将外部门、陷阱门和栅栏替换为铁栏杆(比赛结束时恢复)。
自定义比赛
允许在不编辑持久化竞技场配置的情况下,为下一场比赛临时覆盖参数:
/castel customgame 打开一个设置 GUI,提供修改设置、重置值或直接开始的选项。
/castel customgame set <setting> <value> 通过命令覆盖特定属性。
/castel customgame reset 清除暂存的修改。
一旦比赛结束(或通过 /castel stop 中止),竞技场的标准配置会自动恢复。
比赛日志与竞技场统计
每轮结束后,聊天栏会显示按时间顺序排列的击杀记录,并指出该场比赛中造成最多击杀的容器。
运行 /castel arena stats 可查看终身竞技场数据:总完成比赛数、玩家平均存活时间以及历史上致死率最高的箱子。
世界备份与还原
每次启动时,所有方块都会被记录在 /castel start。比赛结束后,区域会重置:破损的方块会被修复,散落的物品会被清除,追踪的箱子会立即重新填充,为下一轮做好准备。
通用游戏逻辑
不在活跃游戏中的玩家(排队、观战或编辑中)不会受到伤害。死亡会使玩家变为观察者模式。断开连接或运行 /castel leave 算作弃权。
核心命令:
/castel join <arena> [team]:加入队列。
/castel leave:离开队列或在进行中比赛中弃权。
/castel arena setspawn [team]:设置全局或特定队伍的出生点。
/castel arena clearspawns:清除所有竞技场出生点。
/castel arena minplayers <n> 和 /castel arena maxplayers <n>:调整容量。
/castel start:验证设置,快照世界,填充箱子,传送玩家并开始比赛。
/castel stop:强制终止比赛,将玩家恢复为生存模式,并重置竞技场。
/castel setlobby:设置服务器范围内比赛结束或离开后的返回点。
游戏内界面
- 生命值显示在玩家名字下方。
- 队伍名称和颜色显示在玩家头顶及玩家列表中。
- Boss 条跟踪剩余幸存者数量,可通过
/castel arena bossbar on|off、/castel arena bossbarafter <seconds> 和 /castel arena bossbarplayers <n> 进行配置。
- 侧边栏最小化显示竞技场名称和幸存者数量。
- 标题用于宣布比赛开始、胜利/失败、PvP 激活和边界警报。
依赖项
- WorldEdit:定义区域所必需。
- ProtocolLib:可选;消除受保护方块上的视觉破坏动画。
Castel
Castel is a minigame plugin for Minecraft servers (Paper/Spigot). The concept: a castle filled with chests, barrels, and other containers, where players fight in close combat to be the last standing, or to win via another objective depending on the chosen mode. Every opened container can provide an advantage, a trap, or both at once. Gameplay centers around sword combat within a dedicated castle environment (ramparts, corridors, rooms).
The plugin manages multiple independent arenas simultaneously on the same server, each with its own region, containers, and settings. Everything is configured in-game without editing configuration files manually, using commands and graphical user interfaces (GUIs).
No external database is required. All configuration data (arenas, chests, statistics) is saved to a local server file. This means the plugin operates without an external network connection or central database, though data is not shared across different servers.
How a Game Works
Players join an arena and wait in a queue. An administrator launches the game once enough players are present. The world state is saved (a block-by-block snapshot), chests are filled, all players are teleported, a countdown displays, and combat begins. Depending on the mode, victory is achieved by eliminating everyone, holding a zone, or defending/killing a designated target. At the end, the world resets to its exact prior state, even if explosions occurred.
Game Modes
Only one mode is active per arena at a time, directly determining the victory condition. It can be changed via /castel arena mode <lastman|koth|siege>, or through the Settings GUI under the "Game Mode" option.
LASTMAN (Default Mode): The classic format where the last surviving player or team wins. No extra setup is required; it serves as the base layer for all other modifiers.
KOTH (King of the Castle): Rather than eliminating everyone, players win by holding a designated zone longer than their opponents. Every second spent inside the capture zone (the "hill") awards points to the occupying player or team. Points stack if multiple teammates stand inside simultaneously. Combat is primarily used to push opponents out of the zone.
To set up KOTH, select the target area using WorldEdit (//pos1 and //pos2), then run /castel arena sethill. Afterwards, switch the arena mode using /castel arena mode koth.
Key settings include:
/castel arena kothpoints <n> sets points awarded per second per occupying player (default: 1).
/castel arena kothlimit <points> sets the score required for an immediate win (default: 100; set to 0 to disable).
/castel arena kothtime <seconds> sets the maximum match length; the highest score wins if time expires (default: 300 seconds).
Important: Even in KOTH mode, if only one player or team remains alive, elimination overrides the score or timer for an instant win.
SIEGE (Attack/Defense): Activating SIEGE forces play into two teams (Red and Blue). Two variants exist, toggled via /castel arena siegemode <single|dual>:
The "Single Lord" variant (default) is asymmetrical: Red defends, Blue attacks. At match start, a random Red player becomes the Lord, gaining extra health (+4 hearts) and a permanent glowing outline visible from a distance. Blue has no Lord; their sole objective is to kill the Red Lord. Blue wins immediately upon the Lord's death. Red wins by eliminating all attackers or by keeping their Lord alive until the timer expires.
Team sizes are adjusted independently via /castel arena siegedefenders <n> (default: 2) and /castel arena siegeattackers <n> (default: 4).
The "Dual Lord" variant is symmetrical: each team protects its own Lord with identical buffs. The first team whose Lord dies loses. If time runs out with both Lords alive, the match ends in a draw. This variant relies on standard team size settings rather than separate attacker/defender values.
Shared settings: /castel arena siegetime <seconds> sets the maximum duration (default: 600 seconds). Team-specific spawns should be configured with /castel arena setspawn <team> (using RED or BLUE), typically placing defenders inside the castle and attackers outside.
Arena Setup
Administrators work on one arena at a time, designated as the "active arena":
/castel arena create <name> creates a new arena and selects it.
/castel arena select <name> switches the active arena.
/castel arena list displays all arenas with summary stats (chests, region, spawns, player limits, match status).
/castel arena delete <name> permanently deletes an arena.
/castel arena finish exits editing mode.
/castel arena info displays all settings for the active arena.
/castel arena stats displays cumulative arena statistics.
To define the playable boundaries: create a WorldEdit selection with //pos1 and //pos2 covering the entire area including walls (ensure both points have different heights), then run /castel setregion.
Chests and Loot
Once a region is set, /castel scan automatically detects all chests, trapped chests, barrels, copper chests, and ender chests within the area. Re-scanning a smaller room does not erase chests configured elsewhere. Double chests are tracked as single units with shared storage. Copper chests are automatically waxed to prevent further oxidation. A floating numerical tag appears over each tracked container during editing.
Running /castel gui opens the container management menu to configure individual chests:
- Container type cycling (Barrel, Chest, Trapped Chest, Copper Chest, Ender Chest).
- Custom loot tables via a drag-and-drop editor matching container dimensions (27 slots for singles, 54 for doubles).
- Optional opening bonuses and penalties.
- A "vanish after trigger" setting that turns the chest into air once activated.
- An option to remove the chest from tracking.
Chests also feature a power tier setting: Low, Medium (default), or High. This scales effect duration (0.6x for Low, 1.0x for Medium, 1.5x for High) and adjusts potion effect amplifier levels where applicable.
/castel fill populates all tracked containers with their exact configured loadout. /castel empty clears all tracked containers at once.
To edit individual containers without a full scan: /castel addchest [type] tracks the targeted container (up to 6 blocks away), and /castel removechest stops tracking it.
Random Loot Shuffle: Found in the Settings menu. When enabled, each /castel fill randomly swaps predefined loot tables among containers of the same type. Disabled by default.
Ender Chests: Vanilla ender chests present individual player inventories. Castel intercepts right-clicks on tracked ender chests to open a shared 27-slot virtual container handled in server memory. Its inventory does not persist across server restarts.
In-Game Auto-Refill: Configured via /castel arena refill on|off and /castel arena refilldelay <seconds> (default: 45 seconds). Completely emptied containers automatically restock their loot after the set delay, notifying remaining players in chat.
Opening Effects: Buffs and Traps
Each container can hold a buff, a trap, or both, configured in the chest editor. Effects trigger once per match on opening and reset whenever the arena is filled or refilled.
Buffs:
- SPEED: Grants a Speed effect.
- STRENGTH: Grants a Strength effect.
- REGENERATION: Grants a Regeneration effect.
- INVISIBILITY: Grants temporary invisibility.
- STEAL: Grants the Thief's Glove (right-click near an opponent to empty their inventory within a set radius; fails on teammates).
- HEARTS: Grants extra Absorption hearts.
- RESURRECTION: Grants a one-time death prevention buff similar to a Totem of Undying.
- FURY: Combines Haste and Resistance for immediate offensive/defensive power.
- CRITICAL: Guarantees a critical strike (+50% damage) on the next hit.
- KNOCKBACK_BOOST: Increases knockback on subsequent hits.
- SECOND_WIND: Instantly restores missing health.
- DASH: Lunges the player forward.
- FEATHER_FALL: Grants temporary slow falling.
- ENDER_PEARL: Gives one or two ender pearls.
- SHIELD_CHARGE: Grants an instant-use shield with no cooldown.
- NIGHT_VISION: Grants temporary night vision.
- SATURATION: Fully restores hunger.
- DECOY: Spawns an armor-stand decoy to distract pursuers.
- BERSERK: Grants Strength and Speed, but increases incoming damage by 25%.
- VAMPIRIC: Restores health equal to half the damage dealt on the next 1 to 3 attacks.
Traps:
- EXPLOSION: Triggers a localized explosion that deals damage without breaking blocks.
- EXPLOSION_TOTALE: Triggers an explosion that destroys surrounding blocks (rebuilt on reset).
- POISON: Inflicts Poison.
- DARKNESS: Applies the Darkness effect.
- WEAKNESS: Inflicts Weakness.
- MARKER: Reveals player coordinates/glow to remaining opponents for a set duration.
- CONFUSION: Applies Nausea.
- FEU: Sets the player on fire for several seconds.
- SWAP: Teleports the player to a random arena spawn point.
- FRAGILE: Combines Weakness and Bad Luck.
- DISARM: Forces the player to drop their held weapon.
- BLEED: Deals repeated damage ticks over time without a potion status icon.
- ROOT: Roots the player with extreme slowness.
- LAUNCH: Launches the player into the air (negates fall damage).
- MAGNET: Pulls nearby players toward the container.
- BLINDNESS: Applies full Blindness.
- DEAF_SOUND: Plays a loud, disorienting sound without status effects.
- FAKE_ITEM: Replaces a hotbar item with an unusable decoy item for a few seconds.
- CURSE_LOOT: Drops a portion of the player's inventory onto the ground.
Unimplemented: SILENCE_ALERT (removes player footstep audio and particles).
Effect Settings:
- Steal radius (STEAL):
/castel arena stealradius <blocks>.
- Marker duration (MARKER):
/castel arena markerseconds <seconds>.
- Absorption hearts (HEARTS):
/castel arena heartsamount <n>.
Teams
Configured via GUI or commands. Players are assigned colors across up to 10 distinct teams. Team colors display above player names and in the tab list. Friendly fire is permanently blocked.
/castel join <arena> [team]: Join an arena or request a specific team.
/castel arena teams on|off: Toggle team mechanics.
/castel arena teamcount <n>: Set team count (2 to 10).
/castel arena teamsize <n>: Set players per team.
/castel arena teamprefix on|off: Adds team name prefixes to usernames (off by default).
Arena capacity limits update automatically when team sizes or counts are modified.
Starting Classes
Enabled by an admin via /castel arena classes on. When enabled, players in the queue choose an archetype using /castel class <chevalier|eclaireur|pillard>:
- Chevalier (Knight): 12 hearts instead of 10, but receives a Slowness debuff.
- Eclaireur (Scout): Receives a Speed buff, but starts with only 7 hearts.
- Pillard (Raider): Starts with a stone sword and bonus food in inventory.
Treasure Mode (Crown Capture)
Toggled with /castel arena treasure on and timed using /castel arena treasuredelay <seconds> (default: 90 seconds). Once the delay passes, a tracked chest is randomly chosen to hold the Crown.
The first player to open the container receives the Crown directly into their inventory. While holding it, the carrier gains permanent Strength and Regeneration, but is highlighted with a glowing outline visible through walls. If killed, the Crown drops on the ground and can be picked up by others.
Optional Wither Boss
Configured through the Wither menu or commands. Three activation triggers are available: "Time" (fixed delay), "Survivors" (player count threshold), or "Start" (spawns immediately with PvP disabled; killing the boss immediately enables PvP).
- Spawn point:
/castel arena setwitherspawn (uses admin's current position).
- Warning timer:
/castel arena witherwarn <seconds> (action bar countdown, default: 10 seconds).
- Bonus drop:
/castel arena witherdrop on|off guarantees an unbreakable Netherite sword (Sharpness V, Fire Aspect II, Unbreaking III).
- Cleanup: The Wither despawns if the match concludes before it is killed, and it is automatically pushed inward if a shrinking border passes it.
Shrinking Border
Uses a virtual per-player world border via Paper's API, centered on the arena region. Damage is applied directly by the plugin (default: 2 damage per second outside the zone).
/castel arena shrink on|off: Toggle border mechanic.
/castel arena shrinkdamage <points>: Set out-of-bounds damage per second (0 to disable).
/castel arena shrinkdelay <seconds>: Wait time before border contraction begins (default: 60 seconds).
/castel arena shrinkduration <seconds>: Contraction duration (default: 60 seconds).
/castel arena shrinksize <blocks>: Final border diameter (default: 10 blocks).
/castel arena shrinkwarning <seconds>: Title alert warning length (default: 15 seconds).
/castel arena shrinkdoors on|off: Replaces outer doors, trapdoors, and gates with iron bars when fully closed (restored at match end).
Custom Matches
Allows temporary parameter overrides for the next match without editing persistent arena configurations:
/castel customgame opens a setup GUI with options to modify settings, reset values, or start immediately.
/castel customgame set <setting> <value> overrides a specific property via command.
/castel customgame reset clears staged modifications.
Once the match concludes (or is aborted with /castel stop), the arena's standard configuration is restored automatically.
Match Logs and Arena Statistics
At the end of every round, the chat displays a chronological kill feed and identifies the single most lethal container of that match.
Running /castel arena stats displays lifetime arena data: total matches completed, average player survival time, and the historically most fatal chest.
World Backup and Restoration
Every block is recorded at /castel start. When the match finishes, the region resets: broken blocks are restored, loose ground items are cleared, and tracked chests are instantly repopulated to prepare for the next round.
General Game Logic
Players outside an active game (queueing, spectating, or editing) cannot take damage. Dying turns a player into a spectator. Disconnecting or running /castel leave counts as a forfeit.
Core commands:
/castel join <arena> [team]: Join the queue.
/castel leave: Leave queue or forfeit an ongoing match.
/castel arena setspawn [team]: Set a global or team-specific spawn point.
/castel arena clearspawns: Clear all arena spawns.
/castel arena minplayers <n> and /castel arena maxplayers <n>: Adjust capacity.
/castel start: Validates setup, snapshots the world, fills chests, teleports players, and starts the match.
/castel stop: Forces match termination, restores players to survival mode, and resets the arena.
/castel setlobby: Sets the server-wide return point for finished matches or departures.
In-Game UI
- Health displays below player names.
- Team names and colors show above player heads and in the player list.
- A boss bar tracks remaining survivors, configurable with
/castel arena bossbar on|off, /castel arena bossbarafter <seconds>, and /castel arena bossbarplayers <n>.
- A minimal sidebar displays the arena name and survivor count.
- Titles announce match start, victory/defeat, PvP activation, and border alerts.
Dependencies
- WorldEdit: Required for region definitions.
- ProtocolLib: Optional; eliminates visual block-breaking animations on protected blocks.
评论 0
登录后参与评分
还没有评论,来抢沙发吧