COWMODSКаталог модов

BetterSleep

Advanced sleep system featuring smooth night acceleration, buffs, debuffs, and immersive nightmare mechanics.

Автор: vipluk2590обновлён 25 нояб. 2025 г.
Механики игры

Описание

⚠️ Compatibility Note: This plugin is built for Minecraft 1.21.5 Purpur. I tested it on Purpur 1.21.5 and Spigot 1.21.1. It should work on 1.21.1-1.21.5 Spigot/Purpur/Paper/Bukkit.

If you want to report a bug or suggest a new plugin, join my Discord server.

This is a cut-out and improved fragment of my SmpMechanics plugin and forms a harmonious whole with Cozy Campfire and CustomDayNightTime.

🛌 BetterSleep

Sleep. Dream. Survive.

BetterSleep transforms the boring vanilla sleep mechanic into an immersive, interactive system. Instead of skipping the night instantly, time accelerates smoothly. Sleeping rewards players with buffs, while refusing to sleep brings dangerous consequences. It’s highly configurable and optimized for survival multiplayer servers.

✨ Key Features

  • ⏩ Smooth Night Acceleration: The night doesn't just "snap" to day. Time accelerates (e.g., 150x speed) with a global BossBar showing progress.
  • ✨ Rewarding Rest (Buffs): Players who sleep are rewarded!
    • Grants configurable potion effects (Regeneration, Speed, etc.).
    • Cleansing: Waking up removes all harmful effects (Poison, Wither, Blindness, etc.).
  • 💀 Insomnia Penalties (Debuffs): Players who stay awake receive configurable punishments (e.g., Slowness, Weakness).
    • Smart Logic: Players in Creative or Spectator modes are automatically ignored.
    • Natural Dawn: Even if no one triggers the speed-up, if the night passes naturally, debuffs are still applied to those who didn't sleep.
  • 🧟 Nightmares: Sleeping in low light (light level < 7) carries a risk! You might wake up violently with a Zombie or Skeleton spawning directly in your room.
  • 🌱 Living World: The world reacts to the accelerated time!
    • Crops grow faster.
    • Animals mature and reset breeding cooldowns faster.
  • ❤️ Intelligent Effect Logic: The plugin respects your gameplay. It will never overwrite a player's existing potion effect if it is stronger or lasts longer than the one provided by the plugin.
  • 🔥 Safety Protocols: Automatically disables Fire Spread during the time acceleration to prevent accidental massive forest fires due to high tick speeds.
  • 🛠️ Live Admin Config: extensive command suite (/bs add, /bs toggle, etc.) allows admins to tweak every aspect of the plugin without restarting.

⚙️ Configuration

Everything is customizable via config.yml or in-game commands:

  • Sleep Percentage: How many players need to sleep? (Default: 49.9% - single player triggers it on 2-player server).
  • Night Speed: How fast should the night pass?
  • Modules: Toggle Buffs, Debuffs, or Nightmares independently.

🛌 BetterSleep - Commands & Permissions

Main command: /bs (or /bettersleep)

CommandDescriptionPermissionDefault
--- PLAYER ---
/bsDisplays server status (Speed, %, Chances).bettersleep.help✅ Everyone
/bs helpDisplays the list of available commands.bettersleep.help✅ Everyone
/bs language <pl/en>Change your personal interface language.bettersleep.language✅ Everyone
--- ADMIN ---
/bs sleeppercentage <%>Set required sleep percentage.bettersleep.percentage❌ OP
/bs nightmultiplier <x>Set night speed multiplier (e.g. 150).bettersleep.multiplier❌ OP
/bs nightmarechance <%>Set chance for a nightmare in dark.bettersleep.nightmarechance❌ OP
/bs toggle <module>Toggle: buff, debuff, nightmare.bettersleep.toggle❌ OP
/bs add <type> ...Add an effect (buff/debuff) or mob.bettersleep.add❌ OP
/bs remove <type> ...Remove an effect or mob from config.bettersleep.remove❌ OP
/bs debug effectTest apply effects on yourself (admin).bettersleep.admin❌ OP
/bs reloadReloads configuration.bettersleep.reload❌ OP

Special Permissions (Bypass): These permissions allow you to exclude specific groups (e.g., VIPs) from the reward or penalty system.

PermissionDescriptionDefault
bettersleep.bypass.buffPlayer will not receive rewards (buffs) for sleeping.❌ False
bettersleep.bypass.debuffPlayer will not receive penalties (debuffs) for staying awake.❌ False
  • Wildcard Permission: bettersleep.* (Grants full command access, but does NOT automatically grant bypass permissions).

🚀 Installation

  1. Download the .jar file.
  2. Place it in the /plugins/ folder of your server (Spigot/Paper/Purpur 1.21.x).
  3. Restart the server.
  4. (Optional) Install CustomDayNightTime for custom day lengths!

Последние версии

Все версии →
release

Better Sleep v1.0

v1.0
25 нояб. 2025 г.259Minecraft: 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5bukkit, paper, purpur, spigot
Скачать
Что нового
**✨ BetterSleep v1.0 - Complete Feature List** * ⏩ **Smooth Night Acceleration:** Instead of instantly skipping the night, the plugin accelerates time (e.g., 150x speed) for an immersive experience. Includes a global **BossBar** showing the night's progress. * ✨ **Rewarding Rest (Buffs):** Players who sleep are rewarded with configurable potion effects. **Bonus:** Sleeping creates a "cleanse" effect, removing all negative status ailments (e.g., Poison, Wither) upon waking up. * 💀 **Insomnia Penalties (Debuffs):** Players who refuse to sleep receive configurable punishments (e.g., Slowness, Weakness). Smart logic automatically ignores players in Creative/Spectator modes or with bypass permissions. * 🧟 **Nightmare Mechanic:** Sleeping in low light (< 7) carries a configurable risk (default 20%). A nightmare can wake the player up violently and spawn monsters (Zombies, etc.) directly in their room. * 🌱 **Eco-System Synchronization:** The world doesn't just look faster; it *acts* faster. Crops grow and animals mature/reset breeding cooldowns at an accelerated rate during the night skip. * ❤️ **Intelligent Effect Logic:** The plugin respects existing gameplay. It will **never** overwrite a player's existing potion effect if it is stronger or lasts longer than the one provided by the plugin. * 🔥 **Safety Protocols:** Automatically disables **Fire Spread** during the time acceleration to prevent lag or accidental massive forest fires. * 🌍 **Per-World & Smart Percentages:** Calculates required sleepers per world (e.g., Nether players don't block Overworld sleep). Admins can tweak the required percentage (default 49.9%) via commands. * 🛠️ **Complete Admin Suite:** Extensive management via `/bs`. Modify sleep percentage, night speed, nightmare chance, and toggle modules (buffs/debuffs/mobs) on the fly with dynamic tab completion showing current values.