HomeJavaModsServerTimeLock
ServerTimeLock
ModsJava

ServerTimeLock

by wertPL · on Modrinth

Lightweight & Highly Configurable Time Based Server Access Control, Control when players can join your Minecraft server with precision and flexibility

⬇ Download on Modrinth

🕒 ServerTimeLock 🕒

Lightweight & Highly Configurable Time-Based Server Access Control

Paper 1.21.5 Java 17+ License

Control when players can join your Minecraft server with precision and flexibility


✨ Features

🎯 Advanced Scheduling System

🔐 Flexible Permission System

📢 Multi-Channel Alert System

🔒 Soft-Lock Mode

⚙️ Powerful Commands

📝 Comprehensive Logging

🎨 Rich Messaging


📦 Installation

  1. Download the latest ServerTimeLock.jar from releases
  2. Place the jar file in your server's plugins/ folder
  3. Start your server to generate the default configuration
  4. Configure plugins/ServerTimeLock/config.yml to your needs
  5. Reload with /servertime reload or restart your server

🚀 Quick Start

Simple Global Schedule

Perfect for servers with consistent daily hours:

timezone: "Europe/Warsaw"
use-global-schedule: true
use-per-day-schedule: false

global-schedule:
  time-windows:
    - start: "09:00"
      end: "23:00"

Advanced Per-Day Schedule

Ideal for servers with varying weekday/weekend hours:

timezone: "America/New_York"
use-global-schedule: false
use-per-day-schedule: true

per-day-schedule:
  monday:
    - start: "15:00"
      end: "22:00"
  friday:
    - start: "15:00"
      end: "23:59"
  saturday:
    - start: "00:00"
      end: "23:59"  # Open all day
  sunday:
    - start: "10:00"
      end: "22:00"

Multiple Time Windows

Great for servers with lunch breaks or split sessions:

global-schedule:
  time-windows:
    - start: "08:00"
      end: "12:00"
    - start: "14:00"
      end: "18:00"
    - start: "20:00"
      end: "23:00"

🎮 Usage Examples

For Server Owners

Check Server Status

/servertime status

Displays current open/closed state, time until next change, and next window.

Quick Configuration Update

/servertime reload

Apply config changes without restarting the server.

Emergency Override

/servertime forceopen
/servertime forceclose

Manually control server access. Automatically reverts on next scheduled window.

For Players

Players see beautiful, informative messages when:

All messages support full MiniMessage formatting with colors, gradients, and styles!


🔧 Configuration Highlights

Timezone Configuration

timezone: "Europe/Warsaw"  # Any valid IANA timezone

Bypass Settings

allow-op-bypass: true              # Let OPs bypass restrictions
enable-bypass-permission: true     # Enable servertime.bypass permission

Alert Example

alerts:
  - minutes-before: 5
    types:
      - CHAT
      - TITLE
      - ACTIONBAR
    message: "<red><bold>⚠ CLOSING IN 5 MINUTES!</bold></red>"

Soft-Lock Mode

soft-lock-enabled: true  # Let online players stay, block new joins

📋 Permissions

Permission Description Default
servertime.bypass Bypass all time restrictions false
servertime.admin Access to all commands op
servertime.status View server status true
servertime.reload Reload configuration op
servertime.force Use force open/close commands op

🎨 Placeholders

Use these placeholders in any message:


🛠️ Technical Details


📖 Examples

Midnight-Crossing Window

monday:
  - start: "22:00"
    end: "02:00"  # Continues into Tuesday morning

The plugin correctly handles players online during the transition and prevents kicks during valid windows.

Weekend-Only Server

use-per-day-schedule: true
per-day-schedule:
  saturday:
    - start: "00:00"
      end: "23:59"
  sunday:
    - start: "00:00"
      end: "23:59"
  # Other days have no windows = always closed

School Schedule Server

per-day-schedule:
  monday:
    - start: "15:30"  # After school
      end: "21:00"
  tuesday:
    - start: "15:30"
      end: "21:00"
  wednesday:
    - start: "15:30"
      end: "21:00"
  thursday:
    - start: "15:30"
      end: "21:00"
  friday:
    - start: "15:30"
      end: "23:30"    # Extended Friday hours
  saturday:
    - start: "10:00"
      end: "23:30"
  sunday:
    - start: "10:00"
      end: "21:00"

Support


🌟 Why ServerTimeLock?

Production-Ready: Clean code, comprehensive error handling, and thorough testing ✅ Highly Configurable: Every aspect is customizable without code changes ✅ User-Friendly: Beautiful messages and intuitive commands ✅ Performance Optimized: Lightweight with minimal resource usage ✅ Modern: Paper API, Java 17+, and MiniMessage support ✅ Actively Maintained: Regular updates and bug fixes


Made with ❤️ for the Minecraft community

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.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more