ModsJava
Sleepify
Java mod listed for Minecraft 1.16–1.21. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotSleepify 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
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
messages.yml
If you are the server owner/admin and want to test the plugin, make sure you set the sleepify.ignore permission to false.
Features
- Multi-Tier Sleep System: 5 customizable tiers (Energized, Well-Rested, Normal, Tired, Exhausted) with unique buffs and debuffs.
- XP Multipliers: Earn 0.7x to 1.5x XP based on your sleep level.
- Crop Growth Modifiers: Crops grow up to 30% faster when well-rested or 30% slower when exhausted.
- Mob Spawn Multipliers: Sleep-deprived players face 1.8x hostile mob spawns and 2.5x phantom spawns.
- Warning System: Configurable alerts at 30%, 15%, and 5% with custom sounds and messages.
- Social Sleep Bonus: Gain sleep faster (+5% per player) when sleeping near other players within 30 blocks.
- Night Skip System: Configurable percentage-based night skip requiring players to reach minimum sleep meter threshold.
- Visual Feedback: ActionBar and BossBar display options with color-coded tiers and particle effects.
- Database Support: Choose between YAML (default), SQLite, or MySQL storage with async operations.
- PlaceholderAPI Integration: 11 unique placeholders for scoreboard plugins, tab lists, chat plugins, and holograms.
- Per-World Blacklist: Disable Sleepify in specific worlds like creative or minigame arenas.
- Fully Customizable: 239 lines of config.yml - customize every tier, effect, threshold, decay rate, and message.
- /sleepify: Show plugin help and information.
- /sleepify stats: View your current sleep meter and tier.
- /sleepify reload: Reload configuration files (admin only).
- /sleepify set <player> <amount>: Set a player's sleep meter to 0-100 (admin only).
- /sleepify add <player> <amount>: Add to a player's sleep meter (admin only).
- /sleepify remove <player> <amount>: Remove from a player's sleep meter (admin only).
- /sleepify check <player>: Check another player's sleep meter (admin only).
- sleepify.use: Access basic commands and help (default: true).
- sleepify.stats: View own sleep meter statistics (default: true).
- sleepify.admin: All admin commands - set, add, remove, check, reload (default: op).
- sleepify.admin.reload: Reload plugin configuration (default: op).
- sleepify.admin.set: Set a player's sleep meter (default: op).
- sleepify.admin.add: Add to a player's sleep meter (default: op).
- sleepify.admin.remove: Remove from a player's sleep meter (default: op).
- sleepify.admin.check: Check another player's sleep meter (default: op).
- sleepify.ignore: Completely bypass the sleep system (default: false).
- %sleepify_meter%: Current sleep meter value (0-100)
- %sleepify_percentage%: Sleep meter with % symbol
- %sleepify_meter_decimal%: Meter with 1 decimal place
- %sleepify_max%: Maximum sleep meter (always 100)
- %sleepify_status%: Current tier name
- %sleepify_tier_color%: Tier color code
- %sleepify_tier_min%: Minimum % for current tier
- %sleepify_tier_max%: Maximum % for current tier
- %sleepify_xp_multiplier%: Current XP multiplier
- %sleepify_bar%: Visual bar representation
- %sleepify_opted%: Player opt-in status
- Energized (90-100%): Speed II, Regeneration I | 1.5x XP | 1.3x crop growth
- Well-Rested (70-89.9%): Speed I, Haste I | 1.3x XP | 1.2x crop growth
- Normal (30-69.9%): No effects | 1.0x XP | Normal crop growth
- Tired (15-29.9%): Slowness I | 0.9x XP | 0.9x crop growth
- Exhausted (0-14.9%): Slowness II, Mining Fatigue I, Weakness I | 0.7x XP | 0.7x crop growth + 1.8x mob spawns + 2.5x phantoms
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
# ║ 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
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
# ║ 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
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.16, 1.17, 1.18
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.