Home›Java›Mods›Sleepify
Sleepify
ModsJava

Sleepify

Java mod listed for Minecraft 1.16–1.21. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
Sleepify is a Minecraft plugin that transforms sleep into a core survival mechanic by adding a dynamic sleep meter system. Players must manage their sleep meter or face consequences like debuffs, slower crop growth, and increased mob spawns. The plugin encourages cooperative gameplay through social sleep bonuses and provides extensive customization options for server administrators.

If you are the server owner/admin and want to test the plugin, make sure you set the sleepify.ignore permission to false.

Features
Commands
Permissions
PlaceholderAPI Placeholders
Default Sleep Tiers
Requirements
Minecraft: 1.16.5 - 1.21+ (tested on 1.16.5 up to 1.21+)
Server: Spigot, Paper, or compatible fork (Purpur, Pufferfish, etc.)
Java: 17 or higher
Soft Dependencies: PlaceholderAPI (optional)

Support
You can contact me on Discord: marcifyx if you need assistance.
Feel free to message me if you encountered a bug within the plugin. I will do my best to fix them as soon as possible.
You can make a suggestion by rating the plugin, and I'll be glad to implement it. Thank you!

config.yml
Code (YAML):
# ╔══════════════════════════════════════════════════════════════╗
# ║                SLEEPIFY CONFIGURATION                        ║
# ║            Rest matters, adventure awaits.                   ║
# ╚══════════════════════════════════════════════════════════════╝

# Sleep Meter Settings
sleep-meter
:
  # How much the sleep meter increases per second while in bed
  gain-rate
: 1.0
 
  # How much the sleep meter decreases per minute while awake (normal)
  # Recommended: 1.0 (combined with sleep-deprived-decay-rate: 0.5 = 2 hours total from 100% to 0%)
  decay-rate
: 1.0
 
  # How much the sleep meter decreases per minute when sleep-deprived (slower)
  # Sleep-deprived = players in the LOWEST tier defined in sleep-tiers section below
  # Recommended: 0.5 (combined with decay-rate: 1.0 = 2 hours total from 100% to 0%)
  # This gives players more time to survive until nighttime
  sleep-deprived-decay-rate
: 0.5
 
  # Minimum time (in seconds) a player must stay in bed to gain sleep meter
  minimum-bed-time
: 3
 
  # Only allow sleep gain during night time
  # false (default): Players gain sleep meter when sleeping during daytime thunderstorms
  # true: Players can sleep during daytime storms, but won't gain sleep meter until nighttime
  night-only-gain
: false
 
  # Ignore players in creative mode
  ignore-creative
: true
 
  # Ignore players in spectator mode
  ignore-spectator
: true
 
  # Ignore vanished players (checks metadata and common vanish plugins)
  ignore-vanished
: true

# Warning System - Alerts players when sleep meter drops below thresholds
warnings
:
  # Enable warning system
  enabled
: true
 
  # Warning levels (triggers when crossing threshold going DOWN)
  levels
:
    1
:
      threshold
: 30.0
      # Variables: {current} = current sleep meter value, {max} = 100, {percentage} = rounded percentage
      message
: "&e⚠ &7Your sleep meter is getting low! &e({current}%)&7 Consider sleeping soon."
      sound
: "BLOCK_NOTE_BLOCK_PLING"
      volume
: 1.0
      pitch
: 0.5
    2
:
      threshold
: 15.0
      # Variables: {current} = current sleep meter value, {max} = 100, {percentage} = rounded percentage
      message
: "&6⚠ &7You're getting very tired! &6({current}%)&7 Sleep urgently needed!"
      sound
: "BLOCK_NOTE_BLOCK_PLING"
      volume
: 1.0
      pitch
: 0.8
    3
:
      threshold
: 5.0
      # Variables: {current} = current sleep meter value, {max} = 100, {percentage} = rounded percentage
      message
: "&c⚠ CRITICAL! &7You're exhausted! &c({current}%)&7 Sleep immediately!"
      sound
: "ENTITY_ENDER_DRAGON_GROWL"
      volume
: 0.5
      pitch
: 1.5

# Social Sleep Bonus - Get bonuses when sleeping near other players
social-sleep
:
  # Enable social sleep bonus
  enabled
: true
 
  # Radius to check for nearby sleeping players (in blocks)
  radius
: 30
 
  # Bonus percentage per nearby sleeping player (e.g., 5.0 = 5% faster gain per player)
  bonus-per-player
: 5.0

# Sleep Tiers - Fully customizable states based on sleep meter percentage
# Each tier can have its own buffs/debuffs, colors, and effects
sleep-tiers
:
  1
:
    name
: "Energized"
    min-percent
: 90.0
    max-percent
: 100.0
    color
: "&b"   # Aqua
    # XP multiplier for this tier
    xp-multiplier
: 1.5
    # Crop growth boost multiplier
    crop-growth-boost
: 1.3
    # Potion effects for this tier
    effects
:
      1
:
        type
: SPEED
        level
: 2
        chance
: 60.0
        duration
: 2
      2
:
        type
: REGENERATION
        level
: 1
        chance
: 40.0
        duration
: 2
  2
:
    name
: "Well-Rested"
    min-percent
: 70.0
    max-percent
: 89.9
    color
: "&a"   # Green
    xp-multiplier
: 1.3
    crop-growth-boost
: 1.2
    effects
:
      1
:
        type
: SPEED
        level
: 1
        chance
: 50.0
        duration
: 2
      2
:
        type
: HASTE
        level
: 1
        chance
: 30.0
        duration
: 2
  3
:
    name
: "Normal"
    min-percent
: 30.0
    max-percent
: 69.9
    color
: "&e"   # Yellow
    xp-multiplier
: 1.0
    crop-growth-boost
: 1.0
    # No effects for normal tier
  4
:
    name
: "Tired"
    min-percent
: 15.0
    max-percent
: 29.9
    color
: "&6"   # Gold
    xp-multiplier
: 0.9
    crop-growth-boost
: 0.9
    effects
:
      1
:
        type
: SLOWNESS
        level
: 1
        chance
: 40.0
        duration
: 2
  5
:
    name
: "Exhausted"
    min-percent
: 0.0
    max-percent
: 14.9
    color
: "&c"   # Red
    xp-multiplier
: 0.7
    crop-growth-boost
: 0.7
    # Phantom and mob spawn boost
    phantom-boost
: 2.5
    mob-spawn-multiplier
: 1.8
    # Visual effects
    visual-effects
: true
    effects
:
      1
:
        type
: SLOWNESS
        level
: 2
        chance
: 70.0
        duration
: 5
      2
:
        type
: MINING_FATIGUE
        level
: 1
        chance
: 50.0
        duration
: 5
      3
:
        type
: WEAKNESS
        level
: 1
        chance
: 60.0
        duration
: 5

# ActionBar Display Settings
actionbar
:
  # Enable ActionBar display (only shows when meter changes)
  enabled
: true
 
  # Template for ActionBar message
  # Variables: {color}, {current}, {max}
  template
: "&9&lSleep: &r{color}{current}&7/&f{max}"
 
  # Colors based on sleep level
  colors
:
    well-rested
: "&a"
    moderate
: "&e"
    deprived
: "&c"

# BossBar Display Settings
bossbar
:
  # Enable BossBar display (shows constantly)
  # Note: Only enable ONE of ActionBar or BossBar, not both
  enabled
: false
 
  # Template for BossBar message
  # Variables: {color}, {current}, {max}
  template
: "{color}Sleep Meter: {current}/{max}"

# Night Skip Settings
night-skip
:
  # Enable night skip feature
  enabled
: false
 
  # Percentage of online players required to skip night (0-100)
  percentage
: 30.0
 
  # Required sleep meter percentage for night skip to happen (0-100)
  # When enough players are sleeping, night will only skip if all sleeping players have this much sleep meter
  # 100.0 (default): All sleeping players must have full sleep meter before night skips
  # 50.0: Players only need 50% sleep meter before night can skip
  # 0.0: Night skips immediately when enough players sleep (old behavior, ignores sleep meter)
  required-sleep-meter
: 100.0

# Per-World Settings
per-world
:
  # Enable per-world blacklist
  enabled
: false
 
  # Worlds where Sleepify is disabled
  blacklist
:
   - "world_creative"
    - "minigames"

# Database Settings
database
:
  # Storage type: YAML, SQLITE, or MYSQL
  type
: "YAML"
 
  # MySQL settings (only used if type is MYSQL)
  mysql
:
    host
: "localhost"
    port
: 3306
    database
: "sleepify"
    username
: "root"
    password
: "password"

# General Settings
general
:
  # Check for plugin updates on startup
  version-checker
: true
 
  # Show XP bonus message when gaining bonus XP from sleep tiers
  show-xp-bonus-message
: true
messages.yml
Code (YAML):
# ╔══════════════════════════════════════════════════════════════╗
# ║                    SLEEPIFY MESSAGES                         ║
# ║              Customize all plugin messages here              ║
# ╚══════════════════════════════════════════════════════════════╝

# Sleep Meter Messages
sleep
:
  # Variables: {current} = current sleep meter value, {max} = maximum value (100)
  gain
: "&aYour sleep meter is now {current}/{max}"
  meter-full
: "&aYour sleep meter is full! You are well-rested."
  # Variables: {seconds} = minimum bed time required
  minimum-bed-time
: "&cYou must stay in bed for at least {seconds} seconds to gain sleep!"
  day-not-allowed
: "&cYou can only sleep at night!"

# Night Skip Messages
# night-skip must be enabled in config.yml
night-skip
:
  # SUCCESS: Shows to ALL players when night is skipped (enough players sleeping)
  # Variables: {percentage} = actual percentage of players sleeping, {required} = required percentage from config
  success
: "&aNight skipped! &7({percentage}% of players sleeping)"
 
  # PROGRESS: Shows to the PLAYER who entered bed when not enough players are sleeping yet
  # Variables: {current} = current sleeping count, {required} = required count, {percentage} = current percentage
  progress
: "&e{current}/{required} players sleeping ({percentage}%)"

# Command Messages
commands
:
  # Variables: {current} = current sleep meter, {max} = 100, {status} = current tier name
  stats
: "&9Sleep Meter: &f{current}/{max} &7({status})"
  reload
: "&aConfiguration reloloaded!"
  unknown
: "&cUnknown command. Use /sleepify for help."
  player-only
: "&cThis command can only be used by players."
  no-permission
: "&cYou don't have permission to use this command."
 
  # Admin command messages
  admin
:
    # Variables: {player} = player name, {amount} = sleep meter amount
    set
: "&aSet {player}'s sleep meter to {amount}"
    # Variables: {player} = player name, {amount} = amount added
    add
: "&aAdded {amount} to {player}'s sleep meter"
    # Variables: {player} = player name, {amount} = amount removed
    remove
: "&aRemoved {amount} from {player}'s sleep meter"
    # Variables: {player} = player name
    reset
: "&aReset {player}'s sleep meter to default (100.0)"
    # Variables: {player} = player name, {current} = current meter, {max} = 100, {status} = tier name
    check
: "&9{player}'s Stats: &f{current}/{max} &7({status}&7)"

# Buff/Debuff Messages
buffs
:
  # Variables: {amount} = bonus XP amount
  xp-bonus
: "&a+{amount} XP &7(Sleep bonus)"

# General Messages
general
:
  prefix
: "&9&lSleepify &8» &7"
  # Whether to add the prefix to all plugin messages
  use-prefix
: true

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Sleepify is a free Minecraft Java mod. Compatible with Minecraft 1.16, 1.17, 1.18, 1.19 and newer. Downloaded 15 times (via Spigot). Download it and open it directly in the game.

Explore more