CustomDay
A powerful plugin to control the day-night cycle duration and sync it with real-world time.
CustomDay
CustomDay is a powerful yet lightweight plugin that gives you complete control over your server's day-night cycle. Whether you want to create longer, more dangerous nights for an RPG server, set a permanent daytime for a creative world, or synchronize your server's time with the real world, CustomDay provides a simple and intuitive solution.
Stop being bound by Minecraft's default 20-minute cycle and create the perfect atmosphere for your community!
---
✨ Core Features
- ☀️ Admin Friendly: Precisely set the duration of the daytime and nighttime in real-world minutes. Want a 30-minute day and a 15-minute night? No problem! - 🌍 Admin Friendly: Sync your server's time to any real-world timezone (e.g., `UTC`, `America/New_York`, `Europe/London`). When it's noon in your chosen timezone, it will be noon in the game! - ⚙️ Admin Friendly: Easily switch between `CUSTOM_DURATION` and `REAL_TIME_SYNC` modes to fit your server's needs. - 👆 Admin Friendly: Adjust all settings on-the-fly with simple, in-game commands. No need to manually edit the config and restart. - 💡 Admin Friendly: Use `/customday sync on` and `/customday sync off` to easily enable or disable real-time sync without ever forgetting your configured timezone. - 🚀 Admin Friendly: Full tab-completion for all commands, a robust permission system, and a `/customday reload` command for quick config updates.
---
💻 Commands & Permissions
The main command is `/customday`, with aliases `/cd` and `/day`. The primary permission for all commands is `customday.admin`.
| Command | Description | | ------------------------- | ----------------------------------------------------------- | | `/cd setday <minutes>` | Sets the duration of the daytime and enables Custom mode. | | `/cd setnight <minutes>` | Sets the duration of the nighttime and enables Custom mode. | | `/cd sync <timezone>` | Sets a new timezone and enables Real-Time Sync mode. | | `/cd sync on` | Enables Real-Time Sync with the currently saved timezone. | | `/cd sync off` | Disables Real-Time Sync and switches to Custom mode. | | `/cd reload` | Reloads the plugin's configuration file. |
---
🔧 Configuration
The configuration is designed to be clean and easy to manage. You can manually set your preferred mode and durations, and the commands will update the file for you.
Example `config.yml`: ```yaml
The main operating mode of the plugin.
Available modes: CUSTOM_DURATION, REAL_TIME_SYNC
mode: "CUSTOM_DURATION"
Settings for the CUSTOM_DURATION mode.
custom-duration:
Duration of the daytime in real-world minutes.
day-minutes: 10
Duration of the nighttime in real-world minutes.
night-minutes: 10
Settings for the REAL_TIME_SYNC mode.
real-time-sync:
This switch is controlled via '/customday sync <on|off>'
enabled: false
The timezone to sync with. Find IDs here:
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
timezone: "UTC"