promotional bannermobile promotional banner
premium banner
A simple plugin that skips the night cycle when 50% or more players are in a bed.

Description

Join the Discord!

Epic Discord Server with updates

MassSleepPlugin (Snipr)

Skips the night automatically when 50% or more of players in the world are sleeping.

How It Works

  • Players must actually get into bed (no chat commands).
  • The plugin checks the sleeping ratio every second.
  • When sleeping / online ≥ 50% and it’s night:
    • Sends chat: Enough users are sleeping, skipping night
    • Advances time to morning.

Installation

  1. Build or download MassSleepPlugin-1.0.0.jar
  2. Put the jar into your server’s mods/ folder
  3. Restart the server

Usage

  • At night, get into bed like normal.
  • Once enough players are sleeping, the plugin skips the night for everyone in that world.

Operator Command

  • /nightskip - Shows the current requirement.
  • /nightskip 2 - Requires 2 players sleeping to skip night.
  • /nightskip 50% - Requires 50% of players sleeping to skip night.
  • /nightskip reset - Resets to default (50%).

Building

Requirements: Java 21+ and HytaleServer.jar available at ../AFKPlugin/libs/HytaleServer.jar

gradlew shadowJar

Output:

build/libs/MassSleepPlugin-1.0.0.jar

Author

Created by https://hytale.snipr.me

Looking for quality hosting?

Bisect Hosting - use code tracks