- Native Minecraft Version:
- Tested Minecraft Versions:
This plugin gives your players stamina. As they sprint, their stamina decreases over time, until they are no longer able to sprint due to exhaustion.
As demonstrated in this video:
Code (YAML):# Should the plugin change the value of the players bar
# to represent the player's stamina?
# Not recommended if your server uses XP/hunger normally (for enchanting, eating)
# or the XP/hunger bar is used to represent other values
# (such as mana for a magic plugin, or bullets for a gun plugin)
# Values: 'XP', 'HUNGER' or 'NONE'
# Represents the max stamina a player can have
# Different values can be used for different ranks
# Give ranks the permission 'stamina.rank.KEY' for different stamina values
vip: 25.0 # 'stamina.rank.vip'
# The amount of stamina the player regains per second
# Tire rate (the amount of stamina lost per 1 tick = 50ms)
# If stamina is less than this value, player will be slowed
# Deplete stamina on player jump
The plugin also has useful developer features such as:
- API to enable/disable a players stamina (when disabled, player will not be affected by stamina)
- Events (such as StaminaDepletionEvent - called when the player can no longer sprint due to lack of stamina)
This plugin requires no dependencies, so just drag and drop the StaminaPlugin-x.x.x.jar file into your 'server/plugins' directory