特性
- 动态耐力系统: 玩家拥有耐力条,会因行动而消耗,并随时间恢复。
- 行动耐力消耗:
- 移动: 可配置的行走、奔跑和游泳耐力消耗。
- 挖掘: 每破坏一个方块消耗的耐力。
- 战斗: 攻击和拉弓消耗的耐力。
- 移动: 跳跃消耗的耐力。
- 生物群系特定耐力消耗: 根据玩家当前所在的生物群系自定义耐力消耗率。
- 休息增益: 玩家可以通过睡眠获得临时的耐力恢复加速效果。
- 低耐力效果: 当耐力极低时,可配置负面药水效果(如挖掘疲劳、恶心)以及降低的攻击伤害。
- 耐力上限提升: 在极度疲惫后,最大耐力容量可以增加,提供一种进步感。
- 可配置的显示方式: 选择玩家查看耐力的方式:经验条、动作栏或醒目的 Boss 栏。
- PlaceholderAPI 支持: 将耐力值集成到其他插件中(例如计分板、自定义 UI)。
命令
所有命令均以 /stamina 开头。
/stamina check [player]- 描述:查看你当前的和最大耐力值。如果指定了
[player],管理员可以检查其他玩家的耐力。 - 权限:
stamina999.use(用于自身),stamina999.admin(用于他人)
- 描述:查看你当前的和最大耐力值。如果指定了
/stamina reload- 描述:重新加载插件的
config.yml文件,无需重启服务器即可应用更改。 - 权限:
stamina999.admin
- 描述:重新加载插件的
/stamina set <player> <amount>- 描述:手动将目标玩家的当前耐力设置为指定数值。
- 权限:
stamina999.admin
/stamina max <player> <amount>- 描述:手动将目标玩家的最大耐力容量设置为指定数值。
- 权限:
stamina999.admin
配置 (config.yml)
config.yml 文件允许你自定义 Stamina999 插件的几乎所有方面。
# 核心设置
default-stamina: 20
max-stamina-increase-amount: 5
stamina-regen-delay: 2
stamina-regen-amount: 2
stamina-food-regen: 20
# 一般行动的耐力消耗设置
stamina-consumption:
walking:
amount: 1
interval-seconds: 60
sprinting:
amount: 3
interval-seconds: 20
swimming:
amount: 3
interval-seconds: 1 # 每秒消耗 3 点耐力
jumping: 1 # 每次跳跃的耐力成本
attacking: 0.5 # 每次攻击的耐力成本
drawing-bow: 2 # 拉弓的耐力成本
# 每个生物群系的耐力消耗(覆盖指定生物群系的默认行走消耗)
stamina-consumption-per-biome:
desert:
walking:
amount: 1.5
interval-seconds: 60
snowy:
walking:
amount: 1.2
interval-seconds: 60
# 每挖掘一个方块损失的耐力
mining-stamina-per-block: 1
# 通过睡眠获得的“充分休息”增益
well-rested-buff:
duration-seconds: 300 # 增益持续时间的秒数
regen-multiplier: 2.0 # 耐力恢复倍率 (2.0 = 快 2 倍)
# 低耐力效果
low-stamina-effects:
threshold-percentage: 25 # 被视为“低”的耐力百分比(例如 25 代表 25%)
apply-mining-fatigue: true
reduce-attack-damage: true
apply-nausea: false
# 显示设置
display:
display-type: "EXP_BAR" # 选项: "EXP_BAR", "ACTION_BAR", "BOSS_BAR", "NONE"
action-bar-message: "&eStamina: &f%current%/%max%" # 动作栏或 Boss 栏的消息
PlaceholderAPI 支持
Stamina999 提供以下占位符以与 PlaceholderAPI 配合使用:
%stamina_current%:显示玩家当前的耐力。%stamina_max%:显示玩家的最大耐力。
权限
stamina999.use:允许玩家对自己使用/stamina check(默认:true)。stamina999.admin:授予所有/stamina子命令的访问权限,包括reload、set、max以及检查其他玩家的耐力(默认:op)。
这是该插件工作原理的一个示例

Features
- Dynamic Stamina System: Players have a stamina bar that depletes with actions and regenerates over time.
- Stamina Consumption for Actions:
- Movement: Configurable stamina drain for walking, sprinting, and swimming.
- Mining: Stamina consumed per block broken.
- Combat: Stamina consumed for attacking and drawing a bow.
- Movement: Stamina consumed for jumping.
- Biome-Specific Stamina Drain: Customize stamina consumption rates based on the player's current biome.
- Well-Rested Buff: Players can gain a temporary stamina regeneration boost by sleeping.
- Low Stamina Effects: Configurable negative potion effects (e.g., Mining Fatigue, Nausea) and reduced attack damage when stamina is critically low.
- Stamina Increase: Max stamina capacity can increase upon extreme exhaustion, offering a sense of progression.
- Configurable Display: Choose how players see their stamina: Experience Bar, Action Bar, or a prominent Boss Bar.
- PlaceholderAPI Support: Integrate stamina values into other plugins (e.g., scoreboards, custom UIs).
Commands
All commands start with /stamina.
/stamina check [player]- Description: View your current and maximum stamina levels. If
[player]is specified, administrators can check another player's stamina. - Permissions:
stamina999.use(for self),stamina999.admin(for others)
- Description: View your current and maximum stamina levels. If
/stamina reload- Description: Reloads the plugin's
config.ymlfile, applying changes without a server restart. - Permissions:
stamina999.admin
- Description: Reloads the plugin's
/stamina set <player> <amount>- Description: Manually sets a target player's current stamina to the specified amount.
- Permissions:
stamina999.admin
/stamina max <player> <amount>- Description: Manually sets a target player's maximum stamina capacity to the specified amount.
- Permissions:
stamina999.admin
Configuration (config.yml)
The config.yml file allows you to customize almost every aspect of the Stamina999 plugin.
# Core settings
default-stamina: 20
max-stamina-increase-amount: 5
stamina-regen-delay: 2
stamina-regen-amount: 2
stamina-food-regen: 20
# Stamina consumption settings for general actions
stamina-consumption:
walking:
amount: 1
interval-seconds: 60
sprinting:
amount: 3
interval-seconds: 20
swimming:
amount: 3
interval-seconds: 1 # Drains 3 stamina per second
jumping: 1 # Stamina cost per jump
attacking: 0.5 # Stamina cost per attack
drawing-bow: 2 # Stamina cost for drawing a bow
# Stamina consumption per biome (overrides the default walking consumption for specified biomes)
stamina-consumption-per-biome:
desert:
walking:
amount: 1.5
interval-seconds: 60
snowy:
walking:
amount: 1.2
interval-seconds: 60
# Stamina lost per block mined
mining-stamina-per-block: 1
# "Well Rested" buff obtained from sleeping
well-rested-buff:
duration-seconds: 300 # How long the buff lasts in seconds
regen-multiplier: 2.0 # Multiplier for stamina regeneration (2.0 = 2x faster)
# Low stamina effects
low-stamina-effects:
threshold-percentage: 25 # Percentage of max stamina to be considered "low" (e.g., 25 for 25%)
apply-mining-fatigue: true
reduce-attack-damage: true
apply-nausea: false
# Display settings
display:
display-type: "EXP_BAR" # Options: "EXP_BAR", "ACTION_BAR", "BOSS_BAR", "NONE"
action-bar-message: "&eStamina: &f%current%/%max%" # Message for action bar or boss bar
PlaceholderAPI Support
Stamina999 provides the following placeholders for use with PlaceholderAPI:
%stamina_current%: Displays the player's current stamina.%stamina_max%: Displays the player's maximum stamina.
Permissions
stamina999.use: Allows a player to use/stamina checkfor themselves (default: true).stamina999.admin: Grants access to all/staminasubcommands, includingreload,set,max, and checking other players' stamina (default: op).
This Is An Example Of How The Plugin Works

下载 Stamina999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stamina999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stamina999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stamina999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stamina999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stamina999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stamina999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stamina999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stamina999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stamina999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
[1.1.2] - 2026-07-14
修复
- 修复了跳跃检测逻辑——现在跳跃会正确消耗耐力,且在着陆前不再阻止耐力恢复(之前错误地检测的是着陆而非跳跃)
- 修复了在
enable-standing-still-regen: false时行走状态下的耐力恢复——玩家现在可以在行走时恢复耐力(跑步/游泳/跳跃除外) - 修复了骑乘载具时的耐力消耗——骑乘时耐力不再持续流失
- 修复了护盾低耐力冷却追踪——现改为在 data.yml 中按玩家单独追踪,而非使用物品冷却时间(该冷却会在护盾切换或掉落时保留)
- 修复了在水面附近游泳切换状态的闪烁问题——现在会先检查玩家的脚是否在水中,再强制关闭游泳状态
- 修复了玩家数据持久化问题——所有 PlayerData 字段(休息增益、战斗状态、消息冷却时间、护盾冷却时间、wasOnGround)现在能在重启后正确保存和加载
- 修复了特定生物群系的耐力配置解析——增加了对 amount/interval-seconds 的验证,并提供了合理的默认值
- 修复了 VehicleExitEvent——退出载具时能正确更新 wasOnGround 状态
新增
- 新增了马匹/载具耐力恢复支持——骑乘期间耐力可自然恢复(可通过
enable-standing-still-regen配置) - 将护盾冷却时间追踪加入玩家数据——护盾冷却时间在切换护盾和跨世界传送时得以保留
- 在 PlayerData 中新增 wasOnGround 追踪,以实现更可靠的跳跃检测
更改
- 改进了生物群系配置的验证——若缺少 amount/interval-seconds 设置,现在默认为 1.0,而不会导致错误
- 护盾低耐力冷却时间现改用玩家数据进行追踪,而非物品冷却时间(更加可靠)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧