Manages player stamina by handling consumption recovery and restrictions based on actions!
Manages player stamina by handling consumption recovery and restrictions based on actions.
Commands
Permissions
PlaceholderAPI Expansion
How does it work?
Stamina is consumed when a player jumps, deals damage to players or mobs, or breaks blocks. If stamina reaches 0, these actions become impossible. Stamina can be recovered by eating food or drinking potions.
All data is saved in the database.db file.
main_command:
name: "stamina"
description: "Main Stamina command"
aliases:
- "st"
stamina:
max: 100.0
regen_per_second: 4.0
sprint_drain_per_second: 8.0
sprint_minimum: 10.0
sprint_threshold: 5.0
jump_cost: 0.1
attack_cost: 0.5
mine_cost: 1.0
block_costs:
STONE: 1.0
COAL_ORE: 1.5
COPPER_ORE: 1.4
IRON_ORE: 1.6
GOLD_ORE: 1.8
REDSTONE_ORE: 2.0
LAPIS_ORE: 2.0
DIAMOND_ORE: 2.5
EMERALD_ORE: 2.5
NETHER_GOLD_ORE: 2.0
NETHER_QUARTZ_ORE: 2.2
ANCIENT_DEBRIS: 3.0
DEEPSLATE_COAL_ORE: 1.6
DEEPSLATE_COPPER_ORE: 1.5
DEEPSLATE_IRON_ORE: 1.7
DEEPSLATE_GOLD_ORE: 1.9
DEEPSLATE_REDSTONE_ORE: 2.1
DEEPSLATE_LAPIS_ORE: 2.1
DEEPSLATE_DIAMOND_ORE: 2.6
DEEPSLATE_EMERALD_ORE: 2.6
OBSIDIAN: 2.5
recovery:
APPLE: 4.0
BREAD: 5.0
CARROT: 3.0
BAKED_POTATO: 5.0
COOKED_BEEF: 10.0
COOKED_CHICKEN: 8.0
COOKED_MUTTON: 9.0
COOKED_PORKCHOP: 9.0
COOKED_RABBIT: 8.0
COOKED_SALMON: 8.0
COOKED_COD: 7.0
MUSHROOM_STEW: 7.5
RABBIT_STEW: 8.0
BEETROOT_SOUP: 6.0
PUMPKIN_PIE: 5.0
HONEY_BOTTLE: 6.0
GOLDEN_APPLE: 25.0
ENCHANTED_GOLDEN_APPLE: 60.0
POTION: 20.0
SPLASH_POTION: 20.0
LINGERING_POTION: 20.0
messages:
no-permission: '&cYou don''t have permission to use this command!'
reload: "&aPlugin reloaded!"
action_bar: '&b&l[&f⚡ &aStamina: &e%percent%% &7(&f%cur%&7/&f%max%&7)&b&l]'
daily_reset: '§aYour stamina has been fully restored for the new day!'
cant_sprint: '§cYou are too tired to sprint!'
sprint_exhausted: '§cYou collapsed from exhaustion!'
cant_attack: '§cYou are too tired to attack!'
cant_break: '§cYou are too tired to break blocks!'
cant_place: '§cYou are too tired to place blocks!'
For support, please use only resource discussion
Terms of Service
By using this plugin, you agree to the following terms, which may be updated by the author at any time.