
CustomDayNightTime
Precise server time control allowing independent day and night duration settings in real-time seconds.
⚠️ 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 BetterSleep.
⏳ CustomDayNightTime
Take full control of time on your server!
CustomDayNightTime allows you to precisely define the duration of the day and night independently. Whether you want a 30-minute day for exploration and a 5-minute night for safety, or a realistic 24-hour cycle, this plugin handles it smoothly. It is designed to work flawlessly alongside BetterSleep, ensuring no time-skipping glitches occur.
✨ Key Features
- ⏱️ Precision Time Control: Set the duration of Day and Night separately using real-time seconds.
- Example: Make days last 20 minutes (1200s) and nights just 5 minutes (300s).
- 🤝 Seamless Integration: Built to detect the BetterSleep plugin automatically. If players start sleeping (fast-forwarding time), this plugin pauses its own timer to prevent "rubber-banding" or time conflicts.
- 🌍 Per-Player Language: Full support for English and Polish. Players can switch their interface language via
/ct language, and the choice is saved permanently. - 🧠 Smart Tab-Completion: The command system is intelligent. When typing
/ct dayor/ct night, the autocomplete suggests the currently set value first, making adjustments incredibly fast. - 💾 Persistent Data: All settings are saved to
config.ymlinstantly. No data loss on restarts.
Here are the updated, English command and permission tables, ready to be pasted into your plugin description page.
⏳ CustomDayNightTime - Commands & Permissions
Main command: /ct (or /customtime)
| Command | Description | Permission | Default |
|---|---|---|---|
| --- PLAYER --- | |||
/ct | Displays current time settings (Status). | customtime.help | ✅ Everyone |
/ct help | Displays the list of available commands. | customtime.help | ✅ Everyone |
/ct language <pl/en> | Change your personal interface language. | customtime.language | ✅ Everyone |
| --- ADMIN --- | |||
/ct day <seconds> | Set the duration of the day (in seconds). | customtime.day | ❌ OP |
/ct night <seconds> | Set the duration of the night (in seconds). | customtime.night | ❌ OP |
/ct reload | Reloads configuration and language files. | customtime.reload | ❌ OP |
- Wildcard Permission:
customtime.*(Grants full access).
🚀 Installation
- Download the
.jarfile. - Place it in the
/plugins/folder of your server (Spigot/Paper/Purpur 1.21.x). - Restart the server.
- (Optional) Install BetterSleep for the ultimate time-management experience.
